diff --git a/index-8QsdpE8Q.js b/index-8QsdpE8Q.js deleted file mode 100644 index 890dd0b..0000000 --- a/index-8QsdpE8Q.js +++ /dev/null @@ -1,187 +0,0 @@ -function vS(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function e(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(n){if(n.ep)return;n.ep=!0;const a=e(n);fetch(n.href,a)}})();var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ga(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yS(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var h2={exports:{}},hd={},f2={exports:{}},rt={};/** -* @license React -* react.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var Kl=Symbol.for("react.element"),bS=Symbol.for("react.portal"),wS=Symbol.for("react.fragment"),kS=Symbol.for("react.strict_mode"),xS=Symbol.for("react.profiler"),SS=Symbol.for("react.provider"),CS=Symbol.for("react.context"),_S=Symbol.for("react.forward_ref"),ES=Symbol.for("react.suspense"),PS=Symbol.for("react.memo"),MS=Symbol.for("react.lazy"),p2=Symbol.iterator;function IS(t){return t===null||typeof t!="object"?null:(t=p2&&t[p2]||t["@@iterator"],typeof t=="function"?t:null)}var g2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m2=Object.assign,v2={};function ws(t,e,r){this.props=t,this.context=e,this.refs=v2,this.updater=r||g2}ws.prototype.isReactComponent={},ws.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},ws.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function y2(){}y2.prototype=ws.prototype;function Ag(t,e,r){this.props=t,this.context=e,this.refs=v2,this.updater=r||g2}var Dg=Ag.prototype=new y2;Dg.constructor=Ag,m2(Dg,ws.prototype),Dg.isPureReactComponent=!0;var b2=Array.isArray,w2=Object.prototype.hasOwnProperty,zg={current:null},k2={key:!0,ref:!0,__self:!0,__source:!0};function x2(t,e,r){var n,a={},i=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)w2.call(e,n)&&!k2.hasOwnProperty(n)&&(a[n]=e[n]);var u=arguments.length-2;if(u===1)a.children=r;else if(11&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||BS,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a{let[s,u]=i;for(let c=0;c{let[s,u]=i;for(let c=0;c{t=n,e=a});return r.resolve=t,r.reject=e,r}function E2(t){return t==null?"":""+t}function US(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const $S=/###/g;function Ql(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace($S,"."):u}function a(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function qS(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>WS[e]):t}class HS{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const KS=[" ",",","?","!",";"],YS=new HS(20);function QS(t,e,r){e=e||"",r=r||"";const n=KS.filter(s=>e.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const a=YS.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!a.test(t);if(!i){const s=t.indexOf(r);s>0&&!a.test(t.substring(0,s))&&(i=!0)}return i}function $g(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let a=t;for(let i=0;i-1&&c0?t.replace("_","-"):t}class I2 extends md{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,r],n&&(Array.isArray(n)?u.push(...n):typeof n=="string"&&i?u.push(...n.split(i)):u.push(n)));const c=vd(this.data,u);return!c&&!r&&!n&&e.indexOf(".")>-1&&(e=u[0],r=u[1],n=u.slice(2).join(".")),c||!s||typeof n!="string"?c:$g(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let u=[e,r];n&&(u=u.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(u=e.split("."),a=r,r=u[1]),this.addNamespaces(r),P2(this.data,u,a),i.silent||this.emit("added",e,r,n,a)}addResources(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Object.prototype.toString.apply(n[i])==="[object Array]")&&this.addResource(e,r,i,n[i],{silent:!0});a.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[e,r];e.indexOf(".")>-1&&(u=e.split("."),a=n,n=r,r=u[1]),this.addNamespaces(r);let c=vd(this.data,u)||{};a?M2(c,n,i):c={...c,...n},P2(this.data,u,c),s.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var N2={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,a){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,a))}),e}};const O2={};class Ip extends md{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),US(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ya.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,u=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!QS(e,n,a);if(s&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:i};const d=e.split(n);(n!==a||n===a&&this.options.ns.indexOf(d[0])>-1)&&(i=d.shift()),e=d.join(a)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:u}=this.extractFromKey(e[e.length-1],r),c=u[u.length-1],d=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(f){const g=r.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${g}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${g}${s}`}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:s}const m=this.resolve(e,r);let v=m&&m.res;const y=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,S=Object.prototype.toString.apply(v),E=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject;if(k&&v&&typeof v!="string"&&typeof v!="boolean"&&typeof v!="number"&&E.indexOf(S)<0&&!(typeof x=="string"&&S==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const g=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,v,{...r,ns:u}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(r),m):g}if(i){const g=S==="[object Array]",C=g?[]:{},N=g?b:y;for(const O in v)if(Object.prototype.hasOwnProperty.call(v,O)){const D=`${N}${i}${O}`;C[O]=this.translate(D,{...r,joinArrays:!1,ns:u}),C[O]===D&&(C[O]=v[O])}v=C}}else if(k&&typeof x=="string"&&S==="[object Array]")v=v.join(x),v&&(v=this.extendTranslation(v,e,r,n));else{let g=!1,C=!1;const N=r.count!==void 0&&typeof r.count!="string",O=Ip.hasDefaultValue(r),D=N?this.pluralResolver.getSuffix(d,r.count,r):"",R=r.ordinal&&N?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",A=N&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),F=A&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${D}`]||r[`defaultValue${R}`]||r.defaultValue;!this.isValidLookup(v)&&O&&(g=!0,v=F),this.isValidLookup(v)||(C=!0,v=s);const U=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:v,H=O&&F!==v&&this.options.updateMissing;if(C||g||H){if(this.logger.log(H?"updateKey":"missingKey",d,c,s,H?F:v),i){const se=this.resolve(s,{...r,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(let se=0;se{const ee=O&&z!==v?z:U;this.options.missingKeyHandler?this.options.missingKeyHandler(se,c,K,ee,H,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(se,c,K,ee,H,r),this.emit("missingKey",se,c,K,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?q.forEach(se=>{const K=this.pluralResolver.getSuffixes(se,r);A&&r[`defaultValue${this.options.pluralSeparator}zero`]&&K.indexOf(`${this.options.pluralSeparator}zero`)<0&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(z=>{ie([se],s+z,r[`defaultValue${z}`]||F)})}):ie(q,s,F))}v=this.extendTranslation(v,e,r,m,n),C&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${c}:${s}`),(C||g)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,g?v:void 0):v=this.options.parseMissingKeyHandler(v))}return a?(m.res=v,m.usedParams=this.getUsedParamsDetails(r),m):v}extendTranslation(e,r,n,a,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const v=e.match(this.interpolator.nestingRegexp);f=v&&v.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,n.lng||this.language,n),d){const v=e.match(this.interpolator.nestingRegexp),y=v&&v.length;f1&&arguments[1]!==void 0?arguments[1]:{},n,a,i,s,u;return typeof e=="string"&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(n))return;const d=this.extractFromKey(c,r),f=d.key;a=f;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const v=r.count!==void 0&&typeof r.count!="string",y=v&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),b=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",S=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(E=>{this.isValidLookup(n)||(u=E,!O2[`${S[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(O2[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${a}" for languages "${S.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(x=>{if(this.isValidLookup(n))return;s=x;const k=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(k,f,x,E,r);else{let C;v&&(C=this.pluralResolver.getSuffix(x,r.count,r));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(k.push(f+C),r.ordinal&&C.indexOf(O)===0&&k.push(f+C.replace(O,this.options.pluralSeparator)),y&&k.push(f+N)),b){const D=`${f}${this.options.contextSeparator}${r.context}`;k.push(D),v&&(k.push(D+C),r.ordinal&&C.indexOf(O)===0&&k.push(D+C.replace(O,this.options.pluralSeparator)),y&&k.push(D+N))}}let g;for(;g=k.pop();)this.isValidLookup(n)||(i=g,n=this.getResource(x,E,g,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,a):this.resourceStore.getResource(e,r,n,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let a=n?e.replace:e;if(n&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const i of r)delete a[i]}return a}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function Vg(t){return t.charAt(0).toUpperCase()+t.slice(1)}class R2{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ya.create("languageUtils")}getScriptPartFromCode(e){if(e=yd(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=yd(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vg(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vg(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Vg(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(i=>{if(i===a||!(i.indexOf("-")<0&&a.indexOf("-")<0)&&i.indexOf(a)===0)return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(s=>{a.indexOf(s)<0&&i(this.formatLanguageCode(s))}),a}}let ZS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],XS={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const JS=["v1","v2","v3"],e7=["v4"],T2={zero:0,one:1,two:2,few:3,many:4,other:5};function t7(){const t={};return ZS.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:XS[e.fc]}})}),t}class r7{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ya.create("pluralResolver"),(!this.options.compatibilityJSON||e7.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=t7()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(yd(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(a=>`${r}${a}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,i)=>T2[a]-T2[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(e,a,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let a=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const i=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!JS.includes(this.options.compatibilityJSON)}}function L2(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=GS(t,e,r);return!i&&a&&typeof r=="string"&&(i=$g(t,r,n),i===void 0&&(i=$g(e,r,n))),i}class n7{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ya.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const r=e.interpolation;this.escape=r.escape!==void 0?r.escape:qS,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?ks(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?ks(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?ks(r.nestingPrefix):r.nestingPrefixEscaped||ks("$t("),this.nestingSuffix=r.nestingSuffix?ks(r.nestingSuffix):r.nestingSuffixEscaped||ks(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,a){let i,s,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}const f=y=>{if(y.indexOf(this.formatSeparator)<0){const x=L2(r,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...a,...r,interpolationkey:y}):x}const b=y.split(this.formatSeparator),S=b.shift().trim(),E=b.join(this.formatSeparator).trim();return this.format(L2(r,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),E,n,{...a,...r,interpolationkey:S})};this.resetRegExp();const m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,v=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>d(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?d(this.escape(y)):d(y)}].forEach(y=>{for(u=0;i=y.regex.exec(e);){const b=i[1].trim();if(s=f(b),s===void 0)if(typeof m=="function"){const E=m(e,i,a);s=typeof E=="string"?E:""}else if(a&&Object.prototype.hasOwnProperty.call(a,b))s="";else if(v){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=E2(s));const S=y.safeValue(s);if(e=e.replace(i[0],S),v?(y.regex.lastIndex+=s.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,i,s;function u(c,d){const f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;const m=c.split(new RegExp(`${f}[ ]*{`));let v=`{${m[1]}`;c=m[0],v=this.interpolate(v,s);const y=v.match(/'/g),b=v.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),d&&(s={...d,...s})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${f}${v}`}return delete s.defaultValue,c}for(;a=this.nestingRegexp.exec(e);){let c=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const f=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=f.shift(),c=f,d=!0}if(i=r(u.call(this,a[1].trim(),s),s),i&&a[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=E2(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),i=""),d&&(i=c.reduce((f,m)=>this.format(f,m,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),e=e.replace(a[0],i),this.regexp.lastIndex=0}return e}}function a7(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);e==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(!i)return;const[s,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,"");r[s.trim()]||(r[s.trim()]=c),c==="false"&&(r[s.trim()]=!1),c==="true"&&(r[s.trim()]=!0),isNaN(c)||(r[s.trim()]=parseInt(c,10))})}return{formatName:e,formatOptions:r}}function xs(t){const e={};return function(r,n,a){const i=n+JSON.stringify(a);let s=e[i];return s||(s=t(yd(n),a),e[i]=s),s(r)}}class i7{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ya.create("formatter"),this.options=e,this.formats={number:xs((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return i=>a.format(i)}),currency:xs((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>a.format(i)}),datetime:xs((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return i=>a.format(i)}),relativetime:xs((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return i=>a.format(i,n.range||"day")}),list:xs((r,n)=>{const a=new Intl.ListFormat(r,{...n});return i=>a.format(i)})},this.init(e)}init(e){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=xs(r)}format(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((i,s)=>{const{formatName:u,formatOptions:c}=a7(s);if(this.formats[u]){let d=i;try{const f=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},m=f.locale||f.lng||a.locale||a.lng||n;d=this.formats[u](i,m,{...c,...a,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return i},e)}}function o7(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class s7 extends md{constructor(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ya.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(e,r,n,a){const i={},s={},u={},c={};return e.forEach(d=>{let f=!0;r.forEach(m=>{const v=`${d}|${m}`;!n.reload&&this.store.hasResourceBundle(d,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,f=!1,s[v]===void 0&&(s[v]=!0),i[v]===void 0&&(i[v]=!0),c[m]===void 0&&(c[m]=!0)))}),f||(u[d]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,r,n){const a=e.split("|"),i=a[0],s=a[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n),this.state[e]=r?-1:2;const u={};this.queue.forEach(c=>{VS(c.loaded,[i],s),o7(c,e),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{u[d]||(u[d]={});const f=c.loaded[d];f.length&&f.forEach(m=>{u[d][m]===void 0&&(u[d][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:a,wait:i,callback:s});return}this.readingCalls++;const u=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&f&&a{this.read.call(this,e,r,n,a+1,i*2,s)},i);return}s(d,f)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const d=c(e,r);d&&typeof d.then=="function"?d.then(f=>u(null,f)).catch(u):u(null,d)}catch(d){u(d)}return}return c(e,r,u)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(s,u)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,s),!s&&u&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,u),this.loaded(e,s,u)})}saveMissing(e,r,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...s,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(e,r,n,a,c):f=d(e,r,n,a),f&&typeof f.then=="function"?f.then(m=>u(null,m)).catch(u):u(null,f)}catch(f){u(f)}else d(e,r,n,a,u,c)}!e||!e[0]||this.store.addResource(e[0],r,n,a)}}}function F2(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if(typeof t[1]=="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function j2(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function bd(){}function l7(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{typeof t[e]=="function"&&(t[e]=t[e].bind(t))})}class bc extends md{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=j2(e),this.services={},this.logger=ya,this.modules={external:[]},l7(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=F2();this.options={...a,...this.options,...j2(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ya.init(i(this.modules.logger),this.options):ya.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=i7);const d=new R2(this.options);this.store=new I2(this.options.resources,this.options);const f=this.services;f.logger=ya,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new r7(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new n7(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new s7(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var v=arguments.length,y=new Array(v>1?v-1:0),b=1;b1?v-1:0),b=1;b{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=bd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const s=Yl(),u=()=>{const c=(d,f)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bd;const n=typeof e=="string"?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],i=s=>{!s||s==="cimode"||this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>i(s)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,r,n){const a=Yl();return e||(e=this.languages),r||(r=this.options.ns),n||(n=bd),this.services.backendConnector.reload(e,r,i=>{a.resolve(),n(i)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&N2.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const a=Yl();this.emit("languageChanging",e);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},s=(c,d)=>{d?(i(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const d=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,f=>{s(f,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,r,n){var a=this;const i=function(s,u){let c;if(typeof u!="object"){for(var d=arguments.length,f=new Array(d>2?d-2:0),m=2;m`${c.keyPrefix}${v}${b}`):y=c.keyPrefix?`${c.keyPrefix}${v}${s}`:s,a.t(y,c)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(u,c)=>{const d=this.services.backendConnector.state[`${u}|${c}`];return d===-1||d===2};if(r.precheck){const u=r.precheck(this,s);if(u!==void 0)return u}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!a||s(i,e)))}loadNamespaces(e,r){const n=Yl();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Yl();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],i=e.filter(s=>a.indexOf(s)<0);return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new R2(F2());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new bc(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bd;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},i=new bc(a);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new I2(this.store.data,a),i.services.resourceStore=i.store),i.translator=new Ip(i.services,a),i.translator.on("*",function(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d>>1,he=z[oe];if(0>>1;oea(Me,Q))Nea($,Me)?(z[oe]=$,z[Ne]=Q,oe=Ne):(z[oe]=Me,z[ge]=Q,oe=ge);else if(Nea($,Q))z[oe]=$,z[Ne]=Q,oe=Ne;else break e}}return ee}function a(z,ee){var Q=z.sortIndex-ee.sortIndex;return Q!==0?Q:z.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],d=[],f=1,m=null,v=3,y=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(z){for(var ee=r(d);ee!==null;){if(ee.callback===null)n(d);else if(ee.startTime<=z)n(d),ee.sortIndex=ee.expirationTime,e(c,ee);else break;ee=r(d)}}function C(z){if(S=!1,g(z),!b)if(r(c)!==null)b=!0,se(N);else{var ee=r(d);ee!==null&&K(C,ee.startTime-z)}}function N(z,ee){b=!1,S&&(S=!1,x(R),R=-1),y=!0;var Q=v;try{for(g(ee),m=r(c);m!==null&&(!(m.expirationTime>ee)||z&&!U());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,v=m.priorityLevel;var he=oe(m.expirationTime<=ee);ee=t.unstable_now(),typeof he=="function"?m.callback=he:m===r(c)&&n(c),g(ee)}else n(c);m=r(c)}if(m!==null)var Ce=!0;else{var ge=r(d);ge!==null&&K(C,ge.startTime-ee),Ce=!1}return Ce}finally{m=null,v=Q,y=!1}}var O=!1,D=null,R=-1,A=5,F=-1;function U(){return!(t.unstable_now()-Fz||125oe?(z.sortIndex=Q,e(d,z),r(c)===null&&z===r(d)&&(S?(x(R),R=-1):S=!0,K(C,Q-oe))):(z.sortIndex=he,e(c,z),b||y||(b=!0,se(N))),z},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(z){var ee=v;return function(){var Q=v;v=ee;try{return z.apply(this,arguments)}finally{v=Q}}}})(z2),D2.exports=z2;var Zl=D2.exports;/** -* @license React -* react-dom.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var B2=I,vn=Zl;function ue(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gg=Object.prototype.hasOwnProperty,u7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$2={},V2={};function c7(t){return Gg.call(V2,t)?!0:Gg.call($2,t)?!1:u7.test(t)?V2[t]=!0:($2[t]=!0,!1)}function d7(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function h7(t,e,r,n){if(e===null||typeof e>"u"||d7(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Xr(t,e,r,n,a,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ir[t]=new Xr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ir[e]=new Xr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ir[t]=new Xr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ir[t]=new Xr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ir[t]=new Xr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ir[t]=new Xr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ir[t]=new Xr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ir[t]=new Xr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ir[t]=new Xr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Wg=/[\-:]([a-z])/g;function qg(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Wg,qg);Ir[e]=new Xr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Wg,qg);Ir[e]=new Xr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Wg,qg);Ir[e]=new Xr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ir[t]=new Xr(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ir.xlinkHref=new Xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ir[t]=new Xr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Hg(t,e,r,n){var a=Ir.hasOwnProperty(e)?Ir[e]:null;(a!==null?a.type!==0:n||!(2u||a[s]!==i[u]){var c=` -`+a[s].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=s&&0<=u);break}}}finally{tm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?eu(t):""}function f7(t){switch(t.tag){case 5:return eu(t.type);case 16:return eu("Lazy");case 13:return eu("Suspense");case 19:return eu("SuspenseList");case 0:case 2:case 15:return t=rm(t.type,!1),t;case 11:return t=rm(t.type.render,!1),t;case 1:return t=rm(t.type,!0),t;default:return""}}function nm(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _s:return"Fragment";case Cs:return"Portal";case Yg:return"Profiler";case Kg:return"StrictMode";case Zg:return"Suspense";case Xg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case W2:return(t.displayName||"Context")+".Consumer";case G2:return(t._context.displayName||"Context")+".Provider";case Qg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Jg:return e=t.displayName||null,e!==null?e:nm(t.type)||"Memo";case xi:e=t._payload,t=t._init;try{return nm(t(e))}catch{}}return null}function p7(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nm(e);case 8:return e===Kg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Si(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function K2(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function g7(t){var e=K2(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function kd(t){t._valueTracker||(t._valueTracker=g7(t))}function Y2(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=K2(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function xd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function am(t,e){var r=e.checked;return zt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Q2(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Si(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Z2(t,e){e=e.checked,e!=null&&Hg(t,"checked",e,!1)}function im(t,e){Z2(t,e);var r=Si(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?om(t,e.type,r):e.hasOwnProperty("defaultValue")&&om(t,e.type,Si(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function X2(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function om(t,e,r){(e!=="number"||xd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var tu=Array.isArray;function Es(t,e,r,n){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=Sd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ru(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var nu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m7=["Webkit","ms","Moz","O"];Object.keys(nu).forEach(function(t){m7.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),nu[e]=nu[t]})});function aw(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||nu.hasOwnProperty(t)&&nu[t]?(""+e).trim():e+"px"}function iw(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=aw(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,a):t[r]=a}}var v7=zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function um(t,e){if(e){if(v7[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function cm(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dm=null;function hm(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fm=null,Ps=null,Ms=null;function ow(t){if(t=_u(t)){if(typeof fm!="function")throw Error(ue(280));var e=t.stateNode;e&&(e=qd(e),fm(t.stateNode,t.type,e))}}function sw(t){Ps?Ms?Ms.push(t):Ms=[t]:Ps=t}function lw(){if(Ps){var t=Ps,e=Ms;if(Ms=Ps=null,ow(t),e)for(t=0;t>>=0,t===0?32:31-(M7(t)/I7|0)|0}var Md=64,Id=4194304;function su(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Nd(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,a=t.suspendedLanes,i=t.pingedLanes,s=r&268435455;if(s!==0){var u=s&~a;u!==0?n=su(u):(i&=s,i!==0&&(n=su(i)))}else s=r&~a,s!==0?n=su(s):i!==0&&(n=su(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&a)&&(a=n&-n,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function lu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Zn(e),t[e]=r}function T7(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=mu),jw=" ",Aw=!1;function Dw(t,e){switch(t){case"keyup":return s9.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zw(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Os=!1;function u9(t,e){switch(t){case"compositionend":return zw(e);case"keypress":return e.which!==32?null:(Aw=!0,jw);case"textInput":return t=e.data,t===jw&&Aw?null:t;default:return null}}function c9(t,e){if(Os)return t==="compositionend"||!Om&&Dw(t,e)?(t=Nw(),Fd=_m=Mi=null,Os=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qw(r)}}function Kw(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Kw(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Yw(){for(var t=window,e=xd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=xd(t.document)}return e}function Lm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function b9(t){var e=Yw(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Kw(r.ownerDocument.documentElement,r)){if(n!==null&&Lm(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!t.extend&&i>n&&(a=n,n=i,i=a),a=Hw(r,i);var s=Hw(r,n);a&&s&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Rs=null,Fm=null,wu=null,jm=!1;function Qw(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jm||Rs==null||Rs!==xd(n)||(n=Rs,"selectionStart"in n&&Lm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wu&&bu(wu,n)||(wu=n,n=Vd(Fm,"onSelect"),0As||(t.current=Km[As],Km[As]=null,As--)}function Pt(t,e){As++,Km[As]=t.current,t.current=e}var Ri={},Ur=Oi(Ri),un=Oi(!1),_o=Ri;function Ds(t,e){var r=t.type.contextTypes;if(!r)return Ri;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function cn(t){return t=t.childContextTypes,t!=null}function Hd(){Ot(un),Ot(Ur)}function dk(t,e,r){if(Ur.current!==Ri)throw Error(ue(168));Pt(Ur,e),Pt(un,r)}function hk(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(ue(108,p7(t)||"Unknown",a));return zt({},r,n)}function Kd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ri,_o=Ur.current,Pt(Ur,t),Pt(un,un.current),!0}function fk(t,e,r){var n=t.stateNode;if(!n)throw Error(ue(169));r?(t=hk(t,e,_o),n.__reactInternalMemoizedMergedChildContext=t,Ot(un),Ot(Ur),Pt(Ur,t)):Ot(un),Pt(un,r)}var Ka=null,Yd=!1,Ym=!1;function pk(t){Ka===null?Ka=[t]:Ka.push(t)}function O9(t){Yd=!0,pk(t)}function Ti(){if(!Ym&&Ka!==null){Ym=!0;var t=0,e=bt;try{var r=Ka;for(bt=1;t>=s,a-=s,Ya=1<<32-Zn(e)+a|r<R?(A=D,D=null):A=D.sibling;var F=v(x,D,g[R],C);if(F===null){D===null&&(D=A);break}t&&D&&F.alternate===null&&e(x,D),k=i(F,k,R),O===null?N=F:O.sibling=F,O=F,D=A}if(R===g.length)return r(x,D),Ft&&Po(x,R),N;if(D===null){for(;RR?(A=D,D=null):A=D.sibling;var U=v(x,D,F.value,C);if(U===null){D===null&&(D=A);break}t&&D&&U.alternate===null&&e(x,D),k=i(U,k,R),O===null?N=U:O.sibling=U,O=U,D=A}if(F.done)return r(x,D),Ft&&Po(x,R),N;if(D===null){for(;!F.done;R++,F=g.next())F=m(x,F.value,C),F!==null&&(k=i(F,k,R),O===null?N=F:O.sibling=F,O=F);return Ft&&Po(x,R),N}for(D=n(x,D);!F.done;R++,F=g.next())F=y(D,x,R,F.value,C),F!==null&&(t&&F.alternate!==null&&D.delete(F.key===null?R:F.key),k=i(F,k,R),O===null?N=F:O.sibling=F,O=F);return t&&D.forEach(function(H){return e(x,H)}),Ft&&Po(x,R),N}function E(x,k,g,C){if(typeof g=="object"&&g!==null&&g.type===_s&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wd:e:{for(var N=g.key,O=k;O!==null;){if(O.key===N){if(N=g.type,N===_s){if(O.tag===7){r(x,O.sibling),k=a(O,g.props.children),k.return=x,x=k;break e}}else if(O.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===xi&&Mk(N)===O.type){r(x,O.sibling),k=a(O,g.props),k.ref=Eu(x,O,g),k.return=x,x=k;break e}r(x,O);break}else e(x,O);O=O.sibling}g.type===_s?(k=Fo(g.props.children,x.mode,C,g.key),k.return=x,x=k):(C=Sh(g.type,g.key,g.props,null,x.mode,C),C.ref=Eu(x,k,g),C.return=x,x=C)}return s(x);case Cs:e:{for(O=g.key;k!==null;){if(k.key===O)if(k.tag===4&&k.stateNode.containerInfo===g.containerInfo&&k.stateNode.implementation===g.implementation){r(x,k.sibling),k=a(k,g.children||[]),k.return=x,x=k;break e}else{r(x,k);break}else e(x,k);k=k.sibling}k=W0(g,x.mode,C),k.return=x,x=k}return s(x);case xi:return O=g._init,E(x,k,O(g._payload),C)}if(tu(g))return b(x,k,g,C);if(Jl(g))return S(x,k,g,C);ah(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,k!==null&&k.tag===6?(r(x,k.sibling),k=a(k,g),k.return=x,x=k):(r(x,k),k=G0(g,x.mode,C),k.return=x,x=k),s(x)):r(x,k)}return E}var Gs=Ik(!0),Nk=Ik(!1),Pu={},ka=Oi(Pu),Mu=Oi(Pu),Iu=Oi(Pu);function Io(t){if(t===Pu)throw Error(ue(174));return t}function u0(t,e){switch(Pt(Iu,e),Pt(Mu,t),Pt(ka,Pu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lm(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=lm(e,t)}Ot(ka),Pt(ka,e)}function Ws(){Ot(ka),Ot(Mu),Ot(Iu)}function Ok(t){Io(Iu.current);var e=Io(ka.current),r=lm(e,t.type);e!==r&&(Pt(Mu,t),Pt(ka,r))}function c0(t){Mu.current===t&&(Ot(ka),Ot(Mu))}var Bt=Oi(0);function ih(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var d0=[];function h0(){for(var t=0;tr?r:4,t(!0);var n=f0.transition;f0.transition={};try{t(!1),e()}finally{bt=r,f0.transition=n}}function Yk(){return Dn().memoizedState}function F9(t,e,r){var n=zi(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qk(t))Zk(e,r);else if(r=wk(t,e,r,n),r!==null){var a=en();na(r,t,n,a),Xk(r,e,n)}}function j9(t,e,r){var n=zi(t),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qk(t))Zk(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,u=i(s,r);if(a.hasEagerState=!0,a.eagerState=u,Xn(u,s)){var c=e.interleaved;c===null?(a.next=a,i0(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}r=wk(t,e,a,n),r!==null&&(a=en(),na(r,t,n,a),Xk(r,e,n))}}function Qk(t){var e=t.alternate;return t===Ut||e!==null&&e===Ut}function Zk(t,e){Nu=sh=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Xk(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,wm(t,r)}}var ch={readContext:An,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},A9={readContext:An,useCallback:function(t,e){return xa().memoizedState=[t,e===void 0?null:e],t},useContext:An,useEffect:Uk,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,lh(4194308,4,Gk.bind(null,e,t),r)},useLayoutEffect:function(t,e){return lh(4194308,4,t,e)},useInsertionEffect:function(t,e){return lh(4,2,t,e)},useMemo:function(t,e){var r=xa();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=xa();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=F9.bind(null,Ut,t),[n.memoizedState,t]},useRef:function(t){var e=xa();return t={current:t},e.memoizedState=t},useState:zk,useDebugValue:w0,useDeferredValue:function(t){return xa().memoizedState=t},useTransition:function(){var t=zk(!1),e=t[0];return t=L9.bind(null,t[1]),xa().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ut,a=xa();if(Ft){if(r===void 0)throw Error(ue(407));r=r()}else{if(r=e(),xr===null)throw Error(ue(349));No&30||Lk(n,e,r)}a.memoizedState=r;var i={value:r,getSnapshot:e};return a.queue=i,Uk(jk.bind(null,n,i,t),[t]),n.flags|=2048,Tu(9,Fk.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=xa(),e=xr.identifierPrefix;if(Ft){var r=Qa,n=Ya;r=(n&~(1<<32-Zn(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ou++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=s.createElement(r,{is:n.is}):(t=s.createElement(r),r==="select"&&(s=t,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):t=s.createElementNS(t,r),t[wa]=e,t[Cu]=n,gx(t,e,!1,!1),e.stateNode=t;e:{switch(s=cm(r,n),r){case"dialog":Nt("cancel",t),Nt("close",t),a=n;break;case"iframe":case"object":case"embed":Nt("load",t),a=n;break;case"video":case"audio":for(a=0;aYs&&(e.flags|=128,n=!0,Lu(i,!1),e.lanes=4194304)}else{if(!n)if(t=ih(s),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Lu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ft)return Vr(e),null}else 2*tr()-i.renderingStartTime>Ys&&r!==1073741824&&(e.flags|=128,n=!0,Lu(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(r=i.last,r!==null?r.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=tr(),e.sibling=null,r=Bt.current,Pt(Bt,n?r&1|2:r&1),e):(Vr(e),null);case 22:case 23:return U0(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?kn&1073741824&&(Vr(e),e.subtreeFlags&6&&(e.flags|=8192)):Vr(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function W9(t,e){switch(Zm(e),e.tag){case 1:return cn(e.type)&&Hd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ws(),Ot(un),Ot(Ur),h0(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return c0(e),null;case 13:if(Ot(Bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));Us()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ot(Bt),null;case 4:return Ws(),null;case 10:return n0(e.type._context),null;case 22:case 23:return U0(),null;case 24:return null;default:return null}}var fh=!1,Gr=!1,q9=typeof WeakSet=="function"?WeakSet:Set,we=null;function Hs(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qt(t,e,n)}else r.current=null}function yx(t,e,r){try{r()}catch(n){Qt(t,e,n)}}var bx=!1;function H9(t,e){if($m=Td,t=Yw(),Lm(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,u=-1,c=-1,d=0,f=0,m=t,v=null;t:for(;;){for(var y;m!==r||a!==0&&m.nodeType!==3||(u=s+a),m!==i||n!==0&&m.nodeType!==3||(c=s+n),m.nodeType===3&&(s+=m.nodeValue.length),(y=m.firstChild)!==null;)v=m,m=y;for(;;){if(m===t)break t;if(v===r&&++d===a&&(u=s),v===i&&++f===n&&(c=s),(y=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=y}r=u===-1||c===-1?null:{start:u,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Vm={focusedElem:t,selectionRange:r},Td=!1,we=e;we!==null;)if(e=we,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,we=t;else for(;we!==null;){e=we;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,E=b.memoizedState,x=e.stateNode,k=x.getSnapshotBeforeUpdate(e.elementType===e.type?S:ea(e.type,S),E);x.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(C){Qt(e,e.return,C)}if(t=e.sibling,t!==null){t.return=e.return,we=t;break}we=e.return}return b=bx,bx=!1,b}function Fu(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&yx(e,r,i)}a=a.next}while(a!==n)}}function ph(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function N0(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function wx(t){var e=t.alternate;e!==null&&(t.alternate=null,wx(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wa],delete e[Cu],delete e[Hm],delete e[I9],delete e[N9])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function kx(t){return t.tag===5||t.tag===3||t.tag===4}function xx(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||kx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function O0(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Wd));else if(n!==4&&(t=t.child,t!==null))for(O0(t,e,r),t=t.sibling;t!==null;)O0(t,e,r),t=t.sibling}function R0(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(R0(t,e,r),t=t.sibling;t!==null;)R0(t,e,r),t=t.sibling}var Nr=null,ta=!1;function ji(t,e,r){for(r=r.child;r!==null;)Sx(t,e,r),r=r.sibling}function Sx(t,e,r){if(ba&&typeof ba.onCommitFiberUnmount=="function")try{ba.onCommitFiberUnmount(Pd,r)}catch{}switch(r.tag){case 5:Gr||Hs(r,e);case 6:var n=Nr,a=ta;Nr=null,ji(t,e,r),Nr=n,ta=a,Nr!==null&&(ta?(t=Nr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Nr.removeChild(r.stateNode));break;case 18:Nr!==null&&(ta?(t=Nr,r=r.stateNode,t.nodeType===8?qm(t.parentNode,r):t.nodeType===1&&qm(t,r),fu(t)):qm(Nr,r.stateNode));break;case 4:n=Nr,a=ta,Nr=r.stateNode.containerInfo,ta=!0,ji(t,e,r),Nr=n,ta=a;break;case 0:case 11:case 14:case 15:if(!Gr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&yx(r,e,s),a=a.next}while(a!==n)}ji(t,e,r);break;case 1:if(!Gr&&(Hs(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){Qt(r,e,u)}ji(t,e,r);break;case 21:ji(t,e,r);break;case 22:r.mode&1?(Gr=(n=Gr)||r.memoizedState!==null,ji(t,e,r),Gr=n):ji(t,e,r);break;default:ji(t,e,r)}}function Cx(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new q9),e.forEach(function(n){var a=rC.bind(null,t,n);r.has(n)||(r.add(n),n.then(a,a))})}}function ra(t,e){var r=e.deletions;if(r!==null)for(var n=0;na&&(a=s),n&=~i}if(n=a,n=tr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Y9(n/1960))-n,10t?16:t,Di===null)var n=!1;else{if(t=Di,Di=null,bh=0,lt&6)throw Error(ue(331));var a=lt;for(lt|=4,we=t.current;we!==null;){var i=we,s=i.child;if(we.flags&16){var u=i.deletions;if(u!==null){for(var c=0;ctr()-F0?To(t,0):L0|=r),fn(t,e)}function Ax(t,e){e===0&&(t.mode&1?(e=Id,Id<<=1,!(Id&130023424)&&(Id=4194304)):e=1);var r=en();t=Za(t,e),t!==null&&(lu(t,e,r),fn(t,r))}function tC(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Ax(t,r)}function rC(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ue(314))}n!==null&&n.delete(e),Ax(t,r)}var Dx;Dx=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||un.current)dn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return dn=!1,V9(t,e,r);dn=!!(t.flags&131072)}else dn=!1,Ft&&e.flags&1048576&&gk(e,Zd,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;hh(t,e),t=e.pendingProps;var a=Ds(e,Ur.current);Vs(e,r),a=g0(null,e,n,t,a,r);var i=m0();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,cn(n)?(i=!0,Kd(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,o0(e),a.updater=nh,e.stateNode=a,a._reactInternals=e,l0(e,n,t,r),e=C0(null,e,n,!0,i,r)):(e.tag=0,Ft&&i&&Qm(e),Jr(null,e,a,r),e=e.child),e;case 16:n=e.elementType;e:{switch(hh(t,e),t=e.pendingProps,a=n._init,n=a(n._payload),e.type=n,a=e.tag=aC(n),t=ea(n,t),a){case 0:e=S0(null,e,n,t,r);break e;case 1:e=ux(null,e,n,t,r);break e;case 11:e=ax(null,e,n,t,r);break e;case 14:e=ix(null,e,n,ea(n.type,t),r);break e}throw Error(ue(306,n,""))}return e;case 0:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:ea(n,a),S0(t,e,n,a,r);case 1:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:ea(n,a),ux(t,e,n,a,r);case 3:e:{if(cx(e),t===null)throw Error(ue(387));n=e.pendingProps,i=e.memoizedState,a=i.element,kk(t,e),rh(e,n,null,r);var s=e.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=qs(Error(ue(423)),e),e=dx(t,e,n,r,a);break e}else if(n!==a){a=qs(Error(ue(424)),e),e=dx(t,e,n,r,a);break e}else for(wn=Ni(e.stateNode.containerInfo.firstChild),bn=e,Ft=!0,Jn=null,r=Nk(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Us(),n===a){e=Ja(t,e,r);break e}Jr(t,e,n,r)}e=e.child}return e;case 5:return Ok(e),t===null&&Jm(e),n=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,s=a.children,Gm(n,a)?s=null:i!==null&&Gm(n,i)&&(e.flags|=32),lx(t,e),Jr(t,e,s,r),e.child;case 6:return t===null&&Jm(e),null;case 13:return hx(t,e,r);case 4:return u0(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Gs(e,null,n,r):Jr(t,e,n,r),e.child;case 11:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:ea(n,a),ax(t,e,n,a,r);case 7:return Jr(t,e,e.pendingProps,r),e.child;case 8:return Jr(t,e,e.pendingProps.children,r),e.child;case 12:return Jr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,a=e.pendingProps,i=e.memoizedProps,s=a.value,Pt(Jd,n._currentValue),n._currentValue=s,i!==null)if(Xn(i.value,s)){if(i.children===a.children&&!un.current){e=Ja(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Xa(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),a0(i.return,r,e),u.lanes|=r;break}c=c.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ue(341));s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),a0(s,r,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Jr(t,e,a.children,r),e=e.child}return e;case 9:return a=e.type,n=e.pendingProps.children,Vs(e,r),a=An(a),n=n(a),e.flags|=1,Jr(t,e,n,r),e.child;case 14:return n=e.type,a=ea(n,e.pendingProps),a=ea(n.type,a),ix(t,e,n,a,r);case 15:return ox(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:ea(n,a),hh(t,e),e.tag=1,cn(n)?(t=!0,Kd(e)):t=!1,Vs(e,r),Ek(e,n,a),l0(e,n,a,r),C0(null,e,n,!0,t,r);case 19:return px(t,e,r);case 22:return sx(t,e,r)}throw Error(ue(156,e.tag))};function zx(t,e){return mw(t,e)}function nC(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(t,e,r,n){return new nC(t,e,r,n)}function V0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function aC(t){if(typeof t=="function")return V0(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Qg)return 11;if(t===Jg)return 14}return 2}function Ui(t,e){var r=t.alternate;return r===null?(r=Bn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Sh(t,e,r,n,a,i){var s=2;if(n=t,typeof t=="function")V0(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case _s:return Fo(r.children,a,i,e);case Kg:s=8,a|=8;break;case Yg:return t=Bn(12,r,e,a|2),t.elementType=Yg,t.lanes=i,t;case Zg:return t=Bn(13,r,e,a),t.elementType=Zg,t.lanes=i,t;case Xg:return t=Bn(19,r,e,a),t.elementType=Xg,t.lanes=i,t;case q2:return Ch(r,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G2:s=10;break e;case W2:s=9;break e;case Qg:s=11;break e;case Jg:s=14;break e;case xi:s=16,n=null;break e}throw Error(ue(130,t==null?t:typeof t,""))}return e=Bn(s,r,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Fo(t,e,r,n){return t=Bn(7,t,n,e),t.lanes=r,t}function Ch(t,e,r,n){return t=Bn(22,t,n,e),t.elementType=q2,t.lanes=r,t.stateNode={isHidden:!1},t}function G0(t,e,r){return t=Bn(6,t,null,e),t.lanes=r,t}function W0(t,e,r){return e=Bn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function iC(t,e,r,n,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bm(0),this.expirationTimes=bm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bm(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function q0(t,e,r,n,a,i,s,u,c){return t=new iC(t,e,r,u,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Bn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},o0(i),t}function oC(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wx)}catch(t){console.error(t)}}Wx(),A2.exports=mn;var Oh=A2.exports;const dC=Ga(Oh);var qx,Hx=Oh;qx=Hx.createRoot,Hx.hydrateRoot;function hC(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function Qx(t,e,r){t.loadNamespaces(e,Yx(t,r))}function Zx(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,Yx(t,n))}function fC(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],a=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(u,c)=>{const d=e.services.backendConnector.state[`${u}|${c}`];return d===-1||d===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(n,t)&&(!a||s(i,t)))}function pC(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Q0("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,t))return!1}}):fC(t,e,r)}const gC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},vC=t=>mC[t],yC=t=>t.replace(gC,vC);let bC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yC};function wC(){return bC}let kC;function xC(){return kC}const Xx=I.createContext();class SC{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const CC=(t,e)=>{const r=I.useRef();return I.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function Jx(t,e,r,n){return t.getFixedT(e,r,n)}function _C(t,e,r,n){return I.useCallback(Jx(t,e,r,n),[t,e,r,n])}function Bu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:a}=I.useContext(Xx)||{},i=r||n||xC();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new SC),!i){Q0("You will need to pass in an i18next instance by using initReactI18next");const N=(D,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(D)?D[D.length-1]:D,O=[N,{},!1];return O.t=N,O.i18n={},O.ready=!1,O}i.options.react&&i.options.react.wait!==void 0&&Q0("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...wC(),...i.options.react,...e},{useSuspense:u,keyPrefix:c}=s;let d=t||a||i.options&&i.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(d);const f=(i.isInitialized||i.initializedStoreOnce)&&d.every(N=>pC(N,i,s)),m=_C(i,e.lng||null,s.nsMode==="fallback"?d:d[0],c),v=()=>m,y=()=>Jx(i,e.lng||null,s.nsMode==="fallback"?d:d[0],c),[b,S]=I.useState(v);let E=d.join();e.lng&&(E=`${e.lng}${E}`);const x=CC(E),k=I.useRef(!0);I.useEffect(()=>{const{bindI18n:N,bindI18nStore:O}=s;k.current=!0,!f&&!u&&(e.lng?Zx(i,e.lng,d,()=>{k.current&&S(y)}):Qx(i,d,()=>{k.current&&S(y)})),f&&x&&x!==E&&k.current&&S(y);function D(){k.current&&S(y)}return N&&i&&i.on(N,D),O&&i&&i.store.on(O,D),()=>{k.current=!1,N&&i&&N.split(" ").forEach(R=>i.off(R,D)),O&&i&&O.split(" ").forEach(R=>i.store.off(R,D))}},[i,E]);const g=I.useRef(!0);I.useEffect(()=>{k.current&&!g.current&&S(v),g.current=!1},[i,c]);const C=[b,i,f];if(C.t=b,C.i18n=i,C.ready=f,f||!f&&!u)return C;throw new Promise(N=>{e.lng?Zx(i,e.lng,d,()=>N()):Qx(i,d,()=>N())})}function EC(t){let{i18n:e,defaultNS:r,children:n}=t;const a=I.useMemo(()=>({i18n:e,defaultNS:r}),[e,r]);return I.createElement(Xx.Provider,{value:a},n)}/** -* @remix-run/router v1.15.0 -* -* Copyright (c) Remix Software Inc. -* -* This source code is licensed under the MIT license found in the -* LICENSE.md file in the root directory of this source tree. -* -* @license MIT -*/function Uu(){return Uu=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Z0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function MC(){return Math.random().toString(36).substr(2,8)}function t5(t,e){return{usr:t.state,key:t.key,idx:e}}function X0(t,e,r,n){return r===void 0&&(r=null),Uu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Zs(e):e,{state:r,key:e&&e.key||n||MC()})}function Rh(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Zs(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function IC(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,u=$i.Pop,c=null,d=f();d==null&&(d=0,s.replaceState(Uu({},s.state,{idx:d}),""));function f(){return(s.state||{idx:null}).idx}function m(){u=$i.Pop;let E=f(),x=E==null?null:E-d;d=E,c&&c({action:u,location:S.location,delta:x})}function v(E,x){u=$i.Push;let k=X0(S.location,E,x);r&&r(k,E),d=f()+1;let g=t5(k,d),C=S.createHref(k);try{s.pushState(g,"",C)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(C)}i&&c&&c({action:u,location:S.location,delta:1})}function y(E,x){u=$i.Replace;let k=X0(S.location,E,x);r&&r(k,E),d=f();let g=t5(k,d),C=S.createHref(k);s.replaceState(g,"",C),i&&c&&c({action:u,location:S.location,delta:0})}function b(E){let x=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof E=="string"?E:Rh(E);return $t(x,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,x)}let S={get action(){return u},get location(){return t(a,s)},listen(E){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(e5,m),c=E,()=>{a.removeEventListener(e5,m),c=null}},createHref(E){return e(a,E)},createURL:b,encodeLocation(E){let x=b(E);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:y,go(E){return s.go(E)}};return S}var r5;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(r5||(r5={}));function NC(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Zs(e):e,a=Xs(n.pathname||"/",r);if(a==null)return null;let i=n5(t);OC(i);let s=null;for(let u=0;s==null&&u{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&($t(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=Vi([n,c.relativePath]),f=r.concat(c);i.children&&i.children.length>0&&($t(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),n5(i.children,e,f,d)),!(i.path==null&&!i.index)&&e.push({path:d,score:DC(d,i.index),routesMeta:f})};return t.forEach((i,s)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))a(i,s);else for(let c of a5(i.path))a(i,s,c)}),e}function a5(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let s=a5(n.join("/")),u=[];return u.push(...s.map(c=>c===""?i:[i,c].join("/"))),a&&u.push(...s),u.map(c=>t.startsWith("/")&&c===""?"/":c)}function OC(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:zC(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const RC=/^:[\w-]+$/,TC=3,LC=2,FC=1,jC=10,AC=-2,i5=t=>t==="*";function DC(t,e){let r=t.split("/"),n=r.length;return r.some(i5)&&(n+=AC),e&&(n+=LC),r.filter(a=>!i5(a)).reduce((a,i)=>a+(RC.test(i)?TC:i===""?FC:jC),n)}function zC(t,e){return t.length===e.length&&t.slice(0,-1).every((r,n)=>r===e[n])?t[t.length-1]-e[e.length-1]:0}function BC(t,e){let{routesMeta:r}=t,n={},a="/",i=[];for(let s=0;s{let{paramName:m,isOptional:v}=d;if(m==="*"){let b=u[f]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const y=u[f];return v&&!y?c[m]=void 0:c[m]=VC(y||"",m),c},{}),pathname:i,pathnameBase:s,pattern:t}}function UC(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Z0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function $C(t){try{return decodeURI(t)}catch(e){return Z0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function VC(t,e){try{return decodeURIComponent(t)}catch(r){return Z0(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function Xs(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function GC(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?Zs(t):t;return{pathname:r?r.startsWith("/")?r:WC(r,e):e,search:KC(n),hash:YC(a)}}function WC(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function J0(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function o5(t,e){let r=qC(t);return e?r.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function s5(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=Zs(t):(a=Uu({},t),$t(!a.pathname||!a.pathname.includes("?"),J0("?","pathname","search",a)),$t(!a.pathname||!a.pathname.includes("#"),J0("#","pathname","hash",a)),$t(!a.search||!a.search.includes("#"),J0("#","search","hash",a)));let i=t===""||a.pathname==="",s=i?"/":a.pathname,u;if(s==null)u=r;else{let m=e.length-1;if(!n&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),m-=1;a.pathname=v.join("/")}u=m>=0?e[m]:"/"}let c=GC(a,u),d=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Vi=t=>t.join("/").replace(/\/\/+/g,"/"),HC=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),KC=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,YC=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function QC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const l5=["post","put","patch","delete"];new Set(l5);const ZC=["get",...l5];new Set(ZC);/** -* React Router v6.22.0 -* -* Copyright (c) Remix Software Inc. -* -* This source code is licensed under the MIT license found in the -* LICENSE.md file in the root directory of this source tree. -* -* @license MIT -*/function $u(){return $u=Object.assign?Object.assign.bind():function(t){for(var e=1;eTh(t,e),[e,t])}function d5(t){I.useContext(Gi).static||I.useLayoutEffect(t)}function JC(){let{isDataRoute:t}=I.useContext(Wi);return t?p_():e_()}function e_(){Js()||$t(!1);let t=I.useContext(Lh),{basename:e,future:r,navigator:n}=I.useContext(Gi),{matches:a}=I.useContext(Wi),{pathname:i}=el(),s=JSON.stringify(o5(a,r.v7_relativeSplatPath)),u=I.useRef(!1);return d5(()=>{u.current=!0}),I.useCallback(function(c,d){if(d===void 0&&(d={}),!u.current)return;if(typeof c=="number"){n.go(c);return}let f=s5(c,JSON.parse(s),i,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Vi([e,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[e,n,s,i,t])}const t_=I.createContext(null);function r_(t){let e=I.useContext(Wi).outlet;return e&&I.createElement(t_.Provider,{value:t},e)}function Un(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=I.useContext(Gi),{matches:a}=I.useContext(Wi),{pathname:i}=el(),s=JSON.stringify(o5(a,n.v7_relativeSplatPath));return I.useMemo(()=>s5(t,JSON.parse(s),i,r==="path"),[t,s,i,r])}function n_(t,e){return a_(t,e)}function a_(t,e,r,n){Js()||$t(!1);let{navigator:a}=I.useContext(Gi),{matches:i}=I.useContext(Wi),s=i[i.length-1],u=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let d=el(),f;if(e){var m;let E=typeof e=="string"?Zs(e):e;c==="/"||(m=E.pathname)!=null&&m.startsWith(c)||$t(!1),f=E}else f=d;let v=f.pathname||"/",y=c==="/"?v:v.slice(c.length)||"/",b=NC(t,{pathname:y}),S=u_(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Vi([c,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:Vi([c,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,r,n);return e&&S?I.createElement(Fh.Provider,{value:{location:$u({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:$i.Pop}},S):S}function i_(){let t=f_(),e=QC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),r?I.createElement("pre",{style:n},r):null,null)}const o_=I.createElement(i_,null);class s_ extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?I.createElement(Wi.Provider,{value:this.props.routeContext},I.createElement(c5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l_(t){let{routeContext:e,match:r,children:n}=t,a=I.useContext(Lh);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement(Wi.Provider,{value:e},n)}function u_(t,e,r,n){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let s=t,u=(a=r)==null?void 0:a.errors;if(u!=null){let f=s.findIndex(m=>m.route.id&&u?.[m.route.id]);f>=0||$t(!1),s=s.slice(0,Math.min(s.length,f+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((f,m,v)=>{let y,b=!1,S=null,E=null;r&&(y=u&&m.route.id?u[m.route.id]:void 0,S=m.route.errorElement||o_,c&&(d<0&&v===0?(g_("route-fallback",!1),b=!0,E=null):d===v&&(b=!0,E=m.route.hydrateFallbackElement||null)));let x=e.concat(s.slice(0,v+1)),k=()=>{let g;return y?g=S:b?g=E:m.route.Component?g=I.createElement(m.route.Component,null):m.route.element?g=m.route.element:g=f,I.createElement(l_,{match:m,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:g})};return r&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?I.createElement(s_,{location:r.location,revalidation:r.revalidation,component:S,error:y,children:k(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):k()},null)}var h5=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(h5||{}),jh=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(jh||{});function c_(t){let e=I.useContext(Lh);return e||$t(!1),e}function d_(t){let e=I.useContext(u5);return e||$t(!1),e}function h_(t){let e=I.useContext(Wi);return e||$t(!1),e}function f5(t){let e=h_(),r=e.matches[e.matches.length-1];return r.route.id||$t(!1),r.route.id}function f_(){var t;let e=I.useContext(c5),r=d_(jh.UseRouteError),n=f5(jh.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function p_(){let{router:t}=c_(h5.UseNavigateStable),e=f5(jh.UseNavigateStable),r=I.useRef(!1);return d5(()=>{r.current=!0}),I.useCallback(function(n,a){a===void 0&&(a={}),r.current&&(typeof n=="number"?t.navigate(n):t.navigate(n,$u({fromRouteId:e},a)))},[t,e])}const p5={};function g_(t,e,r){!e&&!p5[t]&&(p5[t]=!0)}function m_(t){return r_(t.context)}function tl(t){$t(!1)}function v_(t){let{basename:e="/",children:r=null,location:n,navigationType:a=$i.Pop,navigator:i,static:s=!1,future:u}=t;Js()&&$t(!1);let c=e.replace(/^\/*/,"/"),d=I.useMemo(()=>({basename:c,navigator:i,static:s,future:$u({v7_relativeSplatPath:!1},u)}),[c,u,i,s]);typeof n=="string"&&(n=Zs(n));let{pathname:f="/",search:m="",hash:v="",state:y=null,key:b="default"}=n,S=I.useMemo(()=>{let E=Xs(f,c);return E==null?null:{location:{pathname:E,search:m,hash:v,state:y,key:b},navigationType:a}},[c,f,m,v,y,b,a]);return S==null?null:I.createElement(Gi.Provider,{value:d},I.createElement(Fh.Provider,{children:r,value:S}))}function y_(t){let{children:e,location:r}=t;return n_(e1(e),r)}new Promise(()=>{});function e1(t,e){e===void 0&&(e=[]);let r=[];return I.Children.forEach(t,(n,a)=>{if(!I.isValidElement(n))return;let i=[...e,a];if(n.type===I.Fragment){r.push.apply(r,e1(n.props.children,i));return}n.type!==tl&&$t(!1),!n.props.index||!n.props.children||$t(!1);let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=e1(n.props.children,i)),r.push(s)}),r}/** -* React Router DOM v6.22.0 -* -* Copyright (c) Remix Software Inc. -* -* This source code is licensed under the MIT license found in the -* LICENSE.md file in the root directory of this source tree. -* -* @license MIT -*/function Ah(){return Ah=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[a]=t[a]);return r}function b_(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function w_(t,e){return t.button===0&&(!e||e==="_self")&&!b_(t)}const k_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],x_=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],S_="6";try{window.__reactRouterVersion=S_}catch{}const C_=I.createContext({isTransitioning:!1}),__="startTransition",m5=C2[__];function E_(t){let{basename:e,children:r,future:n,window:a}=t,i=I.useRef();i.current==null&&(i.current=PC({window:a,v5Compat:!0}));let s=i.current,[u,c]=I.useState({action:s.action,location:s.location}),{v7_startTransition:d}=n||{},f=I.useCallback(m=>{d&&m5?m5(()=>c(m)):c(m)},[c,d]);return I.useLayoutEffect(()=>s.listen(f),[s,f]),I.createElement(v_,{basename:e,children:r,location:u.location,navigationType:u.action,navigator:s,future:n})}const P_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dh=I.forwardRef(function(t,e){let{onClick:r,relative:n,reloadDocument:a,replace:i,state:s,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,m=g5(t,k_),{basename:v}=I.useContext(Gi),y,b=!1;if(typeof c=="string"&&M_.test(c)&&(y=c,P_))try{let k=new URL(window.location.href),g=c.startsWith("//")?new URL(k.protocol+c):new URL(c),C=Xs(g.pathname,v);g.origin===k.origin&&C!=null?c=C+g.search+g.hash:b=!0}catch{}let S=XC(c,{relative:n}),E=N_(c,{replace:i,state:s,target:u,preventScrollReset:d,relative:n,unstable_viewTransition:f});function x(k){r&&r(k),k.defaultPrevented||E(k)}return I.createElement("a",Ah({},m,{href:y||S,onClick:b||a?r:x,ref:e,target:u}))}),zh=I.forwardRef(function(t,e){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:i=!1,style:s,to:u,unstable_viewTransition:c,children:d}=t,f=g5(t,x_),m=Un(u,{relative:f.relative}),v=el(),y=I.useContext(u5),{navigator:b,basename:S}=I.useContext(Gi),E=y!=null&&O_(m)&&c===!0,x=b.encodeLocation?b.encodeLocation(m).pathname:m.pathname,k=v.pathname,g=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(k=k.toLowerCase(),g=g?g.toLowerCase():null,x=x.toLowerCase()),g&&S&&(g=Xs(g,S)||g);const C=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let N=k===x||!i&&k.startsWith(x)&&k.charAt(C)==="/",O=g!=null&&(g===x||!i&&g.startsWith(x)&&g.charAt(x.length)==="/"),D={isActive:N,isPending:O,isTransitioning:E},R=N?r:void 0,A;typeof a=="function"?A=a(D):A=[a,N?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(D):s;return I.createElement(Dh,Ah({},f,{"aria-current":R,className:A,ref:e,style:F,to:u,unstable_viewTransition:c}),typeof d=="function"?d(D):d)});var t1;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(t1||(t1={}));var v5;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(v5||(v5={}));function I_(t){let e=I.useContext(Lh);return e||$t(!1),e}function N_(t,e){let{target:r,replace:n,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:u}=e===void 0?{}:e,c=JC(),d=el(),f=Un(t,{relative:s});return I.useCallback(m=>{if(w_(m,r)){m.preventDefault();let v=n!==void 0?n:Rh(d)===Rh(f);c(t,{replace:v,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:u})}},[d,c,f,n,a,r,t,i,s,u])}function O_(t,e){e===void 0&&(e={});let r=I.useContext(C_);r==null&&$t(!1);let{basename:n}=I_(t1.useViewTransitionState),a=Un(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Xs(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Xs(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Th(a.pathname,s)!=null||Th(a.pathname,i)!=null}function R_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const T_=I.forwardRef(R_),L_=T_;function F_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 15-6 6m0 0-6-6m6 6V9a6 6 0 0 1 12 0v3"}))}const j_=I.forwardRef(F_),A_=j_;function D_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 9 6-6m0 0 6 6m-6-6v12a6 6 0 0 1-12 0v-3"}))}const z_=I.forwardRef(D_),B_=z_;function U_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const $_=I.forwardRef(U_),V_=$_;function G_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const W_=I.forwardRef(G_),q_=W_;function H_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const K_=I.forwardRef(H_),Y_=K_;function Q_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const Z_=I.forwardRef(Q_),X_=Z_;function J_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))}const eE=I.forwardRef(J_),tE=eE;function rE({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const nE=I.forwardRef(rE),aE=nE;function iE({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const oE=I.forwardRef(iE),sE=oE;function lE({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"}))}const uE=I.forwardRef(lE),cE=uE;function dE({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const hE=I.forwardRef(dE),fE=hE;function pE({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const gE=I.forwardRef(pE),mE=gE;var y5={exports:{}};(function(t,e){(function(r,n){n()})(ki,function(){function r(d,f){return typeof f>"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}function n(d,f,m){var v=new XMLHttpRequest;v.open("GET",d),v.responseType="blob",v.onload=function(){c(v.response,f,m)},v.onerror=function(){console.error("could not download file")},v.send()}function a(d){var f=new XMLHttpRequest;f.open("HEAD",d,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function i(d){try{d.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(f)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ki=="object"&&ki.global===ki?ki:void 0,u=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(d,f,m){var v=s.URL||s.webkitURL,y=document.createElement("a");f=f||d.name||"download",y.download=f,y.rel="noopener",typeof d=="string"?(y.href=d,y.origin===location.origin?i(y):a(y.href)?n(d,f,m):i(y,y.target="_blank")):(y.href=v.createObjectURL(d),setTimeout(function(){v.revokeObjectURL(y.href)},4e4),setTimeout(function(){i(y)},0))}:"msSaveOrOpenBlob"in navigator?function(d,f,m){if(f=f||d.name||"download",typeof d!="string")navigator.msSaveOrOpenBlob(r(d,m),f);else if(a(d))n(d,f,m);else{var v=document.createElement("a");v.href=d,v.target="_blank",setTimeout(function(){i(v)})}}:function(d,f,m,v){if(v=v||open("","_blank"),v&&(v.document.title=v.document.body.innerText="downloading..."),typeof d=="string")return n(d,f,m);var y=d.type==="application/octet-stream",b=/constructor/i.test(s.HTMLElement)||s.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||y&&b||u)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var g=E.result;g=S?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=g:location=g,v=null},E.readAsDataURL(d)}else{var x=s.URL||s.webkitURL,k=x.createObjectURL(d);v?v.location=k:location.href=k,v=null,setTimeout(function(){x.revokeObjectURL(k)},4e4)}});s.saveAs=c.saveAs=c,t.exports=c})})(y5);var vE=y5.exports;const Vu=j.createContext({theme:"material",dark:!0,touchRipple:!0});function yE(t,e){return typeof window>"u"?I.useEffect(t,e):I.useLayoutEffect(t,e)}const b5=function(t,e){e===void 0&&(e=!0);const[r,n]=I.useState(t);return yE(()=>{if(e){if(t==="ios"||t==="material")r!==t&&n(t);else if(r==="parent"&&typeof window<"u"&&typeof document<"u"){const a=document.documentElement;a&&(a.classList.contains("ios")?n("ios"):(a.classList.contains("md")||a.classList.contains("material"))&&n("material"))}}},[t]),e?r:t},bE=t=>{const{theme:e,dark:r,touchRipple:n=!0,autoThemeDetection:a=!0,children:i}=t,s=b5(e,a);return j.createElement(Vu.Provider,{value:{theme:s,dark:r,touchRipple:n}},i)};function P(){const t=[];for(var e=arguments.length,r=new Array(e),n=0;n{typeof i=="object"&&i.constructor===Object?Object.keys(i).forEach(s=>{i[s]&&t.push(s)}):Array.isArray(i)?t.push(...i):typeof i=="function"?t.push(i()):i&&i.value?t.push(i.value):i&&t.push(i)});const a=[];return t.forEach(i=>{a.indexOf(i)<0&&a.push(i)}),a.filter(i=>!!i).join(" ")}const Vt=function(t,e){return e===void 0&&(e=""),!e||typeof e!="string"?t:["static","relative","absolute","fixed","sticky"].filter(r=>e.indexOf(r)>=0).length>0?"":t},wE=(t,e,r)=>{const{safeAreas:n}=t;return P(e==="ios"&&"k-ios",e==="material"&&"k-material","k-app w-full h-full min-h-screen",n&&"safe-areas",Vt("relative",r),r)};function r1(){return r1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,theme:a="material",dark:i=!0,touchRipple:s=!0,safeAreas:u=!0,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=b5(a),b=wE({...t,safeAreas:u},y,n);return j.createElement(bE,{theme:y,dark:i,touchRipple:s,autoThemeDetection:!1},j.createElement(m,r1({ref:f,className:b},v),c))});w5.displayName="App";const n1=(t,e,r)=>{if(typeof t=="string")return t;const n=[t.common,t[e]];return r&&t[r]&&(typeof t[r]=="string"?n.push(t[r]):n.push(t[r].common,t[r][e])),n},kE=(t,e,r)=>{const n={},a=["common","ios","material"];return Object.keys(t).forEach(i=>{const s=i==="base"?r:"";if(!(typeof t[i]!="string"&&Object.keys(t[i]).filter(c=>!a.includes(c)).length>0)){n[i]=P(n1(t[i],e),s);return}n[i]={};const u=n1(t[i],e);n[i].default=P(u,s),Object.keys(t[i]).filter(c=>!a.includes(c)).forEach(c=>{n[i][c]=P(u,n1(t[i],e,c),s)})}),n},Ie=function(t){let{ios:e,material:r}=t===void 0?{}:t,n=I.useContext(Vu).theme||"ios";return e&&(n="ios"),r&&(n="material"),(a,i)=>kE(a,n,i)},xE=(t,e)=>({base:{common:P("transition-transform z-40 left-1/2 bottom-0 transform -translate-x-1/2 max-w-md w-full overflow-hidden",Vt("fixed",e)),ios:"pt-2 px-2 pb-2-safe duration-300",material:"pb-safe last-child-hairline-b-none rounded-t-2xl duration-400 ease-material-in",opened:"",closed:"translate-y-full"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}});function a1(){return a1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,opened:s,backdrop:u=!0,onBackdropClick:c,children:d,...f}=t,m=I.useRef(null);I.useImperativeHandle(e,()=>({el:m.current}));const v=s?"opened":"closed",y=r,b={...f},S=Ie({ios:a,material:i})(xE(t,n),n);return j.createElement(j.Fragment,null,u&&j.createElement("div",{className:S.backdrop[v],onClick:c}),j.createElement(y,a1({ref:m,className:S.base[v]},b),d))});SE.displayName="Actions";const CE=t=>{const{dividers:e}=t;return{base:{common:"relative",ios:"mt-2 first:mt-0 last-child-hairline-b-none",material:P(e&&"hairline-b")}}};function i1(){return i1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,dividers:s=!0,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=r,m={...c},v=Ie({ios:a,material:i})(CE({dividers:s,...t}),n);return j.createElement(f,i1({ref:d,className:v.base},m),u)});_E.displayName="ActionsGroup";const wt=function(t){let{ios:e,material:r}=t===void 0?{}:t,n=I.useContext(Vu).theme||"ios";return e&&(n="ios"),r&&(n="material"),n};class EE{constructor(e,r,n){const a=this;if(!e)return;a.el=e;const{left:i,top:s,width:u,height:c}=e.getBoundingClientRect(),d={x:r-i,y:n-s};let f=Math.max((c**2+u**2)**.5,48);const m=e.classList.contains("k-touch-ripple-inset");m&&(f=Math.max(Math.min(u,c),48));const v=typeof window<"u"&&window.getComputedStyle(e,null).getPropertyValue("overflow")==="hidden";if(!m&&v){const b=((d.x-u/2)**2+(d.y-c/2)**2)**.5,S=(f/2+b)/(f/2);a.rippleTransform=`translate3d(0px, 0px, 0) scale(${S})`}else a.rippleTransform=`translate3d(${-d.x+u/2}px, ${-d.y+c/2}px, 0) scale(1)`;a.rippleWaveEl=document.createElement("span"),a.rippleWaveEl.classList.add("k-touch-ripple-wave"),a.rippleWaveEl.setAttribute("hidden",""),a.rippleWaveEl.style=` - width: ${f}px; - height: ${f}px; - margin-top:-${f/2}px; - margin-left:-${f/2}px; - left:${d.x}px; - top:${d.y}px; --k-ripple-transform: ${a.rippleTransform}`,e.insertAdjacentElement("afterbegin",a.rippleWaveEl);const y=()=>{a.rippleWaveEl.removeEventListener("animationend",y),a.rippleWaveEl&&(a.rippleWaveEl.classList.contains("k-touch-ripple-wave-out")||(a.rippleWaveEl.classList.add("k-touch-ripple-wave-in"),a.shouldBeRemoved&&a.out()))};return a.rippleWaveEl.addEventListener("animationend",y),a}destroy(){let e=this;e.rippleWaveEl&&e.el.removeChild(e.rippleWaveEl),Object.keys(e).forEach(r=>{e[r]=null,delete e[r]}),e=null}out(){const e=this,{rippleWaveEl:r}=this;clearTimeout(e.removeTimeout),r.classList.add("k-touch-ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300);const n=()=>{e.rippleWaveEl.removeEventListener("animationend",n),clearTimeout(e.removeTimeout),e.destroy()};e.rippleWaveEl.addEventListener("animationend",n)}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&e.out())}}const aa=(t,e,r)=>{const n=I.useContext(Vu);r||(r=t);const a=I.useRef(null),i=()=>{a.current&&a.current.remove(),a.current=null},s=y=>{a.current=new EE(t.current,y.pageX,y.pageY)},u=()=>{i()},c=()=>{i()},d=()=>{if(!n.touchRipple)return;const y=r.current;y.addEventListener("pointerdown",s),y.addEventListener("pointermove",u),y.addEventListener("pointerup",c),y.addEventListener("pointercancel",c),y.addEventListener("contextmenu",c)},f=()=>{const y=r.current;y.removeEventListener("pointerdown",s),y.removeEventListener("pointermove",u),y.removeEventListener("pointerup",c),y.removeEventListener("pointercancel",c),y.removeEventListener("contextmenu",c)},m=()=>{!r||!r.current||!e||d()},v=()=>{!r||!r.current||!e||f()};I.useEffect(()=>(m(),()=>v()))},He=()=>{const t=I.useContext(Vu);return e=>t.dark?e:""},PE=(t,e,r)=>{const{fontSizeIos:n,fontSizeMaterial:a,bold:i,dividers:s}=t;return{base:{common:P("flex items-center w-full px-4 relative z-10 overflow-hidden",s&&"hairline-b"),ios:P("h-14",e.textIos,e.bgIos,e.activeBgIos,n,"first:rounded-t-xl last:rounded-b-xl justify-center",i&&"font-semibold"),material:P("h-12",e.textMaterial,e.bgMaterial,e.activeBgMaterial,a,"justify-start",r("dark:touch-ripple-white"),i&&"font-medium")}}},ME=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),activeBgIos:P("active:bg-neutral-200",e("dark:active:bg-neutral-700")),activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t}};function o1(){return o1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:s,bold:u,boldIos:c=!1,boldMaterial:d=!1,fontSizeIos:f="text-xl",fontSizeMaterial:m="text-base",href:v,touchRipple:y=!0,dividers:b=void 0,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));let k=r;typeof t.component>"u"&&(v||v==="")&&(k="a");const g={href:v,...E},C=wt({ios:i,material:s}),N=Ie({ios:i,material:s}),O=He();aa(x,C==="material"&&y);const D=ME(a,O),R=N(PE({fontSizeIos:f,fontSizeMaterial:m,bold:typeof u>"u"?C==="ios"?c:d:u,dividers:typeof b>"u"?C==="ios":b,...t},D,O),n);return j.createElement(k,o1({ref:x,role:"button",tabIndex:"0",className:R.base},g),S)});IE.displayName="ActionsButton";const NE=(t,e)=>{const{fontSizeIos:r,fontSizeMaterial:n,dividers:a}=t;return{base:{common:P(`flex items-center w-full px-4 relative z-10 overflow-hidden ${e.activeBg}`,a&&"hairline-b"),ios:P("h-14",e.bgIos,e.textIos,r,"first:rounded-t-xl last:rounded-b-xl justify-center"),material:P("h-12",e.bgMaterial,e.textMaterial,n,"font-medium","justify-start")}}},OE=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),textIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function s1(){return s1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,fontSizeIos:u="text-sm",fontSizeMaterial:c="text-sm",dividers:d=void 0,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...m},S=wt({ios:i,material:s}),E=Ie({ios:i,material:s}),x=He(),k=OE(a,x),g=E(NE({fontSizeIos:u,fontSizeMaterial:c,dividers:typeof d>"u"?S==="ios":d,...t},k),n);return j.createElement(y,s1({ref:v,className:g.base},b),f)});RE.displayName="ActionsLabel";const TE=(t,e)=>({base:{common:`${e.text} ${e.bg} inline-flex items-center justify-center rounded-full leading-none`,ios:"font-semibold",material:"font-medium",sm:"text-2xs min-w-4 min-h-4 px-0.5",md:"text-xs min-w-5 min-h-5 px-1.5 py-0.5"}}),LE=function(t){return t===void 0&&(t={}),{bg:"bg-primary",text:"text-white",...t}};function l1(){return l1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,small:i,ios:s,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=Ie({ios:s,material:u}),b=LE(a),S=i?"sm":"md",E=y(TE(t,b),n);return j.createElement(m,l1({ref:f,className:E.base[S]},v),c)});k5.displayName="Badge";const FE=(t,e,r)=>{const{inset:n,nested:a,margin:i,padding:s,strong:u,outline:c}=t;return{base:{common:P("text-sm z-10",Vt("relative",r),!n&&!a&&c&&"hairline-t hairline-b",n&&c&&"border",n&&"px-4",!n&&"pl-4-safe pr-4-safe",!a&&i,(u||c)&&s),ios:P(e.textIos,u&&e.strongBgIos,n&&c&&e.outlineIos),material:P(e.textMaterial,u&&e.strongBgMaterial,n&&c&&e.outlineMaterial)},inset:{common:"ml-4-safe mr-4-safe overflow-hidden",ios:"rounded-lg",material:"rounded-2xl"}}},jE=function(t,e){return t===void 0&&(t={}),{outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-15")),outlineMaterial:P("border-md-light-outline",e("border-md-dark-outline")),strongBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),strongBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t}};function u1(){return u1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,margin:i="my-8",padding:s="py-4",inset:u,insetIos:c,insetMaterial:d,strong:f,strongIos:m,strongMaterial:v,outline:y,outlineIos:b,outlineMaterial:S,nested:E,ios:x,material:k,children:g,...C}=t,N=I.useRef(null);I.useImperativeHandle(e,()=>({el:N.current}));const O=r,D={...C},R=wt({ios:x,material:k}),A=Ie({ios:x,material:k}),F=He(),U=jE(a,F),H=typeof f>"u"?R==="ios"?m:v:f,q=typeof y>"u"?R==="ios"?b:S:y,ne=typeof u>"u"?R==="ios"?c:d:u,ie=A(FE({...t,margin:i,padding:s,inset:ne,strong:H,outline:q},U,n)),se=P(ie.base,ne&&ie.inset,n);return j.createElement(O,u1({ref:N,className:se},D),g)});ti.displayName="Block";const AE=(t,e)=>{const{inset:r}=t;return{base:{common:P("mb-8 flex items-center -mt-6 text-sm",r?"pl-8-safe pr-8-safe":"pl-4-safe pr-4-safe"),ios:e.textIos,material:e.textMaterial}}},DE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-75",e("dark:text-white dark:text-opacity-75")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function c1(){return c1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,inset:u,insetIos:c,insetMaterial:d,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=wt(),b=typeof u>"u"?y==="ios"?c:d:u,S=r,E={...m},x=Ie({ios:i,material:s}),k=He(),g=DE(a,k),C=x(AE({...t,inset:b},g),n);return j.createElement(S,c1({ref:v,className:C.base},E),f)});zE.displayName="BlockFooter";const BE=(t,e)=>{const{inset:r}=t;return{base:{common:P("mt-8 flex items-center -mb-6 text-sm",r?"pl-8-safe pr-8-safe":"pl-4-safe pr-4-safe"),ios:e.textIos,material:e.textMaterial}}},UE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black",e("dark:text-white")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function d1(){return d1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,inset:u,insetIos:c,insetMaterial:d,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...m},S=wt(),E=typeof u>"u"?S==="ios"?c:d:u,x=Ie({ios:i,material:s}),k=He(),g=UE(a,k),C=x(BE({...t,inset:E},g),n);return j.createElement(y,d1({ref:v,className:C.base},b),f)});$E.displayName="BlockHeader";const VE=(t,e)=>{const{withBlock:r,medium:n,large:a}=t;return{base:{common:`pl-4-safe pr-4-safe mt-8 flex justify-between items-center ${r?"-mb-6":"mb-2"}`,ios:P(`font-semibold ${e.textIos}`,a&&"text-[1.5rem]",n&&"text-[1.125rem]",!n&&!a&&"text-[1rem]"),material:P(`font-medium ${e.textMaterial}`,a&&"text-[1.375rem]",n&&"text-[1rem]",!n&&!a&&"text-[0.875rem]")}}},GE=function(t,e){return t===void 0&&(t={}),{textIos:"",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function h1(){return h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,withBlock:i=!0,medium:s,large:u,ios:c,material:d,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...m},S=Ie({ios:c,material:d}),E=He(),x=GE(a,E),k=S(VE({...t,withBlock:i},x),n);return j.createElement(y,h1({ref:v,className:k.base},b),f)});WE.displayName="BlockTitle";const qE=t=>{const{fontSizeIos:e,fontSizeMaterial:r}=t;return{base:{common:"flex items-center justify-start overflow-auto whitespace-nowrap py-1 px-0 space-x-3 no-scrollbar rtl:space-x-reverse",ios:e,material:r}}};function f1(){return f1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,fontSizeIos:a="text-[17px]",fontSizeMaterial:i="text-[14px]",ios:s,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=Ie({ios:s,material:u})(qE({...t,fontSizeIos:a,fontSizeMaterial:i}),n);return j.createElement(m,f1({ref:f,className:y.base},v),c)});HE.displayName="Breadcrumbs";const KE=(t,e)=>{const{active:r}=t;return{base:{common:P("flex items-center overflow-hidden"),ios:P(e.textIos,e.bgIos,r?e.textActiveIos:e.textIos,r&&"font-semibold"),material:P("font-medium px-2 py-1 rounded-lg",e.bgMaterial,r?e.textActiveMaterial:e.textMaterial)}}},YE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),textMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),bgIos:"",bgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),textActiveIos:P("text-black",e("dark:text-white")),textActiveMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),...t}};function p1(){return p1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,colors:s,active:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=Ie({ios:a,material:i}),b=He(),S=YE(s,b),E=y(KE({...t},S),n);return j.createElement(m,p1({ref:f,className:E.base,role:"menuitem",tabIndex:"0"},v),c)});QE.displayName="BreadcrumbsItem";const ZE=()=>({base:{common:"w-3 opacity-35 flex justify-center",ios:"",material:""},icon:{common:"rtl:rotate-180",ios:"h-3",material:"h-2.5"}});function g1(){return g1=Object.assign?Object.assign.bind():function(t){for(var e=1;ej.createElement("svg",g1({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},t),j.createElement("path",{d:"M11.518406,10.5648622 C11.4831857,10.6163453 11.4426714,10.6653692 11.3968592,10.7111814 L2.5584348,19.5496058 C1.9753444,20.1326962 1.03186648,20.1345946 0.44199608,19.5447242 C-0.14379032,18.9589377 -0.14922592,18.0146258 0.43711448,17.4282854 L7.87507783,9.9903221 L0.4431923,2.5584366 C-0.1398981,1.9753462 -0.1417965,1.0318683 0.448074,0.4419979 C1.0338604,-0.1437886 1.9781723,-0.1492241 2.56451268,0.4371163 L11.4029371,9.2755407 C11.7556117,9.6282153 11.7969345,10.1725307 11.518406,10.5648622 Z"}));function m1(){return m1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,children:s,...u}=t,c=I.useRef(null);I.useImperativeHandle(e,()=>({el:c.current}));const d=r,f={...u},m=Ie({ios:a,material:i})(ZE({...t}),n);return j.createElement(d,m1({ref:c,className:m.base},f),j.createElement(x5,{className:m.icon}),s)});XE.displayName="BreadcrumbsSeparator";const JE=(t,e)=>({base:{common:`flex items-center cursor-pointer space-x-0.75 rtl:space-x-reverse ${e.bg}`,ios:P("rounded active:opacity-30 px-1.5 h-[1em] duration-300 active:duration-0",e.bgIos),material:P("py-3 px-2 rounded-lg",e.bgMaterial)},dot:{common:`w-1 h-1 rounded-full ${e.dotBg}`,ios:e.dotBgIos,material:e.dotBgMaterial}}),eP=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-black bg-opacity-15",e("dark:bg-white dark:bg-opacity-15")),bgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),dotBgIos:P("bg-black",e("dark:bg-white")),dotBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function v1(){return v1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=He(),m=eP(a,f),v=r,y={...c},b=Ie({ios:i,material:s})(JE({...t},m),n);return j.createElement(v,v1({ref:d,role:"button",tabIndex:"0",className:b.base},y),j.createElement("span",{className:b.dot}),j.createElement("span",{className:b.dot}),j.createElement("span",{className:b.dot}),u)});tP.displayName="BreadcrumbsCollapsed";const rP=(t,e,r,n)=>{const{inline:a,segmented:i,segmentedStrong:s,segmentedActive:u,disabled:c}=t;return{base:{common:P("flex text-center justify-center items-center appearance-none py-1 transition-colors focus:outline-none cursor-pointer select-none overflow-hidden z-10",a?"inline-flex":"w-full flex",Vt("relative",r),c&&"pointer-events-none",s&&u&&"k-segmented-strong-button-active"),ios:"uppercase duration-100 font-semibold px-2",material:"duration-300 font-medium px-4",square:{ios:i&&!s?"first:rounded-s last:rounded-e":"rounded",material:i&&!s?"first:rounded-lg-s last:rounded-lg-e":"rounded-lg"},rounded:i&&!s?"":"rounded-full"},style:{fill:{common:P(c&&P(e.disabledBg,e.disabledText)),ios:P(c?P(e.disabledBg,e.disabledText):`${e.fillTextIos} ${e.fillBgIos} ${e.fillActiveBgIos}`),material:P(c?P(e.disabledBg,e.disabledText):P(e.fillTextMaterial,e.fillBgMaterial,e.fillActiveBgMaterial,e.fillTouchRipple))},outline:{common:P(c?P(e.disabledText,e.disabledBorder):P("active:bg-opacity-15",e.touchRipple)),ios:P(!i&&"border-2",!c&&!i&&e.outlineBorderIos,!c&&P(e.textIos,e.activeBgIos)),material:P(!i&&"border",!c&&!i&&e.outlineBorderMaterial,!c&&P(e.textMaterial,e.activeBgMaterial))},clear:{common:P(c?e.disabledText:`active:bg-opacity-15 ${e.touchRipple}`),ios:!c&&P(e.textIos,e.activeBgIos),material:!c&&P(e.textMaterial,e.activeBgMaterial)},tonal:{common:c?P(e.disabledBg,e.disabledText):P(e.touchRipple),ios:!c&&P(e.tonalTextIos,e.tonalBgIos,e.activeBgIos,"bg-opacity-15 active:bg-opacity-25"),material:!c&&P(e.tonalTextMaterial,e.tonalBgMaterial,e.activeBgMaterial)},segmentedStrong:P("active:bg-black active:bg-opacity-10",n("dark:active:bg-white dark:active:bg-opacity-5 dark:touch-ripple-white")),segmentedStrongActive:"duration-0"},size:{small:{ios:"text-xs h-7",material:"text-sm h-8"},medium:{common:"text-sm",ios:"h-7",material:"h-10"},large:{ios:"h-11",material:"h-12"}},raised:"shadow active:shadow-lg"}},nP=function(t,e){return t===void 0&&(t={}),{activeBgIos:"active:bg-primary",activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:P("text-white"),fillTextMaterial:P("text-md-light-on-primary",e("dark:text-md-dark-on-primary")),fillActiveBgIos:"active:bg-ios-primary-shade",fillActiveBgMaterial:"",fillBgIos:"bg-primary",fillBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),fillTouchRipple:P("touch-ripple-white","dark:touch-ripple-primary"),outlineBorderIos:"border-primary",outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),tonalBgIos:"bg-primary",tonalBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:P("text-black text-opacity-30",e("dark:text-white dark:text-opacity-30")),disabledBg:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-10")),disabledBorder:P("border-black border-opacity-10",e("dark:border-white dark:border-opacity-10")),...t}};function y1(){return y1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:s,disabled:u,href:c,outline:d,outlineIos:f,outlineMaterial:m,clear:v,clearIos:y,clearMaterial:b,tonal:S,tonalIos:E,tonalMaterial:x,rounded:k,roundedIos:g,roundedMaterial:C,small:N,smallIos:O,smallMaterial:D,large:R,largeIos:A,largeMaterial:F,raised:U,raisedIos:H,raisedMaterial:q,inline:ne,segmented:ie,segmentedStrong:se,segmentedActive:K,touchRipple:z=!0,children:ee,...Q}=t,oe=I.useRef(null);I.useImperativeHandle(e,()=>({el:oe.current}));let he=r;typeof t.component>"u"&&(c||c==="")&&(he="a");const Ce={href:c,...Q},ge=wt({ios:i,material:s}),Me=Ie({ios:i,material:s}),Ne=He();aa(oe,ge==="material"&&z);const $=(Ye=>{const it={};return Object.keys(Ye).forEach(De=>{it[De]=typeof Ye[De]>"u"?ge==="ios"?t[`${De}Ios`]:t[`${De}Material`]:Ye[De]}),it})({outline:d,clear:v,tonal:S,rounded:k,small:N,large:R,raised:U}),re=$.large?"large":$.small?"small":"medium";let le=$.outline?"outline":$.clear||ie&&!K?"clear":$.tonal?"tonal":"fill";se&&(le="segmentedStrong"),se&&K&&(le="segmentedStrongActive");const Se=nP(a,Ne),Oe=Me(rP({...t,...$},Se,n,Ne)),Fe=P(Oe.base[$.rounded?"rounded":"square"],Oe.style[le],Oe.size[re],$.raised&&Oe.raised,n);return j.createElement(he,y1({ref:oe,className:Fe,disabled:u,role:"button",tabIndex:"0"},Ce),ee)});Wr.displayName="Button";const aP=(t,e)=>{const{margin:r,headerDivider:n,footerDivider:a,contentWrapPadding:i}=t;return{base:{common:P(r,"overflow-hidden"),ios:P("rounded-lg",e.bgIos,e.textIos),material:P("rounded-2xl",e.bgMaterial,e.textMaterial),plain:"",raised:"shadow",outline:{common:P("border"),ios:e.outlineIos,material:e.outlineMaterial}},header:{common:P(n&&"border-b","p-4"),ios:P(n&&e.outlineIos,t.headerFontSizeIos),material:P(n&&e.outlineMaterial,t.headerFontSizeMaterial)},content:P(i,"text-sm"),footer:{common:P(n&&"border-t","text-sm p-4"),ios:P(e.footerTextIos,a&&e.outlineIos),material:P(e.footerTextMaterial,a&&e.outlineMaterial)}}},iP=function(t,e){return t===void 0&&(t={}),{textIos:P(""),textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),bgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),bgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),footerTextIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),footerTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-20")),outlineMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function b1(){return b1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,margin:a="m-4",colors:i,header:s,footer:u,ios:c,material:d,headerFontSizeIos:f="text-[17px]",headerFontSizeMaterial:m="text-[22px]",contentWrap:v=!0,contentWrapPadding:y="p-4",raised:b,raisedIos:S,raisedMaterial:E,outline:x,outlineIos:k,outlineMaterial:g,headerDivider:C=!1,footerDivider:N=!1,children:O,...D}=t,R=I.useRef(null);I.useImperativeHandle(e,()=>({el:R.current}));const A=r,F={...D},U=wt(),H=Ie({ios:c,material:d}),q=He(),ne=iP(i,q),ie=typeof x>"u"?U==="ios"?k:g:x,se=typeof b>"u"?U==="ios"?S:E:b,K=ie?"outline":se?"raised":"plain",z=H(aP({...t,margin:a,contentWrapPadding:y,headerDivider:C,footerDivider:N,headerFontSizeIos:f,headerFontSizeMaterial:m,outline:ie,raised:se},ne),n);return j.createElement(A,b1({ref:R,className:z.base[K]},F),s&&j.createElement("div",{className:z.header},s),v?j.createElement("div",{className:z.content},O):O,u&&j.createElement("div",{className:z.footer},u))});S5.displayName="Card";const oP=(t,e,r,n)=>({base:P("cursor-pointer inline-flex align-middle",Vt("relative",r),n("dark:touch-ripple-white")),iconWrap:{common:P("flex items-center justify-center text-white",n("dark:text-black")),ios:"w-5.5 h-5.5 rounded-full border",material:"w-4.5 h-4.5 rounded-sm border-2",notChecked:{ios:e.borderIos,material:e.borderMaterial},checked:{ios:`${e.bgCheckedIos} ${e.borderCheckedIos}`,material:`${e.bgCheckedMaterial} ${e.borderCheckedMaterial}`}},icon:{notChecked:"opacity-0",checked:"opacity-100"},indeterminateIcon:{common:P("bg-white w-3/4",n("dark:bg-black")),ios:"h-0.5 rounded-full",material:"h-0.5"},input:"hidden"}),sP=function(t,e){return t===void 0&&(t={}),{borderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),bgCheckedIos:"bg-primary",bgCheckedMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderCheckedIos:"border-primary",borderCheckedMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),...t}};function Bh(){return Bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{ios:e,material:r,fill:n,...a}=t;return wt({ios:e,material:r})==="ios"?j.createElement("svg",Bh({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},a),j.createElement("path",{fill:n||"currentColor",fillRule:"evenodd",d:"M10.6461792,0.119820016 C11.0022676,0.346673312 11.1070333,0.819240884 10.88018,1.17532923 L5.59004012,9.47918548 C5.44456028,9.70754308 5.19802823,9.83254199 4.94596825,9.83309245 C4.59813173,9.83364386 4.39457446,9.67360825 4.28105047,9.53831563 L1.17887189,5.84128316 C0.907480501,5.5178515 0.949667479,5.03565214 1.27309914,4.76426075 C1.59653081,4.49286936 2.07873017,4.53505633 2.35012156,4.858488 L4.8346263,7.81909046 L9.59067001,0.353820775 C9.81752331,-0.00226757161 10.2900909,-0.10703328 10.6461792,0.119820016 Z",transform:"translate(4 5.483)"})):j.createElement("svg",Bh({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 18 14",fill:"currentcolor"},a),j.createElement("polygon",{fill:n,points:"6 11.17 1.83 7 .41 8.41 6 14 18 2 16.59 .59"}))};function w1(){return w1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:s,indeterminate:u,name:c,value:d,disabled:f,readOnly:m,onChange:v,ios:y,material:b,touchRipple:S=!0,children:E,...x}=t,k=I.useRef(null),g=I.useRef(null);I.useImperativeHandle(e,()=>({el:g.current,inputEl:k.current}));const C=r,N={...x},O=wt({ios:y,material:b}),D=Ie({ios:y,material:b}),R=He();aa(g,O==="material"&&S);const A=sP(a,R),F=s||i&&!v||u?"checked":"notChecked",U=D(oP(t,A,n,R),n);return I.useEffect(()=>{k.current&&(k.current.indeterminate=!!u)},[u]),j.createElement(C,w1({ref:g,className:U.base},N),j.createElement("input",{ref:k,type:"checkbox",name:c,value:d,disabled:f,readOnly:m,checked:s,defaultChecked:i,onChange:v,className:U.input}),j.createElement("i",{className:U.iconWrap[F]},u?j.createElement("span",{className:U.indeterminateIcon}):j.createElement(C5,{ios:y,material:b,className:U.icon[F]})),E)});lP.displayName="Checkbox";const uP=(t,e)=>({base:{common:"text-sm inline-flex items-center justify-center align-middle rounded-full px-3",ios:"rounded-full h-7",material:"rounded-lg h-8 font-medium",fill:{ios:P(e.fillBg||e.fillBgIos,e.fillText||e.fillTextIos),material:P(e.fillBg||e.fillBgMaterial,e.fillText||e.fillTextMaterial)},outline:{common:"border",ios:P(e.outlineText||e.outlineTextIos,e.outlineBorder||e.outlineBorderIos),material:P(e.outlineText||e.outlineTextMaterial,e.outlineBorder||e.outlineBorderMaterial)}},media:{common:"-my-1 me-1 select-none",ios:"-ms-3",material:"-ms-2"},deleteButton:"-me-2 -my-1 ms-1 h-full flex items-center justify-center w-6 cursor-pointer opacity-50 active:opacity-100 select-none"}),cP=function(t,e){return t===void 0&&(t={}),{fillTextIos:"text-current",fillTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),fillBgIos:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-10")),fillBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),outlineTextIos:P("text-current"),outlineTextMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),outlineBorderIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-20")),outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function Uh(){return Uh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?j.createElement("svg",Uh({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},r),j.createElement("path",{d:"M14,0 C21.7319865,0 28,6.2680135 28,14 C28,21.7319865 21.7319865,28 14,28 C6.2680135,28 0,21.7319865 0,14 C0,6.2680135 6.2680135,0 14,0 Z M18.9393398,6.93933983 L14,11.8786797 L9.06066017,6.93933983 L6.93933983,9.06066017 L11.8786797,14 L6.93933983,18.9393398 L9.06066017,21.0606602 L14,16.1213203 L18.9393398,21.0606602 L21.0606602,18.9393398 L16.1213203,14 L21.0606602,9.06066017 L18.9393398,6.93933983 Z"})):j.createElement("svg",Uh({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),j.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 10.59L15.59 7L17 8.41L13.41 12L17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59Z",fill:"currentcolor"}))};function k1(){return k1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,media:i,deleteButton:s,onDelete:u,ios:c,material:d,outline:f,children:m,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=r,S={...v},E=Ie({ios:c,material:d}),x=wt({ios:c,material:d}),k=He(),g=f?"outline":"fill",C=cP(a,k),N=E(uP(t,C),n);return j.createElement(b,k1({ref:y,className:N.base[g]},S),i&&j.createElement("div",{className:N.media},i),m,s&&j.createElement("div",{className:N.deleteButton,role:"button",tabIndex:"0",onClick:u},j.createElement(Gu,{theme:x,className:"h-4 w-4"})))});dP.displayName="Chip";const hP=(t,e,r,n)=>{let{hasButtons:a}=n;const{titleFontSizeMaterial:i,titleFontSizeIos:s,translucent:u,sizeIos:c,sizeMaterial:d}=t;return{base:{common:P("left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-40 max-h-full overflow-hidden duration-400",Vt("fixed",r)),ios:P("rounded-xl max-w-full",c,e.bgIos,u&&"translucent"),material:P("rounded-[1.75rem] p-6 max-w-[90%]",d,e.bgMaterial),opened:"",closed:"scale-[0.85] opacity-0 pointer-events-none"},contentWrap:{common:"flex flex-col items-center justify-center",material:"space-y-3",ios:P("p-4 space-y-1 relative",a&&"hairline-b")},title:{common:P("w-full"),ios:P(e.titleIos,s,"font-semibold text-center"),material:P(e.titleMaterial,i)},content:{common:P("text-sm w-full"),ios:P(e.contentTextIos,"text-center"),material:P(e.contentTextMaterial)},buttons:{common:"flex items-center",ios:P("justify-center last-child-hairline-r-none"),material:P("justify-end pt-6 space-x-2 rtl:space-x-reverse")},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},fP=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),titleIos:"",titleMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),contentTextIos:"",contentTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function x1(){return x1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,opened:i,backdrop:s=!0,onBackdropClick:u,translucent:c=!0,sizeIos:d="w-[16.875rem]",sizeMaterial:f="w-[19.5rem]",titleFontSizeIos:m="text-[18px]",titleFontSizeMaterial:v="text-[24px]",title:y,content:b,buttons:S,ios:E,material:x,children:k,...g}=t,C=I.useRef(null);I.useImperativeHandle(e,()=>({el:C.current}));const N=i?"opened":"closed",O=r,D={...g},R=Ie({ios:E,material:x}),A=He(),F=fP(a,A),U=R(hP({...t,titleFontSizeIos:m,titleFontSizeMaterial:v,translucent:c,sizeIos:d,sizeMaterial:f},F,n,{hasButtons:!!S}),n);return j.createElement(j.Fragment,null,s&&j.createElement("div",{className:U.backdrop[N],onClick:u}),j.createElement(O,x1({ref:C,className:U.base[N]},D),j.createElement("div",{className:U.contentWrap},y&&j.createElement("div",{className:U.title},y),(b||k)&&j.createElement("div",{className:U.content},b,k)),S&&j.createElement("div",{className:U.buttons},S)))});pP.displayName="Dialog";const gP=(t,e)=>{const{strong:r,disabled:n}=t;return{base:{ios:P("text-center text-[17px] flex items-center justify-center h-11 w-full hairline-r rtl:hairline-l relative first:rounded-bl-xl last:rounded-br-xl rtl:first:rounded-br-xl rtl:first:rounded-bl-none rtl:last:rounded-bl-xl rtl:last:rounded-br-none",n?e.disabledTextIos:e.textIos,r&&"font-semibold",!n&&e.activeBgIos)}}},mP=function(t,e){return t===void 0&&(t={}),{activeBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),textIos:"text-primary",disabledTextIos:P("text-black text-opacity-30",e("dark:text-white dark:text-opacity-30")),...t}};function $h(){return $h=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:s,disabled:u,strong:c,strongIos:d,strongMaterial:f,children:m,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b={...v},S=wt({ios:i,material:s}),E=Ie({ios:i,material:s}),x=He(),k=mP(a,x),g=typeof c>"u"?S==="ios"?d:f:c,C=E(gP({...t,strong:g},k),n),N=r;return S==="ios"?j.createElement(N,$h({className:C.base,disabled:u,role:"button",tabIndex:"0"},b),m):j.createElement(Wr,$h({component:r,inline:!0,rounded:!0,disabled:u,clear:!g,className:n},b),m)});vP.displayName="DialogButton";const yP=(t,e)=>({base:{common:"flex items-center justify-center space-x-2 rtl:!space-x-reverse cursor-pointer overflow-hidden select-none",ios:`h-12 duration-100 rounded-full shadow-lg ${e.bgIos} ${e.activeBgIos} ${e.textIos}`,material:`duration-300 rounded-2xl shadow ${e.bgMaterial} ${e.activeBgMaterial} ${e.textMaterial} ${e.touchRipple}`,iconOnly:{ios:"w-12",material:"w-14 h-14"},withText:{common:"px-4",material:"h-14"}},text:{common:"text-sm",ios:"font-semibold uppercase",material:"font-medium"},icon:{common:"h-1em w-1em",ios:"text-icon-ios",material:"text-icon-material"}}),bP=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-primary",bgMaterial:P("bg-md-light-primary-container",e("dark:bg-md-dark-primary-container")),activeBgIos:"active:bg-ios-primary-shade",activeBgMaterial:"",textIos:"text-white",textMaterial:P("text-md-light-on-primary-container",e("dark:text-md-dark-on-primary-container")),touchRipple:P("touch-ripple-primary",e("dark:touch-ripple-white")),...t}};function S1(){return S1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,colors:a,href:i,text:s,textPosition:u="after",icon:c,ios:d,material:f,touchRipple:m=!0,children:v,...y}=t,b=I.useRef(null);I.useImperativeHandle(e,()=>({el:b.current}));const S=r,E={...y},x=wt({ios:d,material:f}),k=Ie({ios:d,material:f}),g=He();aa(b,x==="material"&&m);const C=bP(a,g),N=k(yP(t,C),n);return j.createElement(S,S1({className:s?N.base.withText:N.base.iconOnly,href:i,ref:b,role:"button",tabIndex:"0"},E),s&&u==="before"&&j.createElement("span",{className:N.text},s),c&&j.createElement("span",{className:N.icon},c),s&&u==="after"&&j.createElement("span",{className:N.text},s),v)});wP.displayName="Fab";const kP=(t,e)=>({base:`${Vt("relative",e)} inline-block not-italic`,badge:"absolute -end-1.5 -top-0.5"});function C1(){return C1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="i",className:n,ios:a,material:i,badge:s,badgeColors:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=Ie(),b=wt(),S=y(kP(t,n),n);return j.createElement(m,C1({ref:f,className:S.base},v),b==="ios"?a:i,typeof s<"u"&&s!==null&&j.createElement(k5,{small:!0,className:S.badge,colors:u},s),c)});xn.displayName="Icon";const xP=(t,e,r)=>{let{textColor:n,needsTouchRipple:a}=e;const{iconOnly:i,tabbar:s}=t;return{base:{common:P(!s&&n,"inline-flex space-x-1 rtl:!space-x-reverse justify-center items-center cursor-pointer select-none",a&&`touch-ripple-primary ${Vt("relative",r)} z-10`),notTabbar:{ios:"active:opacity-30 duration-300 active:duration-0",material:a?"":"active:opacity-55"}},tabbar:{common:P(Vt("relative",r),"w-full h-full duration-300"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:P("h-full max-h-12",i&&"k-touch-ripple-inset"),material:"px-3 text-sm font-medium"},navbar:{common:P("h-full max-h-12",i&&"k-touch-ripple-inset"),material:"px-3"}}},SP=function(t,e){return t===void 0&&(t={}),{textIos:"text-primary",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),navbarTextIos:"text-primary",navbarTextMaterial:"",...t}};function _1(){return _1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,colors:a,navbar:i,toolbar:s,iconOnly:u,linkProps:c={},tabbar:d,tabbarActive:f,touchRipple:m=void 0,ios:v,material:y,onClick:b,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const k=r,g={...c,...E},C=wt({ios:v,material:y}),N=Ie({ios:v,material:y}),O=He(),D=C==="material"&&(m||(s||d||i)&&typeof m>"u");aa(x,D);const R=SP(a,O),A=t.navbar?C==="material"?R.navbarTextMaterial:R.navbarTextIos:C==="material"?R.textMaterial:R.textIos,F=d&&!f?R.tabbarInactive:A,U=f?"active":"inactive",H=N(xP(t,{textColor:F,needsTouchRipple:D},n)),q=P(H.base[d?"default":"notTabbar"],s&&H.toolbar,i&&H.navbar,d&&H.tabbar[U],n);return j.createElement(k,_1({ref:x,className:q},g,{role:"link",tabIndex:"0",onClick:b}),S)});E1.displayName="Link";const CP=(t,e,r)=>{const{nested:n,margin:a,inset:i,strong:s,outline:u}=t;return{base:{common:P(!n&&a,!i&&!n&&u&&"hairline-t hairline-b",i&&u&&"border",Vt("relative",r),"z-10"),ios:P(s&&e.strongBgIos,i&&u&&e.outlineIos),material:P(s&&e.strongBgMaterial,i&&u&&e.outlineMaterial)},ul:{common:P(i&&"no-safe-areas","last-child-hairline-b-none")},inset:{common:"ml-4-safe mr-4-safe overflow-hidden",ios:"rounded-lg",material:"rounded-2xl"},menuList:{common:"py-1"}}},_P=function(t,e){return t===void 0&&(t={}),{outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-15")),outlineMaterial:P("border-md-light-outline",e("border-md-dark-outline")),strongBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),strongBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),...t}},_5=j.createContext(!1);function P1(){return P1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,margin:i="my-8",nested:s,menuList:u,dividers:c,dividersIos:d=!0,dividersMaterial:f=!1,inset:m,insetIos:v,insetMaterial:y,strong:b,strongIos:S,strongMaterial:E,outline:x,outlineIos:k,outlineMaterial:g,ios:C,material:N,children:O,...D}=t,R=I.useRef(null);I.useImperativeHandle(e,()=>({el:R.current}));const A=r,F={...D},U=wt(),H=Ie({ios:C,material:N}),q=He(),ne=typeof c>"u"?U==="ios"?d:f:c,ie=typeof b>"u"?U==="ios"?S:E:b,se=typeof x>"u"?U==="ios"?k:g:x,K=typeof m>"u"?U==="ios"?v:y:m,z=_P(a,q),ee=H(CP({...t,margin:i,inset:K,strong:ie,outline:se},z,n)),Q=P(ee.base,K&&ee.inset,u&&ee.menuList,n);return j.createElement(_5.Provider,{value:ne},j.createElement(A,P1({ref:R,className:Q},F),j.createElement("ul",{className:ee.ul},O)))});M1.displayName="List";function I1(){return I1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,a=I.useRef(null);I.useImperativeHandle(e,()=>({el:a.current}));const i={...n};return j.createElement("li",{ref:a},j.createElement(M1,I1({nested:!0},i),r))});EP.displayName="ListGroup";const PP=(t,e,r)=>{const{dividers:n}=t;return{base:"",button:{common:P(Vt("relative",r),n&&"hairline-b active:hairline-transparent",`flex items-center justify-center px-4 space-x-1 w-full duration-300 active:duration-0 focus:outline-none ${e.touchRipple} overflow-hidden select-none`),ios:P("h-11",e.textIos,e.activeBgIos,e.activeBgIos),material:P("h-12",e.textMaterial,e.activeBgMaterial)}}},MP=function(t,e){return t===void 0&&(t={}),{textIos:"text-primary",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),activeBgIos:"active:bg-primary active:bg-opacity-15",activeBgMaterial:"",touchRipple:"touch-ripple-primary",...t}},E5=()=>I.useContext(_5);function Vh(){return Vh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",className:n,colors:a,href:i,target:s,type:u,value:c,linkComponent:d="a",linkProps:f={},ios:m,material:v,touchRipple:y=!0,children:b,...S}=t,E=I.useRef(null),x=I.useRef(null),k=E5();I.useImperativeHandle(e,()=>({el:E.current}));const g=r,C={...S},N=wt({ios:m,material:v}),O=Ie({ios:m,material:v});aa(x,N==="material"&&y);const D=He(),R=MP(a,D),A=O(PP({...t,dividers:k},R,n),n),F=!!i||i==="",U={href:!F||i===!0||i===!1?void 0:i||"",target:s,type:u,value:c,...f},H=F?d:"button";return j.createElement(g,Vh({ref:E,className:A.base},C),j.createElement(H,Vh({ref:x,className:A.button},U),b))});IP.displayName="ListButton";const NP=(t,e,r)=>{let{className:n,isMediaItem:a,theme:i,textColor:s,needsTouchRipple:u,isMenuListItemActive:c,autoStrongTitle:d}=r;const{menuListItem:f,dividers:m,mediaClassName:v="",mediaClass:y="",innerClassName:b="",innerClass:S="",contentClassName:E="",contentClass:x="",titleWrapClassName:k="",titleWrapClass:g="",titleFontSizeIos:C,titleFontSizeMaterial:N,strongTitle:O,contacts:D}=t;return{base:{common:f?`${s} py-1`:"",material:D&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:P(`flex items-center ${E||x}`),ios:P(!f&&P(e.primaryTextIos,"ps-4-safe"),f&&"rounded-lg ml-2-safe mr-2-safe ps-2"),material:P(!f&&P(e.primaryTextMaterial,a?"ml-2-safe mr-2-safe rounded-2xl ps-2":"ps-4-safe",D&&"ml-10"),f&&"rounded-full min-h-[3.5rem] ml-4-safe mr-4-safe ps-4"),link:P("duration-300 active:duration-0 cursor-pointer select-none",m&&i==="ios"&&"active:hairline-transparent",u&&P("relative overflow-hidden z-10",e.touchRipple),P(c?i==="ios"?e.menuListItemActiveBgIos:e.menuListItemActiveBgMaterial:f?i==="ios"?e.menuListItemBgIos:e.menuListItemBgMaterial:i==="ios"?e.activeBgIos:e.activeBgMaterial))},media:{common:`shrink-0 flex ${v||y}`,ios:"py-2 me-4",material:P("py-3",f?"me-3":"me-4")},inner:{common:P("w-full relative",!f&&m&&"hairline-b",b||S),ios:"py-2.5 pe-4-safe",material:P("py-3",a&&!f?"pe-2":"pe-4-safe")},titleWrap:{common:P(`flex justify-between items-center ${k||g}`),ios:P(!f&&C),material:P(!f&&N)},title:{common:"shrink",menuListItem:P("text-sm",O===!0||d?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:P("shrink-0 ms-auto ps-1 flex items-center space-x-1"),ios:e.secondaryTextIos,material:P(e.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:P("text-sm line-clamp-2"),ios:e.secondaryTextIos,material:e.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:e.secondaryTextIos,material:e.secondaryTextMaterial},footer:{common:P("text-xs mt-0.5"),ios:e.secondaryTextIos,material:e.secondaryTextMaterial},groupTitle:{common:P("pl-4-safe pr-4-safe py-1 flex items-center z-20",Vt("relative",n)),ios:`h-8${m?" hairline-t":""} -mt-px ${C} ${e.secondaryTextIos} ${e.groupTitleBgIos} ${D&&P("font-semibold top-11-safe sticky",e.groupTitleContactsTextIos,e.groupTitleContactsBgIos)}`,material:`h-12 ${N} ${e.secondaryTextMaterial} ${e.groupTitleBgMaterial} ${D&&P("pointer-events-none overflow-visible h-12 box-border text-xl font-medium flex max-w-full items-center px-4 top-16-safe sticky",e.groupTitleContactsTextMaterial,e.groupTitleContactsBgMaterial)}`}}},OP=function(t,e){return t===void 0&&(t={}),{primaryTextIos:P("text-black",e("dark:text-white")),primaryTextMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),secondaryTextIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),secondaryTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),activeBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),activeBgMaterial:"",groupTitleBgIos:P("bg-ios-light-surface-variant",e("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),menuListItemTextIos:P("text-black",e("dark:text-white")),menuListItemTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),menuListItemBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:P("text-primary",e("dark:text-white")),menuListItemActiveTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:P("bg-primary bg-opacity-15",e("dark:bg-primary")),menuListItemActiveBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),touchRipple:P("touch-ripple-black",e("dark:touch-ripple-white")),groupTitleContactsTextIos:P("text-opacity-90",e("dark:text-opacity-90")),groupTitleContactsTextMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),groupTitleContactsBgIos:P(e("dark:bg-[#323234]")),groupTitleContactsBgMaterial:P("bg-transparent",e("dark:bg-transparent")),...t}};function Gh(){return Gh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",colors:n,className:a,mediaClassName:i="",innerClassName:s="",innerChildren:u,contentClassName:c="",contentChildren:d,titleWrapClassName:f="",titleFontSizeIos:m="text-[17px]",titleFontSizeMaterial:v="text-[16px]",title:y,subtitle:b,text:S,after:E,media:x,header:k,footer:g,menuListItem:C,menuListItemActive:N,groupTitle:O,strongTitle:D="auto",label:R,chevron:A=void 0,chevronIos:F=!0,chevronMaterial:U=!0,chevronIcon:H,href:q,target:ne,link:ie,linkComponent:se="a",linkProps:K={},dividers:z,contacts:ee,ios:Q,material:oe,touchRipple:he=!0,children:Ce,...ge}=t,Me=I.useRef(null),Ne=I.useRef(null);I.useImperativeHandle(e,()=>({el:Ne.current}));const $=r,re={...ge},le=typeof z>"u"?E5():z,Se=wt({ios:Q,material:oe}),Oe=Ie({ios:Q,material:oe}),Fe=He(),Ye=typeof A>"u"?Se==="ios"?F:U:A,it=OP(n,Fe),De=C&&N,Wt=it[`${De?"menuListItemActiveText":C?"menuListItemText":"text"}${Se==="ios"?"Ios":"Material"}`],dt=!!q||q===""||C||ie,ht=!!R,ze=Se==="material"&&(ht||dt)&&he;aa(Me,ze);const En=q===!0||q===!1||typeof q>"u"?void 0:q||"",Jt=dt?se:ht?"label":"div",Tr=dt?{href:En,target:ne,...K}:{},mr=y&&(b||S),qt=D==="auto"&&mr,_t=Oe(NP({...t,titleFontSizeIos:m,titleFontSizeMaterial:v,dividers:le,strongTitle:D,mediaClassName:i,innerClassName:s,contentClassName:c,titleWrapClassName:f},it,{isMediaItem:mr,theme:Se,textColor:Wt,needsTouchRipple:ze,isMenuListItemActive:De,darkClasses:Fe,autoStrongTitle:qt,className:a}),a),Ia=dt||ht?_t.itemContent.link:_t.itemContent.default,Na=C?_t.title.menuListItem:D===!0||qt?_t.title.strong:_t.title.default;return O?j.createElement($,{className:P(_t.groupTitle,a)},y,Ce):j.createElement($,Gh({ref:Ne,className:_t.base},re),j.createElement(Jt,Gh({ref:Me,className:Ia},Tr),x&&j.createElement("div",{className:_t.media},x),j.createElement("div",{className:_t.inner},k&&j.createElement("div",{className:_t.header},k),(y||E)&&j.createElement("div",{className:_t.titleWrap},y&&j.createElement("div",{className:Na},y),E&&j.createElement("div",{className:_t.after},E),dt&&Ye&&!C&&(H||j.createElement(x5,{className:_t.chevron}))),b&&j.createElement("div",{className:_t.subtitle},b),S&&j.createElement("div",{className:_t.text},S),g&&j.createElement("div",{className:_t.footer},g),u),d),Ce)});N1.displayName="ListItem";function O1(){return O1=Object.assign?Object.assign.bind():function(t){for(var e=1;ej.createElement("svg",O1({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},t),j.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),TP=(t,e,r)=>{let{isFloatingTransformed:n,isFocused:a,darkClasses:i,getLabelColor:s,hasLabel:u}=r;const{error:c,type:d,outline:f,inputClassName:m="",inputClass:v=""}=t;return{base:{common:"",ios:P(f&&"my-4"),material:P("py-2")},itemContent:{common:"relative",ios:P(f&&"ml-4 mr-4 rounded-lg",!f&&e.bgIos),material:P("min-h-[56px] ml-4 mr-4",f?P("rounded"):P(e.bgMaterial,"rounded-t relative "))},inner:{common:"",material:P(f?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:P("duration-200 text-xs",s(),f&&"flex"),ios:P(f&&"-mt-4"),material:P(f&&"-mt-4"),stacked:"",floating:{common:P("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",n&&"scale-133"),ios:n?f?"translate-y-6":"translate-y-4":"",material:n?f?"translate-y-8":"translate-y-3":""}},labelText:{common:P(f&&"relative p-1 block -m-1"),ios:P(f&&P("-top-1",e.outlineLabelBgIos)),material:P(f&&P("-top-2",e.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:P((!u||f)&&"-mt-2.5","-mb-2.5"),stacked:"",floating:""},media:{material:""},titleWrap:{material:`duration-200 ${s()}`},input:{common:`block text-base appearance-none w-full focus:outline-none bg-transparent ${m||v}`,ios:"h-10",material:"h-6",notFloating:{common:P("placeholder-black placeholder-opacity-30",i("dark:placeholder-white dark:placeholder-opacity-30")),material:P(d==="textarea"&&"py-1"),ios:P(d==="textarea"&&"py-2")},floating:n?"placeholder-transparent":P("placeholder-black placeholder-opacity-30",i("dark:placeholder-white dark:placeholder-opacity-30"))},errorInfo:{common:"text-xs relative z-10",ios:"mt-1",material:""},error:e.errorText,info:"opacity-50",clearButton:{common:"absolute end-0 top-1/2 transform -translate-y-1/2 cursor-pointer",ios:P("w-3.5 h-3.5 opacity-45 active:opacity-30",e.labelTextIos),material:P("w-6 h-6 active:opacity-55",e.labelTextMaterial)},dropdown:"absolute end-0 top-1/2 transform -translate-y-1/2 pointer-events-none opacity-50",border:{common:"pointer-events-none absolute start-0 bottom-0 duration-200 w-full",ios:f&&P(c?e.errorBorder:a?e.outlineBorderFocusIos:e.outlineBorderIos,"h-full border rounded-lg -z-10"),material:P(c?e.errorBorder:a?e.outlineBorderFocusMaterial:e.outlineBorderMaterial,f&&P("h-full border rounded -z-10",a&&"border-2"),!f&&P("border-b h-px origin-bottom",a&&"scale-y-[2]"))}}},LP=function(t,e){return t===void 0&&(t={}),{bgIos:"",bgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),outlineBorderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:P("border-md-light-on-surface",e("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),outlineLabelBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...t}};function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",className:n,colors:a,label:i,floatingLabel:s,outline:u,outlineIos:c,outlineMaterial:d,media:f,input:m,info:v,error:y,clearButton:b,dropdown:S,inputId:E,inputStyle:x,inputClassName:k="",name:g,value:C,defaultValue:N,type:O="text",inputMode:D,readOnly:R,required:A,disabled:F,placeholder:U,size:H,accept:q,autoComplete:ne,autoCorrect:ie,autoCapitalize:se,spellCheck:K,autoFocus:z,autoSave:ee,max:Q,min:oe,step:he,maxLength:Ce,minLength:ge,multiple:Me,pattern:Ne,tabIndex:$,onInput:re,onChange:le,onFocus:Se,onBlur:Oe,onClear:Fe,ios:Ye,material:it,children:De,...Wt}=t,dt=I.useRef(null),ht=I.useRef(null);I.useImperativeHandle(e,()=>({el:ht.current,inputEl:dt.current}));const[ze,En]=I.useState(!1),Jt=wt({ios:Ye,material:it}),Tr=Ie({ios:Ye,material:it}),mr=He(),qt=LP(a,mr),_t=i&&s?"floating":"stacked",Ia=_t==="floating"?"floating":"notFloating",Na=()=>{if(dt.current)return dt.current.value},so=i&&s&&!(()=>{const tn=Na();return typeof C>"u"?tn||tn===0:C||C===0})()&&!ze,Pn=()=>y?qt.errorText:Jt==="material"?ze?qt.labelTextFocusMaterial:qt.labelTextMaterial:Jt==="ios"?ze?qt.labelTextFocusIos:qt.labelTextIos:"",Oa=tn=>{En(!0),Se&&Se(tn)},es=tn=>{En(!1),Oe&&Oe(tn)},ci=typeof u>"u"?Jt==="ios"?c:d:u,Ht=Tr(TP({...t,outline:ci},qt,{isFloatingTransformed:so,isFocused:ze,darkClasses:mr,getLabelColor:Pn,inputClassName:k,hasLabel:!!i})),Ra={...Wt},ts=()=>{if(m)return m;const tn=O==="select"||O==="textarea"?O:"input",Cl=tn==="input";return j.createElement(tn,{id:E,ref:dt,className:Ht.input[Ia],style:x,name:g,type:Cl?O:void 0,placeholder:U,inputMode:D,size:H,accept:q,autoComplete:ne,autoCorrect:ie,autoCapitalize:se,spellCheck:K,autoFocus:z,autoSave:ee,disabled:F,max:Q,maxLength:Ce,min:oe,minLength:ge,step:he,multiple:Me,readOnly:R,required:A,pattern:Ne,tabIndex:$,value:C,defaultValue:N,onInput:re,onChange:le,onFocus:Oa,onBlur:es},O==="select"?De:null)},ca=j.createElement(j.Fragment,null,y&&y!==!0&&j.createElement("div",{className:P(Ht.errorInfo,Ht.error)},y),v&&!y&&j.createElement("div",{className:P(Ht.errorInfo,Ht.info)},v)),Sl=j.createElement(j.Fragment,null,i&&j.createElement("div",{className:Ht.label[_t]},j.createElement("div",{className:Ht.labelText},i)),j.createElement("div",{className:Ht.inputWrap[_t]},ts(),b&&j.createElement(Gu,{theme:Jt,onClick:Fe,className:Ht.clearButton}),S&&j.createElement(RP,{className:Ht.dropdown})),ca);return j.createElement(N1,R1({ref:ht,component:r,media:f,className:Ht.base,title:null,mediaClassName:Ht.media,innerClassName:Ht.inner[_t],contentClassName:Ht.itemContent,titleWrapClassName:Ht.titleWrap,innerChildren:Sl,contentChildren:(ci||Jt==="material")&&j.createElement("span",{className:Ht.border}),dividers:Jt==="material"||ci?!1:void 0},Ra),O!=="select"?De:null)});FP.displayName="ListInput";function T1(){return T1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,a=I.useRef(null);I.useImperativeHandle(e,()=>({el:a.current}));const i={...n};return j.createElement(M1,T1({ref:a,menuList:!0},i),r)});jP.displayName="MenuList";function L1(){return L1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{active:r,href:n,children:a,...i}=t,s=I.useRef(null);I.useImperativeHandle(e,()=>({el:s.current}));const u={...i};return j.createElement(N1,L1({ref:s,menuListItem:!0,menuListItemActive:r,href:n||!1},u),a)});AP.displayName="MenuListItem";const DP=(t,e)=>{const{type:r}=t;return{message:{common:"max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2"},messageSent:{common:P("self-end",e.messageSent)},messageReceived:{common:e.messageReceived},messageName:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageHeader:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageFooter:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageAvatar:{common:P("rounded-full relative bg-cover self-end shrink-0 me-1.5 w-8 h-8")},messageContent:{common:"flex flex-col"},messageBubble:{...r==="sent"&&{ios:P("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",e.bubbleSentIos),material:P("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",e.bubbleSentMd)},...r==="received"&&{ios:P("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",e.bubbleReceivedIos),material:P("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",e.bubbleReceivedMd)}},messageTextHeader:{common:"w-full text-left leading-tight text-sm opacity-80"},messageTextFooter:{common:"w-full text-left leading-tight text-sm opacity-80"},messageText:{common:"w-full text-left leading-tight"}}},zP=function(t,e){return t===void 0&&(t={}),{messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:P("text-black text-opacity-45",e("dark:text-white dark:text-opacity-45")),messageNameMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),bubbleSentIos:P("bg-primary"),bubbleSentMd:P("bg-md-light-primary",e("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:P("bg-[#e5e5ea]",e("dark:bg-[#252525]")),bubbleReceivedMd:P(e("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...t}};function F1(){return F1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,text:s,name:u,type:c="sent",header:d,footer:f,textHeader:m,textFooter:v,avatar:y,ios:b,material:S,children:E,...x}=t,k=I.useRef(null);I.useImperativeHandle(e,()=>({el:k.current}));const g=Ie({ios:b,material:S}),C=He(),N=zP(a,C),O=g(DP({...t},N)),D=r,R={...x},A=P(n,O.message,{[O.messageSent]:c==="sent",[O.messageReceived]:c==="received"});return j.createElement(D,F1({id:i,ref:k,className:A},R),y&&j.createElement("div",{className:O.messageAvatar},y),j.createElement("div",{className:O.messageContent},u&&j.createElement("div",{className:O.messageName},u),d&&j.createElement("div",{className:O.messageHeader},d),j.createElement("div",{className:O.messageBubble},m&&j.createElement("div",{className:O.messageTextHeader},m),s&&j.createElement("div",{className:O.messageText},s),v&&j.createElement("div",{className:O.messageTextFooter},v)),f&&j.createElement("div",{className:O.messageFooter},f)))});BP.displayName="Message";const UP=(t,e,r)=>{let{isFocused:n}=r;const{rightClassName:a="",rightClass:i="",leftClassName:s="",leftClass:u=""}=t;return{base:{common:"fixed bottom-0 start-0 w-full"},toolbar:{material:e.bgMessage},left:{common:P("mt-1 -ms-2",s||u),ios:P("px-2",e.toolbarIconIos),material:P("",e.toolbarIconMd)},right:{common:P("mt-1 -me-2",a||i),ios:P("px-2",e.toolbarIconIos)},messagebarArea:{common:"w-full"},messagebarInput:{common:P("block w-full focus:outline-none resize-none",n&&"outline-offset-0"),ios:P("border h-8 rounded-3xl px-4 leading-4 py-1.5",e.inputBgIos,e.borderIos,e.placeholderIos),material:P("rounded-3xl h-12 px-4 py-4 leading-4 ",e.inputBgMd,e.placeholderMd)}}},$P=function(t,e){return t===void 0&&(t={}),{toolbarIconIos:P("fill-primary",e("dark:fill-md-dark-primary")),toolbarIconMd:P("fill-black"),inputBgIos:P("bg-transparent"),borderIos:P("border-[#c8c8cd]",e("dark:border-white dark:border-opacity-30")),inputBgMd:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-variant")),placeholderIos:P(e("dark:placeholder-white dark:placeholder-opacity-40")),placeholderMd:P("placeholder-md-light-on-surface-variant",e("dark:placeholder-md-dark-on-surface-variant")),bgIos:P("bg-white",e("dark:bg-black")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}},VP=(t,e,r)=>{const{bgClassName:n="",bgClass:a="",outline:i,translucent:s,innerClassName:u="",innerClass:c="",tabbar:d,tabbarIcons:f,top:m}=t;return{base:{common:P("w-full z-20",Vt("relative",r),!m&&"pb-safe")},bg:{common:P("absolute w-full h-full left-0 top-0",i&&(m?"hairline-b":"hairline-t"),n||a),ios:P(e.bgIos,s&&"translucent"),material:P(`${e.bgMaterial}`)},inner:{common:P("flex relative justify-between items-center w-full overflow-hidden",u||c),ios:P("pl-2-safe pr-2-safe",f?"h-12.5":"h-11"),material:P(d?"":"pl-2-safe pr-2-safe",f?"h-20":"h-14")},highlight:{common:P(m?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:e.tabbarHighlightBgIos,material:e.tabbarHighlightBgMaterial}}},GP=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface-2",e("dark:bg-ios-dark-surface-2")),bgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"bg-primary",tabbarHighlightBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function j1(){return j1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,translucent:i=!0,bgClassName:s="",innerClassName:u="",outline:c,tabbar:d,tabbarIcons:f,tabbarLabels:m,top:v,ios:y,material:b,children:S,...E}=t,x=I.useRef(null),k=I.useRef(null);I.useImperativeHandle(e,()=>({el:k.current}));const g=r,[C,N]=I.useState({transform:"",width:""}),O=wt({ios:y,material:b}),D=Ie({ios:y,material:b}),R=He(),A={...E},F=GP(a,R),U=D(VP({...t,outline:typeof c>"u"?O==="ios":c,translucent:i,bgClassName:s,innerClassName:u},F,n),n),H=O==="material"&&d&&!f;return I.useEffect(()=>{if(H&&x.current){const q=x.current.previousElementSibling,ne=1/q.children.length*100,ie=[...q.children].indexOf(q.querySelector(".k-tabbar-link-active"));N({...C,width:`${ne}%`,transform:`translateX(${ie*100}%)`})}},[S]),j.createElement(g,j1({ref:k,className:U.base},A),j.createElement("div",{className:U.bg}),j.createElement("div",{className:U.inner},S),H&&j.createElement("span",{className:U.highlight,style:C,ref:x}))});A1.displayName="Toolbar";function D1(){return D1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,style:s,name:u,placeholder:c="Message",value:d,outline:f=!1,leftClassName:m="",rightClassName:v="",textareaId:y,disabled:b,size:S,left:E,right:x,ios:k,material:g,onInput:C,onChange:N,onFocus:O,children:D,...R}=t,A=I.useRef(null),F=I.useRef(null);I.useImperativeHandle(e,()=>({el:A.current,areaElRef:F.current}));const[U,H]=I.useState(!1),q=Ie({ios:k,material:g}),ne=He(),ie=$P(a,ne),se=Q=>{H(!0),O&&O(Q)},K=q(UP({...t},ie,{isFocused:U})),z=r,ee={...R};return j.createElement(z,D1({ref:A,id:i,style:s,className:K.base},ee),j.createElement(A1,{colors:ie,outline:f},E&&j.createElement("div",{className:K.left},E),j.createElement("div",{className:K.messagebarArea},j.createElement("textarea",{id:y,ref:F,type:"textarea",className:K.messagebarInput,placeholder:c,name:u,size:S,disabled:b,onInput:C,onChange:N,onFocus:se,value:d})),x&&j.createElement("div",{className:K.right},x)))});WP.displayName="Messagebar";const qP=()=>({base:{common:P("flex flex-col relative z-1 px-2"),ios:"mb-12",material:"mb-16"}});function z1(){return z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,ios:s,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=Ie({ios:s,material:u})(qP({...t})),v=r,y={...d};return j.createElement(v,z1({id:i,className:m.base,ref:f},y),c)});HP.displayName="Messages";const KP=(t,e)=>({base:{common:P("text-center text-xs leading-none"),ios:P("w-full mt-2.5",e.titleIos),material:P("mt-4",e.titleMd)}}),YP=function(t,e){return t===void 0&&(t={}),{titleIos:P("text-black text-opacity-45",e("dark:text-white dark:text-opacity-45")),titleMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function B1(){return B1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,id:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=Ie({ios:i,material:s}),v=He(),y=YP(a,v),b=m(KP({...t},y)),S=r,E={...d};return j.createElement(S,B1({id:u,className:b.base,ref:f},E),c)});QP.displayName="MessagesTitle";const ZP=(t,e,r)=>{const{outline:n,translucent:a,large:i,medium:s,transparent:u,left:c,right:d,fontSizeIos:f,fontSizeMaterial:m,titleFontSizeIos:v,titleFontSizeMaterial:y,titleLargeFontSizeIos:b,titleLargeFontSizeMaterial:S,titleMediumFontSizeIos:E,titleMediumFontSizeMaterial:x,bgClassName:k="",bgClass:g="",subnavbarClassName:C="",subnavbarClass:N="",innerClassName:O="",innerClass:D="",leftClassName:R="",leftClass:A="",titleClassName:F="",titleClass:U="",subtitleClassName:H="",subtitleClass:q="",rightClassName:ne="",rightClass:ie="",centerTitle:se}=t;return{base:{common:P("w-full z-20 top-0 pt-safe",(i||s)&&"pointer-events-none",Vt("sticky",r)),ios:P(f,e.textIos),material:P(m,e.textMaterial)},bg:{common:P("absolute w-full h-full left-0 top-0",n&&"hairline-b",k||g),ios:P(e.bgIos,a&&"translucent"),material:`${e.bgMaterial}`},subnavbar:{common:P("relative flex items-center",C||N,(i||s)&&"pointer-events-auto"),ios:"h-11 pl-2-safe pr-2-safe",material:"h-14 pl-4-safe pr-4-safe"},inner:{common:P("flex relative items-center w-full overflow-hidden",O||D,(i||s)&&"pointer-events-auto z-10"),ios:P("pl-2-safe pr-2-safe h-11",!c&&d?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe"},titleContainer:{common:P("flex items-center px-4 relative",(i||s)&&"pointer-events-auto"),ios:P(s&&P(E,"h-11 font-semibold"),i&&P(b,"h-13 font-bold")),material:P(s&&P(x,"h-12 pb-4"),i&&P(S,"h-[5.5rem]"))},left:{common:P("flex justify-center items-center h-full",R||A),ios:"me-2 transform transform-gpu",material:"mx-1"},title:{common:P("whitespace-nowrap leading-tight",F||U,(i||s||u)&&"opacity-0",se?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:P(`${v} font-semibold`,!se&&"first:mx-2"),material:P(`${y} font-normal`,!se&&"first:mx-4")},subtitle:{common:P("font-normal leading-none",H||q),ios:"text-2xs opacity-55",material:"text-sm opacity-85"},right:{common:P("flex justify-center items-center h-full",ne||ie),ios:P("transform transform-gpu",se?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},XP=(t,e)=>({bgIos:P("bg-ios-light-surface-2",e("dark:bg-ios-dark-surface-2")),bgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),textIos:P("text-black",e("dark:text-white")),textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t});function U1(){return U1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,bgClassName:a="",innerClassName:i="",leftClassName:s="",titleClassName:u="",subtitleClassName:c="",rightClassName:d="",subnavbarClassName:f="",centerTitle:m,colors:v,translucent:y=!0,outline:b,medium:S,large:E,transparent:x,fontSizeIos:k="text-[17px]",fontSizeMaterial:g="text-[16px]",titleFontSizeIos:C="text-[17px]",titleFontSizeMaterial:N="text-[22px]",titleMediumFontSizeIos:O="text-[24px]",titleMediumFontSizeMaterial:D="text-[24px]",titleLargeFontSizeIos:R="text-[34px]",titleLargeFontSizeMaterial:A="text-[28px]",scrollEl:F,left:U,title:H,subtitle:q,right:ne,subnavbar:ie,ios:se,material:K,children:z,...ee}=t,Q=I.useRef(null),oe=I.useRef(0),he=I.useRef(null),Ce=I.useRef(null),ge=I.useRef(null),Me=I.useRef(null),Ne=I.useRef(null),$=I.useRef(null);I.useImperativeHandle(e,()=>({el:Q.current}));const re=r,le=wt({ios:se,material:K}),Se=Ie({ios:se,material:K}),Oe=He(),Fe={...ee},Ye=XP(v,Oe),it=ze=>{const{scrollTop:En}=ze.target;if(!x&&!E&&!S){$.current&&(Me.current&&(Me.current.style.opacity=""),he.current&&(he.current.style.opacity=""));return}const Jt=oe.current,Tr=Math.max(Math.min(En/Jt,1),0);he.current.style.opacity=x?-.5+Tr*1.5:"",(S||E)&&(he.current.style.transform=`translateY(-${Tr*Jt}px)`),ge.current&&(ge.current.style.transform=`translateY(-${Tr*Jt}px)`,ge.current.style.opacity=1-Tr*2),Me.current&&(Me.current.style.opacity=-.5+Tr*1.5),(S||E)&&Ne.current&&(Ne.current.style.transform=`translateY(-${Tr*Jt}px)`)},De=()=>typeof F>"u"?Q.current&&Q.current.parentNode:F.current||F,Wt=()=>{if(!E&&!S&&!x){$.current&&(it({target:{scrollTop:0}}),$.current=!1);return}$.current=!0,ge.current?oe.current=ge.current.offsetHeight:oe.current=Ce.current.offsetHeight;const ze=De();ze?(ze.addEventListener("scroll",it),it({target:ze})):it({target:{scrollTop:0}})},dt=()=>{const ze=De();ze&&ze.removeEventListener("scroll",it)};I.useEffect(()=>(Wt(),dt));const ht=Se(ZP({...t,centerTitle:typeof m>"u"?le==="ios":m,translucent:y,outline:typeof b>"u"?le==="ios":b,fontSizeIos:k,fontSizeMaterial:g,titleFontSizeIos:C,titleFontSizeMaterial:N,titleMediumFontSizeIos:O,titleMediumFontSizeMaterial:D,titleLargeFontSizeIos:R,titleLargeFontSizeMaterial:A,bgClassName:a,innerClassName:i,leftClassName:s,titleClassName:u,subtitleClassName:c,rightClassName:d,subnavbarClassName:f},Ye,n),n);return j.createElement(re,U1({ref:Q,className:ht.base},Fe),j.createElement("div",{className:ht.bg,ref:he}),j.createElement("div",{className:ht.inner,ref:Ce},U&&j.createElement("div",{className:ht.left},U),(H||q)&&j.createElement("div",{className:ht.title,ref:Me},H,q&&j.createElement("div",{className:ht.subtitle},q)),ne&&j.createElement("div",{className:ht.right},ne),z),(E||S)&&j.createElement("div",{className:ht.titleContainer,ref:ge},H),ie&&j.createElement("div",{className:ht.subnavbar,ref:Ne},ie))});P5.displayName="Navbar";function Wh(){return Wh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?j.createElement("svg",Wh({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"20",viewBox:"0 0 12 20",fill:"currentcolor"},r),j.createElement("path",{d:"M0.18261596,9.4221638 C0.21783626,9.37068075 0.25835058,9.32165682 0.30416276,9.27584463 L9.1425872,0.4374202 C9.7256776,-0.14567018 10.6691555,-0.1475686 11.2590259,0.44230183 C11.8448123,1.02808827 11.8502479,1.97240019 11.2639075,2.55874056 L3.82594417,9.9967039 L11.2578297,17.4285894 C11.8409201,18.0116798 11.8428185,18.9551577 11.252948,19.5450281 C10.6671616,20.1308146 9.7228497,20.1362501 9.13650932,19.5499097 L0.2980849,10.7114853 C-0.0545897,10.3588107 -0.0959125,9.8144953 0.18261596,9.4221638 Z"})):j.createElement("svg",Wh({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor"},r),j.createElement("polygon",{points:"16 7 3.83 7 9.42 1.41 8 0 0 8 8 16 9.41 14.59 3.83 9 16 9"}))},JP=()=>({base:{common:"cursor-pointer",material:"min-w-12 k-touch-ripple-inset"},icon:"rtl:rotate-180"});function $1(){return $1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,text:a="Back",showText:i="auto",ios:s,material:u,onClick:c,children:d,...f}=t,m=I.useRef(null);I.useImperativeHandle(e,()=>({el:m.current}));const v={...f},y=wt({ios:s,material:u}),b=Ie({ios:s,material:u}),S=i==="auto"&&y==="ios"||i===!0,E=b(JP(),n);return j.createElement(E1,$1({ref:m,component:r,className:E.base,navbar:!0},v,{onClick:c}),j.createElement("span",{className:E.icon},j.createElement(M5,{theme:y})),S&&j.createElement("span",null,a),d)});eM.displayName="NavbarBackLink";const tM=(t,e,r)=>{const{opened:n,translucent:a}=t;return{base:{common:P(Vt("absolute",r),"z-50 transform transition-transform-opacity box-border duration-500",!n&&"-translate-y-full opacity-0 pointer-events-none transition duration-500","md:w-[568px] md:end-auto md:start-1/2 md:-ms-[256px]"),ios:P("rounded-xl px-2.5 py-2.5 start-2 end-2 top-2 shadow-lg",e.bgIos,a&&"translucent"),material:P("rounded-2xl py-5 px-4 start-4 end-4 top-4",e.bgMaterial)},content:{common:"",ios:"mt-2.5 ",material:P("mt-2")},header:{common:P("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:P("me-2"),material:"me-4"},contentTitle:{material:P("flex flex-row items-center")},title:{ios:P("tracking-wide text-[13px] uppercase",e.titleIos),material:P("font-medium")},titleRightText:{ios:P("me-1 ms-auto text-[13px]",e.titleRightIos),material:P("ms-1 text-xs before:w-0.75 before:h-0.75 before:rounded-full before:inline-block before:align-middle before:me-1",e.titleRightMd)},button:{ios:P("me-1 ms-auto cursor-pointer"),material:P("ms-auto cursor-pointer")},deleteIcon:{ios:P("w-5 h-5",e.deleteIconIos),material:P("w-6 h-6",e.deleteIconMd)},subtitle:{ios:P("text-[15px] font-semibold",e.subtitleIos),material:P("text-sm")},text:{ios:P("text-[15px]"),material:P("text-sm",e.textMaterial)}}},rM=(t,e)=>({bgIos:P("bg-white",e("dark:bg-[#1e1e1e]")),bgMaterial:P("bg-md-light-surface-5",e("dark:bg-md-dark-surface-5")),titleIos:P("text-black",e("dark:text-white")),titleRightIos:P("text-opacity-45 text-black",e("dark:text-white dark:text-opacity-45")),titleRightMd:P("text-md-light-on-surface-variant before:bg-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant before:dark:bg-md-dark-on-surface-variant")),subtitleIos:P("text-black ",e("dark:text-white")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant ")),deleteIconIos:P("fill-stone-400 active:fill-stone-200",e("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t});function qh(){return qh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,button:i,icon:s,title:u,titleRightText:c,subtitle:d,text:f,translucent:m=!0,opened:v,onClose:y,ios:b,material:S,children:E,...x}=t,k=I.useRef(null);I.useImperativeHandle(e,()=>({el:k.current}));const g=r,C={...x},N=wt({ios:b,material:S}),O=Ie({ios:b,material:S}),D=He(),R=rM(a,D),A=O(tM({...t,translucent:m},R,n),n);return N==="ios"?j.createElement(g,qh({ref:k,className:A.base},C),j.createElement("div",{className:A.header},s&&j.createElement("div",{className:A.icon},s),u&&j.createElement("div",{className:A.title},u),c&&j.createElement("div",{className:A.titleRightText},c),i&&j.createElement("div",{className:A.button,role:"button",tabIndex:"0",onClick:y},j.createElement(Gu,{theme:N,className:A.deleteIcon}))),j.createElement("div",{className:A.content},d&&j.createElement("div",{className:A.subtitle},d),f&&j.createElement("div",{className:A.text},f),E)):j.createElement(g,qh({ref:k,className:A.base},C),j.createElement("div",{className:A.header},s&&j.createElement("div",{className:A.icon},s),j.createElement("div",{className:A.contentWrapper},j.createElement("div",{className:A.contentTitle},u&&j.createElement("div",{className:A.title},u),c&&j.createElement("div",{className:A.titleRightText},c)),j.createElement("div",{className:A.content},d&&j.createElement("div",{className:A.subtitle},d),f&&j.createElement("div",{className:A.text},f),E)),i&&j.createElement("div",{className:A.button,role:"button",tabIndex:"0",onClick:y},j.createElement(Gu,{theme:N,className:A.deleteIcon}))))});nM.displayName="Notification";const aM=(t,e,r)=>({base:{common:P("h-full w-full left-0 top-0 overflow-auto",Vt("absolute",r)),ios:e.bgIos,material:e.bgMaterial}}),iM=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface",e("dark:bg-ios-dark-surface")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}};function V1(){return V1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=r,m={...c},v=Ie({ios:i,material:s}),y=He(),b=iM(a,y),S=v(aM(t,b,n),n);return j.createElement(f,V1({ref:d,className:S.base},m),u)});G1.displayName="Page";const oM=(t,e,r)=>{const{size:n,floating:a}=t;return{base:{common:P("transition-transform transform duration-400 z-40 max-w-full overflow-hidden",a?"top-2-safe bottom-2-safe !h-auto":"top-0 max-h-full",e.bg,Vt("fixed",r),n),ios:"",material:"ease-material-in"},left:{common:P("no-safe-areas-right",a?"right-full -mr-2 rounded-2xl":"right-full"),material:P(!a&&"rounded-r-2xl"),opened:"translate-x-full",closed:"-translate-x-2"},right:{common:P("no-safe-areas-left",a?"left-full -ml-2 rounded-2xl":"left-full"),material:P(!a&&"rounded-l-2xl"),opened:"-translate-x-full",closed:"translate-x-2"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},sM=function(t,e){return t===void 0&&(t={}),{bg:P("bg-white",e("dark:bg-black")),...t}};function W1(){return W1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,size:i="w-72 h-screen",side:s="left",opened:u,backdrop:c=!0,floating:d=!1,onBackdropClick:f,ios:m,material:v,children:y,...b}=t,S=I.useRef(null);I.useImperativeHandle(e,()=>({el:S.current}));const E=u?"opened":"closed",x=r,k={...b},g=Ie({ios:m,material:v}),C=He(),N=sM(a,C),O=g(oM({...t,size:i,floating:d},N,n),n),D=P(O.base,O[s][E]);return j.createElement(j.Fragment,null,c&&j.createElement("div",{className:O.backdrop[E],onClick:f}),j.createElement(x,W1({ref:S,className:D},k),y))});lM.displayName="Panel";const uM=t=>{let{popoverEl:e,targetEl:r,angleEl:n,needsAngle:a,targetX:i,targetY:s,targetWidth:u=0,targetHeight:c=0,theme:d}=t;r.current?r=r.current:r.value?r=r.value:r.el?r=r.el:r.$el&&(r=r.$el),typeof r=="string"&&(r=document.querySelector(r));let f=document.body.offsetWidth,m=document.body.offsetHeight;f===0&&(f=window.innerWidth),m===0&&(m=window.innerHeight);const[v,y]=[e.offsetWidth,e.offsetHeight];let b=0,S,E,x="";a&&(b=n.offsetWidth/2);let k,g;const C=window.getComputedStyle(r);let N=parseInt(C.getPropertyValue("--k-safe-area-top"),10)||0,O=parseInt(C.getPropertyValue("--k-safe-area-left"),10)||0,D=parseInt(C.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(N)&&(N=0),Number.isNaN(O)&&(O=0),Number.isNaN(D)&&(D=0),r){u=r.offsetWidth,c=r.offsetHeight;const ie=r.getBoundingClientRect();k=ie.left,g=ie.top}else typeof i<"u"&&s!=="undefined"&&(k=i,g=s);let[R,A,F]=[0,0,0];const U=d==="ios"?13:23;let H="top";y+bf-5-D&&(R=f-5-D-v),H==="top"&&(x="bottom"),H==="bottom"&&(x="top"),F-=R,S=v/2-b+F,S=Math.max(Math.min(S,v-b*2-U),U)):H==="middle"&&(R=k-v-b,x="right",(R<5||R+v+D>f||Rf&&(R=f-v-5-D),R"u"?void 0:`${E}px`,angleLeft:typeof S>"u"?void 0:`${S}px`,anglePosition:x,popoverTop:`${A}px`,popoverLeft:`${R}px`,popoverPosition:`${q}-${ne}`}},cM=(t,e,r)=>{const{size:n,translucent:a,angleClassName:i,angleClass:s}=t;return{base:{common:P("transition-transform-opacity z-40 no-safe-areas",Vt("fixed",r),n),ios:"duration-300",material:"duration-400 ease-material-in",opened:"",closed:{common:"opacity-0 pointer-events-none",ios:"",material:"scale-x-90 scale-y-75"}},inner:{common:P("overflow-hidden relative"),ios:P("rounded-xl",a&&"translucent",e.bgIos),material:P("rounded-[1.75rem]",e.bgMaterial)},angleWrap:{common:P(i||s||"","pointer-events-none"),ios:P("absolute w-6.5 h-6.5 z-50 overflow-hidden",a&&"opacity-80"),material:P("absolute w-6.5 h-6.5 z-50 overflow-hidden"),bottom:"top-full",top:"bottom-full",left:"right-full",right:"left-full"},angleArrow:{common:P("absolute rounded w-full h-full transform rotate-45"),ios:e.bgIos,material:e.bgMaterial,bottom:"-top-4.75",top:"top-4.75",left:"left-4.75",right:"-left-4.75"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}}},dM=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface-3",e("dark:bg-ios-dark-surface-3")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),...t}};function q1(){return q1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,angle:a=!0,angleClassName:i="",colors:s,size:u="w-64",opened:c,backdrop:d=!0,onBackdropClick:f,target:m,targetX:v,targetY:y,targetWidth:b,targetHeight:S,translucent:E=!0,ios:x,material:k,children:g,style:C={},...N}=t,O=I.useRef(null),D=I.useRef(null),[R,A]=I.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"});I.useImperativeHandle(e,()=>({el:O.current}));const F=c?"opened":"closed",U=r,H={...N},q=wt({ios:x,material:k}),ne=Ie({ios:x,material:k}),ie=He(),se=dM(s,ie),K=ne(cM({...t,size:u,angleClassName:i,translucent:E},se,n),n),z=()=>{!m||!O.current||!c||A(uM({popoverEl:O.current,targetEl:m,angleEl:D.current,needsAngle:a,targetX:v,targetY:y,targetHeight:S,targetWidth:b,theme:q}))},ee=()=>{typeof window>"u"||window.addEventListener("resize",z)},Q=()=>{typeof window>"u"||window.removeEventListener("resize",z)};I.useEffect(()=>(ee(),()=>Q())),I.useEffect(()=>{z()},[c]);const oe=R.set?{...C||{},left:R.popoverLeft,top:R.popoverTop}:C,he=R.set?{left:R.angleLeft,top:R.angleTop}:void 0,Ce={"top-right":"origin-bottom-left","top-left":"origin-bottom-right","middle-left":"origin-right","middle-right":"origin-left","bottom-right":"origin-top-left","bottom-left":"origin-top-right"},ge=P(K.base[F],q==="material"&&Ce[R.popoverPosition]);return j.createElement(j.Fragment,null,d&&j.createElement("div",{className:K.backdrop[F],onClick:f}),j.createElement(U,q1({ref:O,className:ge,style:oe},H),a&&j.createElement("div",{ref:D,style:he,className:K.angleWrap[R.anglePosition]},j.createElement("div",{className:K.angleArrow[R.anglePosition]})),j.createElement("div",{className:K.inner},g)))});hM.displayName="Popover";const fM=(t,e,r)=>{const{size:n}=t;return{base:{common:P("left-1/2 top-1/2 transition-transform transform -translate-x-1/2 z-40 max-w-full max-h-full overflow-hidden md:no-safe-areas",e.bg,Vt("fixed",r),n),ios:"duration-400 md:rounded-lg",material:" md:rounded-[1.75rem]",opened:{common:"-translate-y-1/2",material:P("ease-material-in-popup duration-[600ms]")},closed:{common:"translate-y-full",material:"duration-400"}},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},pM=function(t,e){return t===void 0&&(t={}),{bg:P("bg-white",e("dark:bg-black")),...t}};function H1(){return H1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,size:i="w-screen h-screen md:w-160 md:h-160",opened:s,backdrop:u=!0,onBackdropClick:c,ios:d,material:f,children:m,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=s?"opened":"closed",S=r,E={...v},x=Ie({ios:d,material:f}),k=He(),g=pM(a,k),C=x(fM({...t,size:i},g,n),n);return j.createElement(j.Fragment,null,u&&j.createElement("div",{className:C.backdrop[b],onClick:c}),j.createElement(S,H1({ref:y,className:C.base[b]},E),m))});I5.displayName="Popup";function K1(){return K1=Object.assign?Object.assign.bind():function(t){for(var e=1;ej.createElement("svg",K1({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},t),j.createElement("path",{d:"M10,0 C10.5522847,0 11,0.44771525 11,1 L11,6 C11,6.55228475 10.5522847,7 10,7 C9.44771525,7 9,6.55228475 9,6 L9,1 C9,0.44771525 9.44771525,0 10,0 Z"}),j.createElement("path",{d:"M10,13 C10.5522847,13 11,13.4477153 11,14 L11,19 C11,19.5522847 10.5522847,20 10,20 C9.44771525,20 9,19.5522847 9,19 L9,14 C9,13.4477153 9.44771525,13 10,13 Z",opacity:".64"}),j.createElement("path",{d:"M13,10 C13,9.44771525 13.4477153,9 14,9 L19,9 C19.5522847,9 20,9.44771525 20,10 C20,10.5522847 19.5522847,11 19,11 L14,11 C13.4477153,11 13,10.5522847 13,10 Z",opacity:".82"}),j.createElement("path",{d:"M-3.8285687e-16,10 C-3.8285687e-16,9.44771525 0.44771525,9 1,9 L6,9 C6.55228475,9 7,9.44771525 7,10 C7,10.5522847 6.55228475,11 6,11 L1,11 C0.44771525,11 -3.8285687e-16,10.5522847 -3.8285687e-16,10 Z",opacity:".46"}),j.createElement("path",{d:"M2.92912627,2.92912627 C3.31965056,2.53860197 3.95281554,2.53860197 4.34333983,2.92912627 L7.87887373,6.46466017 C8.26939803,6.85518446 8.26939803,7.48834944 7.87887373,7.87887373 C7.48834944,8.26939803 6.85518446,8.26939803 6.46466017,7.87887373 L2.92912627,4.34333983 C2.53860197,3.95281554 2.53860197,3.31965056 2.92912627,2.92912627 Z",opacity:".37"}),j.createElement("path",{d:"M12.1211263,12.1211263 C12.5116506,11.730602 13.1448155,11.730602 13.5353398,12.1211263 L17.0708737,15.6566602 C17.461398,16.0471845 17.461398,16.6803494 17.0708737,17.0708737 C16.6803494,17.461398 16.0471845,17.461398 15.6566602,17.0708737 L12.1211263,13.5353398 C11.730602,13.1448155 11.730602,12.5116506 12.1211263,12.1211263 Z",opacity:".73"}),j.createElement("path",{d:"M12.1211263,7.87887373 C11.730602,7.48834944 11.730602,6.85518446 12.1211263,6.46466017 L15.6566602,2.92912627 C16.0471845,2.53860197 16.6803494,2.53860197 17.0708737,2.92912627 C17.461398,3.31965056 17.461398,3.95281554 17.0708737,4.34333983 L13.5353398,7.87887373 C13.1448155,8.26939803 12.5116506,8.26939803 12.1211263,7.87887373 Z",opacity:".91"}),j.createElement("path",{d:"M2.92912627,17.0708737 C2.53860197,16.6803494 2.53860197,16.0471845 2.92912627,15.6566602 L6.46466017,12.1211263 C6.85518446,11.730602 7.48834944,11.730602 7.87887373,12.1211263 C8.26939803,12.5116506 8.26939803,13.1448155 7.87887373,13.5353398 L4.34333983,17.0708737 C3.95281554,17.461398 3.31965056,17.461398 2.92912627,17.0708737 Z",opacity:".55"}));function Y1(){return Y1=Object.assign?Object.assign.bind():function(t){for(var e=1;ej.createElement("svg",Y1({viewBox:"0 0 36 36"},t,{fill:"none",stroke:"currentcolor"}),j.createElement("circle",{cx:"18",cy:"18",r:"16"})),vM=(t,e,r)=>{const{size:n}=t;return{base:{common:P(r==="ios"?"k-ios-preloader":"k-material-preloader",`inline-block ${n}`),ios:e.iconIos,material:`stroke-4 ${e.iconMaterial}`},inner:{common:"block w-full h-full"}}},yM=function(t,e){return t===void 0&&(t={}),{iconIos:"text-primary",iconMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function Q1(){return Q1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,size:i="w-8 h-8",ios:s,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=wt({ios:s,material:u}),b=Ie({ios:s,material:u}),S=He(),E=yM(a,S),x=y==="ios"?gM:mM,k=b(vM({...t,size:i},E,y),n);return j.createElement(m,Q1({ref:f,className:k.base},v),j.createElement("span",{className:k.inner},j.createElement(x,{className:"w-full h-full"})),c)});bM.displayName="Preloader";const wM=t=>({base:{common:"block h-1 bg-opacity-30 dark:bg-opacity-30 overflow-hidden rtl:rotate-180",ios:"bg-black rounded-full",material:t.bgMaterial},inner:{common:"block duration-200 w-full h-full",ios:t.bgIos,material:t.bgMaterial}}),kM=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-primary",bgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function Z1(){return Z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,ios:i,material:s,progress:u=0,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const m=r,v={...d},y=Ie({ios:i,material:s}),b=He(),S=kM(a,b),E=y(wM(S),n);return j.createElement(m,Z1({ref:f,className:E.base},v),j.createElement("span",{className:E.inner,style:{transform:`translateX(-${100-u/1*100}%)`}}),c)});xM.displayName="Progressbar";const SM=(t,e,r,n)=>({base:P("cursor-pointer inline-flex align-middle",Vt("relative",r),n("dark:touch-ripple-white")),iconWrap:{common:"flex items-center justify-center rounded-full",ios:"w-5.5 h-5.5 border",material:"w-5 h-5 border-2",notChecked:{ios:e.borderIos,material:e.borderMaterial},checked:{ios:e.borderCheckedIos,material:e.borderCheckedMaterial}},icon:{ios:"text-primary",material:`w-3 h-3 rounded-full ${e.bgCheckedMaterial}`,notChecked:"opacity-0",checked:"opacity-100"},indeterminateIcon:{common:"bg-white w-3/4",ios:"h-0.25",material:"h-0.5"},input:{common:"hidden"}}),CM=function(t,e){return t===void 0&&(t={}),{borderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),bgCheckedIos:"bg-primary",bgCheckedMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderCheckedIos:"border-primary",borderCheckedMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),...t}};function X1(){return X1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:s,name:u,value:c,disabled:d,readOnly:f,onChange:m,ios:v,material:y,touchRipple:b=!0,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const k=r,g={...E},C=wt({ios:v,material:y}),N=Ie({ios:v,material:y}),O=He();aa(x,C==="material"&&b);const D=CM(a,O),R=s||i&&!m?"checked":"notChecked",A=N(SM(t,D,n,O),n);return j.createElement(k,X1({ref:x,className:A.base},g),j.createElement("input",{type:"radio",name:u,value:c,disabled:d,readOnly:f,checked:s,defaultChecked:i,onChange:m,className:A.input}),j.createElement("i",{className:A.iconWrap[R]},C==="ios"?j.createElement(C5,{className:A.icon[R]}):j.createElement("span",{className:A.icon[R]})),S)});_M.displayName="Radio";const EM=(t,e,r)=>({base:{common:"block relative select-none w-full self-center touch-pan-y",ios:"h-7",material:"h-5"},trackBg:{common:P("absolute top-1/2 left-0 w-full transform -translate-y-1/2 bg-black bg-opacity-20",r("dark:bg-white dark:bg-opacity-20")),ios:"h-1 rounded-full",material:"h-0.5"},trackValue:{common:"absolute top-1/2 start-0 w-full transform -translate-y-1/2",ios:`h-1 rounded-full ${e.valueBgIos}`,material:`h-0.5 ${e.valueBgMaterial}`},input:{common:"appearance-none w-full bg-transparent cursor-pointer block focus:outline-none relative",ios:"h-7",material:"h-5"},inputThumb:{common:"range-thumb:relative range-thumb:appearance-none range-thumb:rounded-full range-thumb:border-none",ios:`range-thumb:w-7 range-thumb:h-7 range-thumb:-mt-3.5 ${e.thumbBgIos} range-thumb:shadow-ios-toggle`,material:`range-thumb:w-3 range-thumb:h-3 ${e.thumbBgMaterial} range-thumb:-mt-1.5 range-thumb:transform range-thumb:duration-200 active:range-thumb:scale-150`},inputTrack:{common:"range-track:appearance-none range-track:h-px"}}),PM=function(t,e){return t===void 0&&(t={}),{valueBgIos:"bg-primary",valueBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),thumbBgIos:"range-thumb:bg-white",thumbBgMaterial:P("range-thumb:bg-md-light-primary",e("dark:range-thumb:bg-md-dark-primary")),...t}};function J1(){return J1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,children:u,inputId:c,name:d,value:f=void 0,defaultValue:m,readOnly:v,disabled:y,step:b=1,min:S=0,max:E=100,onInput:x,onChange:k,onFocus:g,onBlur:C,...N}=t,O=I.useRef(null);I.useImperativeHandle(e,()=>({el:O.current}));const D=r,R={...N},A=Ie({ios:i,material:s}),F=He(),U=PM(a,F),H=A(EM(t,U,F),n),q=((f||0)-S)/(E-S)*100;return j.createElement(D,J1({ref:O,className:H.base},R),j.createElement("span",{className:H.trackBg}),j.createElement("span",{className:H.trackValue,style:{width:`${q}%`}}),j.createElement("input",{className:P(H.input,H.inputThumb,H.inputTrack),type:"range",id:c,name:d,min:S,max:E,step:b,value:f,defaultValue:m,readOnly:v,disabled:y,onInput:x,onChange:k,onFocus:g,onBlur:C}))});MM.displayName="Range";const IM=(t,e,r)=>{let{isEnabled:n,darkClasses:a}=r;return{base:{common:"relative flex overflow-hidden items-center",ios:"px-2 w-full",material:"px-0 py-2 -mx-2 w-[calc(100%+32px)]"},inner:{common:"w-full shrink-1 relative",ios:"transition-all duration-300"},searchIconWrap:{common:"absolute inset-y-0 flex items-center z-40",ios:"start-2",material:"start-4"},clearButton:{common:"absolute justify-center inset-y-0 flex items-center z-40 cursor-pointer end-0",ios:"w-8 h-8",material:"w-12 h-12"},input:{common:"block appearance-none w-full py-2 focus:outline-none z-30",ios:P("h-8 bg-black/10 pl-7 pr-7 rounded-lg text-base",a("dark:placeholder-white dark:placeholder-opacity-30 dark:bg-white/10"),e.placeholderIos,e.inputBgIos),material:P("h-12 ps-12 pe-4 rounded-full",e.placeholderMaterial,e.inputBgMaterial)},deleteIcon:{common:"",ios:"w-3.5 h-3.5 opacity-45",material:"w-6 h-6 active:opacity-20"},searchIcon:{common:"",ios:P("w-4 h-4 opacity-45"),material:P("w-5 h-5 z-30",n?"opacity-0 transform rotate-90 scale-50 transition-transform-opacity duration-400 ":"block transform transition-transform-opacity scale-100 rotate-0 duration-400")},cancelButton:{ios:P("ps-2 flex items-center h-8 cursor-pointer bg-transparent text-primary shrink-0 z-40 transition-all duration-300 active:opacity-30",n?"":"opacity-0"),material:P("absolute left-4 cursor-pointer",n?"z-40 transform scale-100 rotate-0 transition-transform-opacity duration-400":"opacity-0 transform -rotate-90 scale-50 transition-transform-opacity duration-400")}}},NM=function(t,e){return t===void 0&&(t={}),{inputBgIos:"",inputBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),placeholderIos:"",placeholderMaterial:P("placeholder-md-light-on-surface-variant",e("dark:placeholder-md-dark-on-surface-variant")),...t}};function Hh(){return Hh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?j.createElement("svg",Hh({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 56 56",fill:"currentcolor"},r),j.createElement("path",{d:"M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"})):j.createElement("svg",Hh({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"currentcolor"},r),j.createElement("path",{d:"M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"}))};function ev(){return ev=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,placeholder:i="Search",value:s,inputId:u,inputStyle:c,disableButton:d=!1,disableButtonText:f="Cancel",clearButton:m=!0,onInput:v,onChange:y,onFocus:b,onBlur:S,onClear:E,onDisable:x,ios:k,material:g,...C}=t,N=I.useRef(null),O=I.useRef(null),D=I.useRef(null),[R,A]=I.useState(0),F=I.useRef(null),U=I.useRef(!1);I.useImperativeHandle(e,()=>({el:O.current,searchEl:N.current}));const[H,q]=I.useState(!1),ne=wt({ios:k,material:g}),ie=Ie({ios:k,material:g}),se=He(),K=NM(a,se),z=le=>{v&&v(le)},ee=le=>{y&&y(le)},Q=le=>{q(!0),b&&b(le)},oe=le=>{S&&S(le)},he=()=>{s||(F.current=setTimeout(()=>{q(!1)}))},Ce=()=>{clearTimeout(F.current)},ge=le=>{le.preventDefault(),q(!1),N.current&&N.current.blur(),x&&x(),E&&E()};I.useEffect(()=>{D.current&&A(D.current.offsetWidth),requestAnimationFrame(()=>{requestAnimationFrame(()=>{U.current=!0})})},[]);const Me=ie(IM({...t},K,{isEnabled:H,darkClasses:se})),Ne=ne==="ios"?j.createElement("button",{type:"button",ref:D,style:{marginRight:H?0:`-${R}px`,transitionDuration:U.current?"":"0ms"},className:Me.cancelButton,onClick:ge,onPointerDown:le=>le.preventDefault()},f):j.createElement(M5,{theme:ne,onClick:ge,className:P(Me.cancelButton),onPointerDown:le=>le.preventDefault()}),$=r,re={...C};return j.createElement($,ev({ref:O,className:Me.base},re,{onBlurCapture:he,onFocusCapture:Ce}),j.createElement("div",{className:Me.inner},j.createElement("span",{className:Me.searchIconWrap},j.createElement(OM,{ios:k,material:g,className:Me.searchIcon})),j.createElement("input",{id:u,ref:N,className:P(Me.input),style:c,type:"text",name:"search",placeholder:i,value:s,onInput:z,onChange:ee,onFocus:Q,onBlur:oe}),s&&m&&j.createElement("button",{className:Me.clearButton,onClick:E,type:"button"},j.createElement(Gu,{theme:ne,className:Me.deleteIcon}))),d&&Ne)});RM.displayName="Searchbar";const TM=(t,e,r)=>{const{outline:n,rounded:a}=t;return{base:{common:"flex justify-center items-center overflow-hidden w-full",square:{ios:"rounded",material:"rounded-lg"},rounded:"rounded-full"},raised:n?"shadow":"shadow divide-x divide-black divide-opacity-10 rtl:divide-x-reverse",outline:{common:"",ios:`${e.borderIos} border-2`,material:`${e.borderMaterial} border`},outlineInner:{common:"-m-0.5 flex w-full justify-center items-center rtl:divide-x-reverse",ios:`divide-x-2 ${e.divideIos}`,material:`divide-x ${e.divideMaterial}`},strong:{common:P("p-0.5 space-x-1 relative"),ios:e.strongBgIos,material:e.strongBgMaterial},strongHighlight:{common:P("absolute start-0.5 top-0.5 bottom-0.5 !ms-0 pointer-events-none duration-200",a&&"rounded-full","bg-white shadow",r("dark:bg-opacity-15 dark:touch-ripple-white")),ios:P(!a&&"rounded"),material:P(!a&&"rounded-md")}}},LM=function(t,e){return t===void 0&&(t={}),{strongBgIos:P("bg-black bg-opacity-5",e("dark:bg-white dark:bg-opacity-10")),strongBgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),borderIos:"border-primary",borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),divideIos:"divide-primary",divideMaterial:P("divide-md-light-outline",e("dark:divide-md-dark-outline")),...t}};function tv(){return tv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:s,raised:u,outline:c,strong:d,rounded:f,children:m,...v}=t,y=I.useRef(null),b=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const[S,E]=I.useState({transform:"",width:""}),x=r,k={...v},g=Ie({ios:i,material:s}),C=He(),N=LM(a,C),O=g(TM(t,N,C)),D=P(f?O.base.rounded:O.base.square,u&&O.raised,c&&O.outline,d&&O.strong,n);return I.useEffect(()=>{if(d&&b.current){const R=b.current.parentElement,A=R.children.length-1,F=[...R.children].indexOf(R.querySelector(".k-segmented-strong-button-active")),U="4px";E({...S,width:`calc((100% - 2px * 2 - ${U} * (${A} - 1)) / ${A})`,transform:`translateX(calc((${F} * 100% + ${F} * ${U}) * var(--k-rtl-reverse)))`})}},[m]),j.createElement(x,tv({ref:y,className:D},k),c?j.createElement("span",{className:O.outlineInner},m):m,d&&j.createElement("span",{ref:b,className:O.strongHighlight,style:S}))});FM.displayName="Segmented";function rv(){return rv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{active:r,children:n,outline:a,strong:i,clear:s,rounded:u,...c}=t,d=I.useRef(null);return I.useImperativeHandle(e,()=>({el:d.current})),j.createElement(Wr,rv({ref:d,segmented:!0,segmentedActive:r,segmentedStrong:i,rounded:u&&i},c),n)});jM.displayName="SegmentedButton";const AM=(t,e,r)=>({base:{common:P("left-0 top-full transition-transform duration-400 z-40 overflow-hidden",Vt("fixed",r)),ios:"",material:`rounded-t-2xl ease-material-in ${e.bgIos}`,opened:`-translate-y-full ${e.bgMaterial}`,closed:""},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}),DM=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-black")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}};function nv(){return nv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,opened:i,backdrop:s=!0,onBackdropClick:u,ios:c,material:d,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=i?"opened":"closed",b=r,S={...m},E=Ie({ios:c,material:d}),x=He(),k=DM(a,x),g=E(AM(t,k,n),n);return j.createElement(j.Fragment,null,s&&j.createElement("div",{className:g.backdrop[y],onClick:u}),j.createElement(b,nv({ref:v,className:g.base[y]},S),f))});zM.displayName="Sheet";const BM=(t,e)=>{const{buttonsOnly:r}=t;return{base:`${e.text} inline-flex items-stretch`,raised:"shadow",size:{small:{ios:"h-6",material:"h-8"},medium:{ios:"h-7",material:"h-10"},large:{ios:"h-11",material:"h-12"}},shape:{square:{ios:"rounded",material:"rounded-lg"},rounded:"rounded-full"},button:{common:"relative flex items-center justify-center w-10 cursor-pointer overflow-hidden z-10 select-none"},buttonLeftShape:{square:{ios:"rounded-s",material:"rounded-s-lg"},rounded:"rounded-s-full"},buttonRightShape:{square:{ios:"rounded-e",material:"rounded-e-lg"},rounded:"rounded-e-full"},buttonStyle:{fill:{common:P(e.fillTouchRipple,r&&"first:border-r border-black border-opacity-10 rtl:first:border-l rtl:first:border-r-0"),ios:P(e.fillBgIos,e.fillTextIos,e.fillActiveBgIos),material:P(e.fillBgMaterial,e.fillTextMaterial,e.fillActiveBgMaterial)},outline:{common:P(e.touchRipple,"active:bg-opacity-15",r&&"first:border-r-0 rtl:last:border-r-0"),ios:P("border-2",e.textIos,e.activeBgIos,e.outlineBorderIos,r&&"rtl:first:border-r-2"),material:P("border",e.textMaterial,e.activeBgMaterial,e.outlineBorderMaterial,r&&"rtl:first:border-r")},clear:{common:`${e.touchRipple} active:bg-opacity-15 last:border-l rtl:last:border-l-0 rtl:first:border-l border-black border-opacity-10`,ios:P(e.textIos,e.activeBgIos),material:P(e.textMaterial,e.activeBgMaterial)}},input:{common:"focus:outline-none text-center appearance-none bg-transparent"},value:{common:"w-11 flex items-center justify-center font-medium",ios:`text-base ${e.textIos}`,material:`text-sm ${e.textMaterial}`,fill:{common:"",ios:`border-t-2 border-b-2 ${e.outlineBorderIos}`,material:`border-t border-b ${e.outlineBorderMaterial}`},outline:{common:"",ios:`border-t-2 border-b-2 ${e.outlineBorderIos}`,material:`border-t border-b ${e.outlineBorderMaterial}`},clear:"border-l border-black border-opacity-10"},hBar:"w-4 h-0.5 bg-current block",vBar:"w-0.5 h-4 bg-current block absolute inset-1/2 transform -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2"}},UM=function(t,e){return t===void 0&&(t={}),{activeBgIos:"active:bg-primary",activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:P("text-white"),fillTextMaterial:P("text-md-light-on-primary",e("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary",fillBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),fillActiveBgIos:"active:bg-ios-primary-shade",fillActiveBgMaterial:"",fillTouchRipple:P("touch-ripple-white","dark:touch-ripple-primary"),outlineBorderIos:"border-primary",outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),touchRipple:"touch-ripple-primary",...t}};function av(){return av=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,value:i=0,defaultValue:s,input:u=!1,inputType:c="text",inputPlaceholder:d,inputDisabled:f,inputReadOnly:m,buttonsOnly:v,rounded:y,roundedIos:b,roundedMaterial:S,small:E,smallIos:x,smallMaterial:k,large:g,largeIos:C,largeMaterial:N,raised:O,raisedIos:D,raisedMaterial:R,outline:A,outlineIos:F,outlineMaterial:U,onInput:H,onChange:q,onFocus:ne,onBlur:ie,onMinus:se,onPlus:K,ios:z,material:ee,touchRipple:Q=!0,children:oe,...he}=t,Ce=I.useRef(null),ge=I.useRef(null),Me=I.useRef(null);I.useImperativeHandle(e,()=>({el:Ce.current}));const Ne=r,$=wt({ios:z,material:ee}),re=Ie({ios:z,material:ee});aa(ge,$==="material"&&Q),aa(Me,$==="material"&&Q);const le=typeof y>"u"?$==="ios"?b:S:y,Se=typeof E>"u"?$==="ios"?x:k:E,Oe=typeof g>"u"?$==="ios"?C:N:g,Fe=typeof O>"u"?$==="ios"?D:R:O,Ye=typeof A>"u"?$==="ios"?F:U:A,it=He(),De=UM(a,it),Wt=Oe?"large":Se?"small":"medium",dt=Ye&&Fe?"clear":Ye?"outline":"fill",ht=le?"rounded":"square",ze=re(BM({...t,rounded:le,small:Se,large:Oe,raised:Fe,outline:Ye},De)),En={...he},Jt=P(ze.base,Fe&&ze.raised,ze.size[Wt],ze.shape[ht],n),Tr=P(ze.button,ze.buttonStyle[dt],ze.buttonLeftShape[ht]),mr=P(ze.button,ze.buttonStyle[dt],ze.buttonRightShape[ht]),qt=P(u&&ze.input,ze.value[dt]);return j.createElement(Ne,av({ref:Ce,className:Jt},En),j.createElement("span",{ref:ge,className:Tr,role:"button",tabIndex:"0",onClick:se},j.createElement("span",{className:ze.hBar})),u&&!v&&j.createElement("input",{className:qt,placeholder:d,type:c,value:i,defaultValue:s,disabled:f,readOnly:m,onInput:H,onChange:q,onFocus:ne,onBlur:ie}),!u&&!v&&j.createElement("span",{className:qt},i),j.createElement("span",{ref:Me,className:mr,role:"button",tabIndex:"0",onClick:K},j.createElement("span",{className:ze.hBar}),j.createElement("span",{className:ze.vBar})))});$M.displayName="Stepper";function iv(){return iv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{labels:r,icons:n,children:a,...i}=t,s=I.useRef(null);I.useImperativeHandle(e,()=>({el:s.current}));const u={...i};return j.createElement(A1,iv({ref:s,tabbar:!0,tabbarIcons:n,tabbarLabels:r},u),a)});N5.displayName="Tabbar";const VM=function(t,e){let{hasIcon:r,hasLabel:n,active:a}=t===void 0?{}:t;return e===void 0&&(e={}),{content:{common:"flex flex-col items-center justify-center h-full",ios:P("py-1",a?e.textActiveIos:e.textIos),material:P("py-2",r&&n&&"space-y-1",a?e.textActiveMaterial:e.textMaterial)},iconContainer:{common:"flex items-center justify-center k-tabbar-link-icon relative",ios:P("w-7 h-7"),material:P("w-16 h-8 rounded-full")},iconBg:{common:"absolute left-0 top-0 w-full h-full rounded-full duration-200 -z-10 pointer-events-none",ios:P(a?e.iconBgActiveIos:e.iconBgIos),material:P(a?e.iconBgActiveMaterial:e.iconBgMaterial,!a&&"scale-x-[0.5] opacity-0")},label:{ios:P(r?"text-xs font-medium":"",""),material:P(r?"text-xs":"text-sm","font-medium")}}},GM=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-40",e("dark:text-white dark:text-opacity-55")),textActiveIos:"text-primary",textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),textActiveMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),iconBgIos:"",iconBgActiveIos:"",iconBgMaterial:"",iconBgActiveMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),...t}};function ov(){return ov=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,active:n,ios:a,material:i,colors:s,linkProps:u={},icon:c,label:d,children:f,...m}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y={...u,...m},b=He(),S=GM(s,b),E=Ie({ios:a,material:i}),x=!!c,k=d||f&&f.length,g=E(VM({hasLabel:k,hasIcon:x,active:n},S));return j.createElement(E1,ov({ref:v,tabbar:!0,tabbarActive:n,className:r},y),j.createElement("span",{className:g.content},c&&j.createElement("span",{className:g.iconContainer},j.createElement("span",{className:g.iconBg}),c),(d||f&&f.length)&&j.createElement("span",{className:g.label},d,f)))});Wu.displayName="TabbarLink";const WM=()=>({base:{common:"w-full border-none p-0 m-0 border-collapse text-left table",ios:"",material:""}});function sv(){return sv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...s}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(WM({...t})),d={...s};return j.createElement("table",sv({className:c.base,ref:u},d),i)});qM.displayName="Table";const HM=()=>({base:{common:"text-sm",ios:"",material:""}});function lv(){return lv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...s}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(HM({...t})),d={...s};return j.createElement("tbody",lv({className:c.base,ref:u},d),i)});KM.displayName="TableBody";const YM=(t,e,r)=>{const{header:n}=t;return{base:{common:P("align-middle",r),ios:P(n?`text-xs font-semibold overflow-hidden whitespace-nowrap leading-4 h-11 bg-transparent ${e.textHeaderIos} py-0 px-4`:"h-11 relative py-0 px-4"),material:P(n?`${e.textHeaderMaterial} px-6 py-0 text-xs font-medium overflow-hidden text-ellipsis whitespace-nowrap leading-4 h-14 bg-transparent`:"py-0 first:px-6 px-7 h-12")}}},QM=function(t,e){return t===void 0&&(t={}),{textHeaderIos:P("text-black/45",e("dark:text-white/55")),textHeaderMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function uv(){return uv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,colors:n,header:a,ios:i,material:s,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=a?"th":"td",m=Ie({ios:i,material:s}),v=He(),y=QM(n,v),b=m(YM({...t},y,r)),S={...c};return j.createElement(f,uv({className:b.base,ref:d},S),u)});ZM.displayName="TableCell";const XM=()=>({base:{common:"align-middle relative",ios:"hairline-b",material:""}});function cv(){return cv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...s}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(XM({...t})),d={...s};return j.createElement("thead",cv({className:c.base,ref:u},d),i)});JM.displayName="TableHead";const eI=(t,e)=>{const{header:r}=t;return{base:{common:"align-middle relative",ios:r?"":P(e.bgIos,"hairline-b last:hairline-transparent"),material:r?"":P(e.bgMaterial,`border-t ${e.dividerMaterial}`)}}},tI=function(t,e){return t===void 0&&(t={}),{bgIos:P("hover:bg-black/5",e("dark:hover:bg-white/10")),bgMaterial:P("hover:bg-md-light-secondary-container",e("dark:hover:bg-md-dark-secondary-container")),dividerMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function dv(){return dv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,colors:n,header:a,ios:i,material:s,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=Ie({ios:i,material:s}),m=He(),v=tI(n,m),y=f(eI({...t},v)),b={...c};return j.createElement("tr",dv({className:y.base,ref:d},b),u)});rI.displayName="TableRow";const nI=(t,e,r)=>{const{translucent:n,opened:a}=t;return{base:{common:P(Vt("fixed",r),"z-50 transform transition-transform-opacity w-full sm:w-auto start-0 bottom-0 sm:max-w-lg",!a&&"translate-y-full opacity-0 pointer-events-none"),ios:P("sm:rounded-lg duration-300",e.textIos,e.bgIos,n&&"translucent"),material:P("sm:rounded-2xl duration-200",e.textMaterial,e.bgMaterial),left:"sm:start-4-safe sm:bottom-4-safe",right:"sm:end-4-safe sm:bottom-4-safe sm:start-auto",center:"sm:left-1/2 sm:bottom-4-safe sm:-translate-x-1/2"},content:{common:"flex items-center justify-between",ios:"pl-4-safe pr-4-safe pt-3 pb-3-safe sm:px-4 sm:py-3",material:"pl-6-safe pr-6-safe py-3.5 pb-3.5-safe sm:px-6 sm:py-3.5"},button:{common:"-my-2 shrink-0 ms-4",ios:"",material:"-me-2"}}},aI=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-black",bgMaterial:P("bg-md-light-surface-5",e("dark:bg-md-dark-surface-5")),textIos:"text-white",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function hv(){return hv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,translucent:i=!0,button:s,position:u="left",opened:c,ios:d,material:f,children:m,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=r,S={...v},E=Ie({ios:d,material:f}),x=He(),k=aI(a,x),g=E(nI({...t,translucent:i},k,n),n);return j.createElement(b,hv({ref:y,className:g.base[u]},S),j.createElement("div",{className:g.content},m,s&&j.createElement("div",{className:g.button},s)))});iI.displayName="Toast";const oI=(t,e,r,n)=>({base:{common:P(Vt("relative",r),"cursor-pointer select-none inline-block align-middle relative duration-300 rounded-full group",n("dark:touch-ripple-white")),ios:"h-8 w-13 p-0.5",material:"w-13 h-8 border-2",notChecked:{ios:e.bgIos,material:P(e.bgMaterial,e.borderMaterial)},checked:{ios:`${e.checkedBgIos}`,material:P(e.checkedBgMaterial,e.checkedBorderMaterial)}},inner:{ios:P("w-full h-full bg-white rounded-full block duration-300 transform",n("dark:bg-opacity-0")),notChecked:{},checked:{ios:"scale-0"}},thumbWrap:{common:"rounded-full absolute duration-300 transform",ios:"w-7 h-7 start-0.5 top-0.5",material:"w-6 h-6 start-0.5 top-0.5",checked:{ios:P("translate-x-5 rtl:!-translate-x-5"),material:P("translate-x-5 rtl:!-translate-x-5")},notChecked:""},thumb:{common:"w-full h-full rounded-full absolute duration-300 transform start-0 top-0",ios:"shadow-ios-toggle",material:"group-active:scale-[1.1]",checked:{ios:P(e.checkedThumbBgIos),material:P(e.checkedThumbBgMaterial)},notChecked:{ios:e.thumbBgIos,material:P("scale-[0.666]",e.thumbBgMaterial)}},input:{common:"hidden"}}),sI=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-20")),checkedBgIos:"bg-primary",thumbBgIos:"bg-white",checkedThumbBgIos:"bg-white",bgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),checkedBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),checkedBorderMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),thumbBgMaterial:P("bg-md-light-outline",e("dark:bg-md-dark-outline")),checkedThumbBgMaterial:P("bg-md-light-on-primary",e("dark:bg-md-dark-on-primary")),...t}};function fv(){return fv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:s,name:u,value:c,disabled:d,readOnly:f,onChange:m,touchRipple:v=!0,ios:y,material:b,children:S,...E}=t,x=I.useRef(null),k=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const g=r,C={...E},N=wt({ios:y,material:b}),O=Ie({ios:y,material:b}),D=He();aa(k,N==="material"&&v,x);const R=sI(a,D),A=s||i&&!m?"checked":"notChecked",F=O(oI(t,R,n,D),n);return j.createElement(g,fv({ref:x,className:F.base[A]},C),j.createElement("input",{type:"checkbox",name:u,value:c,disabled:d,readOnly:f,checked:s,defaultChecked:i,onChange:m,className:F.input}),j.createElement("span",{className:F.inner[A]}),j.createElement("span",{ref:k,className:F.thumbWrap[A]},j.createElement("span",{className:F.thumb[A]})),S)});lI.displayName="Toggle";var O5={exports:{}},Kh={},Yh={},Xe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof ki<"u"?ki:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.3",isBrowser:r(),isUnminified:/param/.test(function(a){}.toString()),dblClickWindow:400,getAngle(a){return t.Konva.angleDeg?a*e:a},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(a){t.glob.Konva=a}};const n=a=>{t.Konva[a.prototype.getClassName()]=a};t._registerNode=n,t.Konva._injectGlobal(t.Konva)})(Xe);var Gt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=Xe;class r{constructor(C=[1,0,0,1,0,0]){this.dirty=!1,this.m=C&&C.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(C){C.m[0]=this.m[0],C.m[1]=this.m[1],C.m[2]=this.m[2],C.m[3]=this.m[3],C.m[4]=this.m[4],C.m[5]=this.m[5]}point(C){var N=this.m;return{x:N[0]*C.x+N[2]*C.y+N[4],y:N[1]*C.x+N[3]*C.y+N[5]}}translate(C,N){return this.m[4]+=this.m[0]*C+this.m[2]*N,this.m[5]+=this.m[1]*C+this.m[3]*N,this}scale(C,N){return this.m[0]*=C,this.m[1]*=C,this.m[2]*=N,this.m[3]*=N,this}rotate(C){var N=Math.cos(C),O=Math.sin(C),D=this.m[0]*N+this.m[2]*O,R=this.m[1]*N+this.m[3]*O,A=this.m[0]*-O+this.m[2]*N,F=this.m[1]*-O+this.m[3]*N;return this.m[0]=D,this.m[1]=R,this.m[2]=A,this.m[3]=F,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(C,N){var O=this.m[0]+this.m[2]*N,D=this.m[1]+this.m[3]*N,R=this.m[2]+this.m[0]*C,A=this.m[3]+this.m[1]*C;return this.m[0]=O,this.m[1]=D,this.m[2]=R,this.m[3]=A,this}multiply(C){var N=this.m[0]*C.m[0]+this.m[2]*C.m[1],O=this.m[1]*C.m[0]+this.m[3]*C.m[1],D=this.m[0]*C.m[2]+this.m[2]*C.m[3],R=this.m[1]*C.m[2]+this.m[3]*C.m[3],A=this.m[0]*C.m[4]+this.m[2]*C.m[5]+this.m[4],F=this.m[1]*C.m[4]+this.m[3]*C.m[5]+this.m[5];return this.m[0]=N,this.m[1]=O,this.m[2]=D,this.m[3]=R,this.m[4]=A,this.m[5]=F,this}invert(){var C=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),N=this.m[3]*C,O=-this.m[1]*C,D=-this.m[2]*C,R=this.m[0]*C,A=C*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),F=C*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=N,this.m[1]=O,this.m[2]=D,this.m[3]=R,this.m[4]=A,this.m[5]=F,this}getMatrix(){return this.m}decompose(){var C=this.m[0],N=this.m[1],O=this.m[2],D=this.m[3],R=this.m[4],A=this.m[5],F=C*D-N*O;let U={x:R,y:A,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(C!=0||N!=0){var H=Math.sqrt(C*C+N*N);U.rotation=N>0?Math.acos(C/H):-Math.acos(C/H),U.scaleX=H,U.scaleY=F/H,U.skewX=(C*O+N*D)/F,U.skewY=0}else if(O!=0||D!=0){var q=Math.sqrt(O*O+D*D);U.rotation=Math.PI/2-(D>0?Math.acos(-O/q):-Math.acos(O/q)),U.scaleX=F/q,U.scaleY=q,U.skewX=0,U.skewY=(C*O+N*D)/F}return U.rotation=t.Util._getRotation(U.rotation),U}}t.Transform=r;var n="[object Array]",a="[object Number]",i="[object String]",s="[object Boolean]",u=Math.PI/180,c=180/Math.PI,d="#",f="",m="0",v="Konva warning: ",y="Konva error: ",b="rgb(",S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},E=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,x=[];const k=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(g){setTimeout(g,60)};t.Util={_isElement(g){return!!(g&&g.nodeType==1)},_isFunction(g){return!!(g&&g.constructor&&g.call&&g.apply)},_isPlainObject(g){return!!g&&g.constructor===Object},_isArray(g){return Object.prototype.toString.call(g)===n},_isNumber(g){return Object.prototype.toString.call(g)===a&&!isNaN(g)&&isFinite(g)},_isString(g){return Object.prototype.toString.call(g)===i},_isBoolean(g){return Object.prototype.toString.call(g)===s},isObject(g){return g instanceof Object},isValidSelector(g){if(typeof g!="string")return!1;var C=g[0];return C==="#"||C==="."||C===C.toUpperCase()},_sign(g){return g===0||g>0?1:-1},requestAnimFrame(g){x.push(g),x.length===1&&k(function(){const C=x;x=[],C.forEach(function(N){N()})})},createCanvasElement(){var g=document.createElement("canvas");try{g.style=g.style||{}}catch{}return g},createImageElement(){return document.createElement("img")},_isInDocument(g){for(;g=g.parentNode;)if(g==document)return!0;return!1},_urlToImage(g,C){var N=t.Util.createImageElement();N.onload=function(){C(N)},N.src=g},_rgbToHex(g,C,N){return((1<<24)+(g<<16)+(C<<8)+N).toString(16).slice(1)},_hexToRgb(g){g=g.replace(d,f);var C=parseInt(g,16);return{r:C>>16&255,g:C>>8&255,b:C&255}},getRandomColor(){for(var g=(Math.random()*16777215<<0).toString(16);g.length<6;)g=m+g;return d+g},getRGB(g){var C;return g in S?(C=S[g],{r:C[0],g:C[1],b:C[2]}):g[0]===d?this._hexToRgb(g.substring(1)):g.substr(0,4)===b?(C=E.exec(g.replace(/ /g,"")),{r:parseInt(C[1],10),g:parseInt(C[2],10),b:parseInt(C[3],10)}):{r:0,g:0,b:0}},colorToRGBA(g){return g=g||"black",t.Util._namedColorToRBA(g)||t.Util._hex3ColorToRGBA(g)||t.Util._hex4ColorToRGBA(g)||t.Util._hex6ColorToRGBA(g)||t.Util._hex8ColorToRGBA(g)||t.Util._rgbColorToRGBA(g)||t.Util._rgbaColorToRGBA(g)||t.Util._hslColorToRGBA(g)},_namedColorToRBA(g){var C=S[g.toLowerCase()];return C?{r:C[0],g:C[1],b:C[2],a:1}:null},_rgbColorToRGBA(g){if(g.indexOf("rgb(")===0){g=g.match(/rgb\(([^)]+)\)/)[1];var C=g.split(/ *, */).map(Number);return{r:C[0],g:C[1],b:C[2],a:1}}},_rgbaColorToRGBA(g){if(g.indexOf("rgba(")===0){g=g.match(/rgba\(([^)]+)\)/)[1];var C=g.split(/ *, */).map((N,O)=>N.slice(-1)==="%"?O===3?parseInt(N)/100:parseInt(N)/100*255:Number(N));return{r:C[0],g:C[1],b:C[2],a:C[3]}}},_hex8ColorToRGBA(g){if(g[0]==="#"&&g.length===9)return{r:parseInt(g.slice(1,3),16),g:parseInt(g.slice(3,5),16),b:parseInt(g.slice(5,7),16),a:parseInt(g.slice(7,9),16)/255}},_hex6ColorToRGBA(g){if(g[0]==="#"&&g.length===7)return{r:parseInt(g.slice(1,3),16),g:parseInt(g.slice(3,5),16),b:parseInt(g.slice(5,7),16),a:1}},_hex4ColorToRGBA(g){if(g[0]==="#"&&g.length===5)return{r:parseInt(g[1]+g[1],16),g:parseInt(g[2]+g[2],16),b:parseInt(g[3]+g[3],16),a:parseInt(g[4]+g[4],16)/255}},_hex3ColorToRGBA(g){if(g[0]==="#"&&g.length===4)return{r:parseInt(g[1]+g[1],16),g:parseInt(g[2]+g[2],16),b:parseInt(g[3]+g[3],16),a:1}},_hslColorToRGBA(g){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(g)){const[C,...N]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(g),O=Number(N[0])/360,D=Number(N[1])/100,R=Number(N[2])/100;let A,F,U;if(D===0)return U=R*255,{r:Math.round(U),g:Math.round(U),b:Math.round(U),a:1};R<.5?A=R*(1+D):A=R+D-R*D;const H=2*R-A,q=[0,0,0];for(let ne=0;ne<3;ne++)F=O+1/3*-(ne-1),F<0&&F++,F>1&&F--,6*F<1?U=H+(A-H)*6*F:2*F<1?U=A:3*F<2?U=H+(A-H)*(2/3-F)*6:U=H,q[ne]=U*255;return{r:Math.round(q[0]),g:Math.round(q[1]),b:Math.round(q[2]),a:1}}},haveIntersection(g,C){return!(C.x>g.x+g.width||C.x+C.widthg.y+g.height||C.y+C.height1?(A=N,F=O,U=(N-D)*(N-D)+(O-R)*(O-R)):(A=g+q*(N-g),F=C+q*(O-C),U=(A-D)*(A-D)+(F-R)*(F-R))}return[A,F,U]},_getProjectionToLine(g,C,N){var O=t.Util.cloneObject(g),D=Number.MAX_VALUE;return C.forEach(function(R,A){if(!(!N&&A===C.length-1)){var F=C[(A+1)%C.length],U=t.Util._getProjectionToSegment(R.x,R.y,F.x,F.y,g.x,g.y),H=U[0],q=U[1],ne=U[2];neC.length){var A=C;C=g,g=A}for(O=0;O{C.width=0,C.height=0})},drawRoundedRectPath(g,C,N,O){let D=0,R=0,A=0,F=0;typeof O=="number"?D=R=A=F=Math.min(O,C/2,N/2):(D=Math.min(O[0]||0,C/2,N/2),R=Math.min(O[1]||0,C/2,N/2),F=Math.min(O[2]||0,C/2,N/2),A=Math.min(O[3]||0,C/2,N/2)),g.moveTo(D,0),g.lineTo(C-R,0),g.arc(C-R,R,R,Math.PI*3/2,0,!1),g.lineTo(C,N-F),g.arc(C-F,N-F,F,0,Math.PI/2,!1),g.lineTo(A,N),g.arc(A,N-A,A,Math.PI/2,Math.PI,!1),g.lineTo(0,D),g.arc(D,D,D,Math.PI,Math.PI*3/2,!1)}}})(Gt);var jt={},Je={},_e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.getComponentValidator=_e.getBooleanValidator=_e.getNumberArrayValidator=_e.getFunctionValidator=_e.getStringOrGradientValidator=_e.getStringValidator=_e.getNumberOrAutoValidator=_e.getNumberOrArrayOfNumbersValidator=_e.getNumberValidator=_e.alphaComponent=_e.RGBComponent=void 0;const ri=Xe,Zt=Gt;function ni(t){return Zt.Util._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||Zt.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function uI(t){return t>255?255:t<0?0:Math.round(t)}_e.RGBComponent=uI;function cI(t){return t>1?1:t<1e-4?1e-4:t}_e.alphaComponent=cI;function dI(){if(ri.Konva.isUnminified)return function(t,e){return Zt.Util._isNumber(t)||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}_e.getNumberValidator=dI;function hI(t){if(ri.Konva.isUnminified)return function(e,r){let n=Zt.Util._isNumber(e),a=Zt.Util._isArray(e)&&e.length==t;return!n&&!a&&Zt.Util.warn(ni(e)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+t+")"),e}}_e.getNumberOrArrayOfNumbersValidator=hI;function fI(){if(ri.Konva.isUnminified)return function(t,e){var r=Zt.Util._isNumber(t),n=t==="auto";return r||n||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}_e.getNumberOrAutoValidator=fI;function pI(){if(ri.Konva.isUnminified)return function(t,e){return Zt.Util._isString(t)||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}_e.getStringValidator=pI;function gI(){if(ri.Konva.isUnminified)return function(t,e){const r=Zt.Util._isString(t),n=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return r||n||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}_e.getStringOrGradientValidator=gI;function mI(){if(ri.Konva.isUnminified)return function(t,e){return Zt.Util._isFunction(t)||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}_e.getFunctionValidator=mI;function vI(){if(ri.Konva.isUnminified)return function(t,e){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&t instanceof r||(Zt.Util._isArray(t)?t.forEach(function(n){Zt.Util._isNumber(n)||Zt.Util.warn('"'+e+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}_e.getNumberArrayValidator=vI;function yI(){if(ri.Konva.isUnminified)return function(t,e){var r=t===!0||t===!1;return r||Zt.Util.warn(ni(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}_e.getBooleanValidator=yI;function bI(t){if(ri.Konva.isUnminified)return function(e,r){return e==null||Zt.Util.isObject(e)||Zt.Util.warn(ni(e)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+t),e}}_e.getComponentValidator=bI,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=Gt,r=_e;var n="get",a="set";t.Factory={addGetterSetter(i,s,u,c,d){t.Factory.addGetter(i,s,u),t.Factory.addSetter(i,s,c,d),t.Factory.addOverloadedGetterSetter(i,s)},addGetter(i,s,u){var c=n+e.Util._capitalize(s);i.prototype[c]=i.prototype[c]||function(){var d=this.attrs[s];return d===void 0?u:d}},addSetter(i,s,u,c){var d=a+e.Util._capitalize(s);i.prototype[d]||t.Factory.overWriteSetter(i,s,u,c)},overWriteSetter(i,s,u,c){var d=a+e.Util._capitalize(s);i.prototype[d]=function(f){return u&&f!==void 0&&f!==null&&(f=u.call(this,f,s)),this._setAttr(s,f),c&&c.call(this),this}},addComponentsGetterSetter(i,s,u,c,d){var f=u.length,m=e.Util._capitalize,v=n+m(s),y=a+m(s),b,S;i.prototype[v]=function(){var x={};for(b=0;b{this._setAttr(s+m(C),void 0)}),this._fireChangeEvent(s,k,x),d&&d.call(this),this},t.Factory.addOverloadedGetterSetter(i,s)},addOverloadedGetterSetter(i,s){var u=e.Util._capitalize(s),c=a+u,d=n+u;i.prototype[s]=function(){return arguments.length?(this[c](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,s,u,c){e.Util.error("Adding deprecated "+s);var d=n+e.Util._capitalize(s),f=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){e.Util.error(f);var m=this.attrs[s];return m===void 0?u:m},t.Factory.addSetter(i,s,c,function(){e.Util.error(f)}),t.Factory.addOverloadedGetterSetter(i,s)},backCompat(i,s){e.Util.each(s,function(u,c){var d=i.prototype[c],f=n+e.Util._capitalize(u),m=a+e.Util._capitalize(u);function v(){d.apply(this,arguments),e.Util.error('"'+u+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}i.prototype[u]=v,i.prototype[f]=v,i.prototype[m]=v})},afterSetFilter(){this._filterUpToDate=!1}}}(Je);var ia={},ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.HitContext=ai.SceneContext=ai.Context=void 0;const R5=Gt,wI=Xe;function kI(t){var e=[],r=t.length,n=R5.Util,a,i;for(a=0;atypeof f=="number"?Math.floor(f):f)),i+=xI+d.join(T5)+SI)):(i+=u.property,e||(i+=MI+u.val)),i+=EI;return i}clearTrace(){this.traceArr=[]}_trace(e){var r=this.traceArr,n;r.push(e),n=r.length,n>=NI&&r.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var r=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(e){const r=e.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(e){var r=e.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(e){const r=e.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(e,r){this._context[e]=r}arc(e,r,n,a,i,s){this._context.arc(e,r,n,a,i,s)}arcTo(e,r,n,a,i){this._context.arcTo(e,r,n,a,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,r,n,a,i,s){this._context.bezierCurveTo(e,r,n,a,i,s)}clearRect(e,r,n,a){this._context.clearRect(e,r,n,a)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,r){var n=arguments;if(n.length===2)return this._context.createImageData(e,r);if(n.length===1)return this._context.createImageData(e)}createLinearGradient(e,r,n,a){return this._context.createLinearGradient(e,r,n,a)}createPattern(e,r){return this._context.createPattern(e,r)}createRadialGradient(e,r,n,a,i,s){return this._context.createRadialGradient(e,r,n,a,i,s)}drawImage(e,r,n,a,i,s,u,c,d){var f=arguments,m=this._context;f.length===3?m.drawImage(e,r,n):f.length===5?m.drawImage(e,r,n,a,i):f.length===9&&m.drawImage(e,r,n,a,i,s,u,c,d)}ellipse(e,r,n,a,i,s,u,c){this._context.ellipse(e,r,n,a,i,s,u,c)}isPointInPath(e,r,n,a){return n?this._context.isPointInPath(n,e,r,a):this._context.isPointInPath(e,r,a)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,r,n,a){this._context.fillRect(e,r,n,a)}strokeRect(e,r,n,a){this._context.strokeRect(e,r,n,a)}fillText(e,r,n,a){a?this._context.fillText(e,r,n,a):this._context.fillText(e,r,n)}measureText(e){return this._context.measureText(e)}getImageData(e,r,n,a){return this._context.getImageData(e,r,n,a)}lineTo(e,r){this._context.lineTo(e,r)}moveTo(e,r){this._context.moveTo(e,r)}rect(e,r,n,a){this._context.rect(e,r,n,a)}roundRect(e,r,n,a,i){this._context.roundRect(e,r,n,a,i)}putImageData(e,r,n){this._context.putImageData(e,r,n)}quadraticCurveTo(e,r,n,a){this._context.quadraticCurveTo(e,r,n,a)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,r){this._context.scale(e,r)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,r,n,a,i,s){this._context.setTransform(e,r,n,a,i,s)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,r,n,a){this._context.strokeText(e,r,n,a)}transform(e,r,n,a,i,s){this._context.transform(e,r,n,a,i,s)}translate(e,r){this._context.translate(e,r)}_enableTrace(){var e=this,r=L5.length,n=this.setAttr,a,i,s=function(u){var c=e[u],d;e[u]=function(){return i=kI(Array.prototype.slice.call(arguments,0)),d=c.apply(e,arguments),e._trace({method:u,args:i}),d}};for(a=0;a{a.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){var n;return t.DD._dragElements.forEach(a=>{n=a.node}),n},_dragElements:new Map,_drag(n){const a=[];t.DD._dragElements.forEach((i,s)=>{const{node:u}=i,c=u.getStage();c.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=c._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){var f=u.dragDistance(),m=Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y));if(m{i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const a=[];t.DD._dragElements.forEach(i=>{const{node:s}=i,u=s.getStage();if(n&&u.setPointersPositions(n),!u._changedPointerPositions.find(d=>d.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,i.dragStatus="stopped");const c=i.node.getLayer()||i.node instanceof e.Konva.Stage&&i.node;c&&a.indexOf(c)===-1&&a.push(c)}),a.forEach(i=>{i.draw()})},_endDragAfter(n){t.DD._dragElements.forEach((a,i)=>{a.dragStatus==="stopped"&&a.node.fire("dragend",{type:"dragend",target:a.node,evt:n},!0),a.dragStatus!=="dragging"&&t.DD._dragElements.delete(i)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1))})(ef),Object.defineProperty(jt,"__esModule",{value:!0}),jt.Node=void 0;const nt=Gt,qu=Je,Hu=ia,jo=Xe,$n=ef,rr=_e;var tf="absoluteOpacity",rf="allEventListeners",ii="absoluteTransform",A5="absoluteScale",Ao="canvas",DI="Change",zI="children",BI="konva",pv="listening",D5="mouseenter",z5="mouseleave",B5="set",U5="Shape",nf=" ",$5="stage",Hi="transform",UI="Stage",gv="visible",$I=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(nf);let VI=1;class Ue{constructor(e){this._id=VI++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Hi||e===ii)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,r){var n=this._cache.get(e),a=e===Hi||e===ii,i=n===void 0||a&&n.dirty===!0;return i&&(n=r.call(this),this._cache.set(e,n)),n}_calculate(e,r,n){if(!this._attachedDepsListeners.get(e)){const a=r.map(i=>i+"Change.konva").join(nf);this.on(a,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(Ao)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===ii&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Ao)){const{scene:e,filter:r,hit:n}=this._cache.get(Ao);nt.Util.releaseCanvas(e,r,n),this._cache.delete(Ao)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var r=e||{},n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var a=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),s=r.pixelRatio,u=r.x===void 0?Math.floor(n.x):r.x,c=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,f=r.drawBorder||!1,m=r.hitCanvasPixelRatio||1;if(!a||!i){nt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const v=Math.abs(Math.round(n.x)-u)>.5?1:0,y=Math.abs(Math.round(n.y)-c)>.5?1:0;a+=d*2+v,i+=d*2+y,u-=d,c-=d;var b=new Hu.SceneCanvas({pixelRatio:s,width:a,height:i}),S=new Hu.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),E=new Hu.HitCanvas({pixelRatio:m,width:a,height:i}),x=b.getContext(),k=E.getContext();return E.isCache=!0,b.isCache=!0,this._cache.delete(Ao),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(b.getContext()._context.imageSmoothingEnabled=!1,S.getContext()._context.imageSmoothingEnabled=!1),x.save(),k.save(),x.translate(-u,-c),k.translate(-u,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(tf),this._clearSelfAndDescendantCache(A5),this.drawScene(b,this),this.drawHit(E,this),this._isUnderCache=!1,x.restore(),k.restore(),f&&(x.save(),x.beginPath(),x.rect(0,0,a,i),x.closePath(),x.setAttr("strokeStyle","red"),x.setAttr("lineWidth",5),x.stroke(),x.restore()),this._cache.set(Ao,{scene:b,filter:S,hit:E,x:u,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Ao)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,r){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=1/0,i=1/0,s=-1/0,u=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(d){var f=c.point(d);a===void 0&&(a=s=f.x,i=u=f.y),a=Math.min(a,f.x),i=Math.min(i,f.y),s=Math.max(s,f.x),u=Math.max(u,f.y)}),{x:a,y:i,width:s-a,height:u-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();e.translate(r.x,r.y);var n=this._getCachedSceneCanvas(),a=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/a,n.height/a),e.restore()}_drawCachedHitCanvas(e){var r=this._getCanvasCache(),n=r.hit;e.save(),e.translate(r.x,r.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e=this.filters(),r=this._getCanvasCache(),n=r.scene,a=r.filter,i=a.getContext(),s,u,c,d;if(e){if(!this._filterUpToDate){var f=n.pixelRatio;a.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(s=e.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/f,n.getHeight()/f),u=i.getImageData(0,0,a.getWidth(),a.getHeight()),c=0;c{var r,n;if(!e)return this;for(r in e)r!==zI&&(n=B5+nt.Util._capitalize(r),nt.Util._isFunction(this[n])?this[n](e[r]):this._setAttr(r,e[r]))}),this}isListening(){return this._getCache(pv,this._isListening)}_isListening(e){if(!this.listening())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isListening(e):!0}isVisible(){return this._getCache(gv,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isVisible(e):!0}shouldDrawHit(e,r=!1){if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),a=!1;$n.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===n)&&(a=!0)});var i=!r&&!jo.Konva.hitOnDragEnabled&&a;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e=this.getDepth(),r=this,n=0,a,i,s,u;function c(f){for(a=[],i=f.length,s=0;s0&&a[0].getDepth()<=e&&c(a)}const d=this.getStage();return r.nodeType!==UI&&d&&c(d.getChildren()),n}getDepth(){for(var e=0,r=this.parent;r;)e++,r=r.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Hi),this._clearSelfAndDescendantCache(ii)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;var r=e.getPointerPosition();if(!r)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(e){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!e&&(e=!0);var a=this.getAbsoluteTransform(e).getMatrix(),i=new nt.Transform,s=this.offset();return i.m=a.slice(),i.translate(s.x,s.y),i.getTranslation()}setAbsolutePosition(e){const{x:r,y:n,...a}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Hi);var i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(e.x,e.y),e={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(a),this.setPosition({x:e.x,y:e.y}),this._clearCache(Hi),this._clearSelfAndDescendantCache(ii),this}_setTransform(e){var r;for(r in e)this.attrs[r]=e[r]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var r=e.x,n=e.y,a=this.x(),i=this.y();return r!==void 0&&(a+=r),n!==void 0&&(i+=n),this.setPosition({x:a,y:i}),this}_eachAncestorReverse(e,r){var n=[],a=this.getParent(),i,s;if(!(r&&r._id===this._id)){for(n.unshift(this);a&&(!r||a._id!==r._id);)n.unshift(a),a=a.parent;for(i=n.length,s=0;s0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return nt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return nt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&nt.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(tf,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),r=this.getParent();return r&&!r._isUnderCache&&(e*=r.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e=this.getAttrs(),r,n,a,i,s;const u={attrs:{},className:this.getClassName()};for(r in e)n=e[r],s=nt.Util.isObject(n)&&!nt.Util._isPlainObject(n)&&!nt.Util._isArray(n),!s&&(a=typeof this[r]=="function"&&this[r],delete e[r],i=a?a.call(this):null,e[r]=n,i!==n&&(u.attrs[r]=n));return nt.Util._prepareToStringify(u)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,r,n){var a=[];r&&this._isMatch(e)&&a.push(this);for(var i=this.parent;i;){if(i===n)return a;i._isMatch(e)&&a.push(i),i=i.parent}return a}isAncestorOf(e){return!1}findAncestor(e,r,n){return this.findAncestors(e,r,n)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);var r=e.replace(/ /g,"").split(","),n=r.length,a,i;for(a=0;a{try{const a=e?.callback;a&&delete e.callback,nt.Util._urlToImage(this.toDataURL(e),function(i){r(i),a?.(i)})}catch(a){n(a)}})}toBlob(e){return new Promise((r,n)=>{try{const a=e?.callback;a&&delete e.callback,this.toCanvas(e).toBlob(i=>{r(i),a?.(i)},e?.mimeType,e?.quality)}catch(a){n(a)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():jo.Konva.dragDistance}_off(e,r,n){var a=this.eventListeners[e],i,s,u;for(i=0;i=0;if(n&&!this.isDragging()){var a=!1;$n.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(a=!0)}),a||this._createDragElement(e)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var e=this.getStage();if(!e)return;const r=$n.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",a=r&&r.dragStatus==="ready";n?this.stopDrag():a&&$n.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-e.x,y:-e.y,width:r.width()+2*e.x,height:r.height()+2*e.y};return nt.Util.haveIntersection(n,this.getClientRect())}static create(e,r){return nt.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,r)}static _createNode(e,r){var n=Ue.prototype.getClassName.call(e),a=e.children,i,s,u;r&&(e.attrs.container=r),jo.Konva[n]||(nt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=jo.Konva[n];if(i=new c(e.attrs),a)for(s=a.length,u=0;u0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(var r=0;r0?r[0]:void 0}_generalFind(e,r){var n=[];return this._descendants(a=>{const i=a._isMatch(e);return i&&n.push(a),!!(i&&r)}),n}_descendants(e){let r=!1;const n=this.getChildren();for(const a of n)if(r=e(a),r||a.hasChildren()&&(r=a._descendants(e),r))return!0;return!1}toObject(){var e=mv.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(r=>{e.children.push(r.toObject())}),e}isAncestorOf(e){for(var r=e.getParent();r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(e){var r=mv.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(e){var r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(e)&&r.push(n)}),r}_clearSelfAndDescendantCache(e){var r;super._clearSelfAndDescendantCache(e),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(e,r,n){var a=this.getLayer(),i=e||a&&a.getCanvas(),s=i&&i.getContext(),u=this._getCanvasCache(),c=u&&u.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(c){s.save();var f=this.getAbsoluteTransform(r).getMatrix();s.transform(f[0],f[1],f[2],f[3],f[4],f[5]),this._drawCachedSceneCanvas(s),s.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(e,r){if(!this.shouldDrawHit(r))return this;var n=this.getLayer(),a=e||n&&n.hitCanvas,i=a&&a.getContext(),s=this._getCanvasCache(),u=s&&s.hit;if(u){i.save();var c=this.getAbsoluteTransform(r).getMatrix();i.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",a,r);return this}_drawChildren(e,r,n,a){var i,s=r&&r.getContext(),u=this.clipWidth(),c=this.clipHeight(),d=this.clipFunc(),f=u&&c||d;const m=n===this;if(f){s.save();var v=this.getAbsoluteTransform(n),y=v.getMatrix();s.transform(y[0],y[1],y[2],y[3],y[4],y[5]),s.beginPath();let x;if(d)x=d.call(this,s,this);else{var b=this.clipX(),S=this.clipY();s.rect(b,S,u,c)}s.clip.apply(s,x),y=v.copy().invert().getMatrix(),s.transform(y[0],y[1],y[2],y[3],y[4],y[5])}var E=!m&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";E&&(s.save(),s._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(x){x[e](r,n,a)}),E&&s.restore(),f&&s.restore()}getClientRect(e={}){var r,n=e.skipTransform,a=e.relativeTo,i,s,u,c,d={x:1/0,y:1/0,width:0,height:0},f=this;(r=this.children)===null||r===void 0||r.forEach(function(S){if(S.visible()){var E=S.getClientRect({relativeTo:f,skipShadow:e.skipShadow,skipStroke:e.skipStroke});E.width===0&&E.height===0||(i===void 0?(i=E.x,s=E.y,u=E.x+E.width,c=E.y+E.height):(i=Math.min(i,E.x),s=Math.min(s,E.y),u=Math.max(u,E.x+E.width),c=Math.max(c,E.y+E.height)))}});for(var m=this.find("Shape"),v=!1,y=0;yNe.indexOf("pointer")>=0?"pointer":Ne.indexOf("touch")>=0?"touch":"mouse",he=Ne=>{const $=oe(Ne);if($==="pointer")return a.Konva.pointerEventsEnabled&&Q.pointer;if($==="touch")return Q.touch;if($==="mouse")return Q.mouse};function Ce(Ne={}){return(Ne.clipFunc||Ne.clipWidth||Ne.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ne}const ge="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";t.stages=[];class Me extends n.Container{constructor($){super(Ce($)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{Ce(this.attrs)}),this._checkVisibility()}_validateAdd($){const re=$.getType()==="Layer",le=$.getType()==="FastLayer";re||le||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const $=this.visible()?"":"none";this.content.style.display=$}setContainer($){if(typeof $===f){if($.charAt(0)==="."){var re=$.slice(1);$=document.getElementsByClassName(re)[0]}else{var le;$.charAt(0)!=="#"?le=$:le=$.slice(1),$=document.getElementById(le)}if(!$)throw"Can not find container in document with id "+le}return this._setAttr("container",$),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),$.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var $=this.children,re=$.length,le;for(le=0;le-1&&t.stages.splice(re,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const $=this._pointerPositions[0]||this._changedPointerPositions[0];return $?{x:$.x,y:$.y}:(e.Util.warn(ge),null)}_getPointerById($){return this._pointerPositions.find(re=>re.id===$)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas($){$=$||{},$.x=$.x||0,$.y=$.y||0,$.width=$.width||this.width(),$.height=$.height||this.height();var re=new i.SceneCanvas({width:$.width,height:$.height,pixelRatio:$.pixelRatio||1}),le=re.getContext()._context,Se=this.children;return($.x||$.y)&&le.translate(-1*$.x,-1*$.y),Se.forEach(function(Oe){if(Oe.isVisible()){var Fe=Oe._toKonvaCanvas($);le.drawImage(Fe._canvas,$.x,$.y,Fe.getWidth()/Fe.getPixelRatio(),Fe.getHeight()/Fe.getPixelRatio())}}),re}getIntersection($){if(!$)return null;var re=this.children,le=re.length,Se=le-1,Oe;for(Oe=Se;Oe>=0;Oe--){const Fe=re[Oe].getIntersection($);if(Fe)return Fe}return null}_resizeDOM(){var $=this.width(),re=this.height();this.content&&(this.content.style.width=$+m,this.content.style.height=re+m),this.bufferCanvas.setSize($,re),this.bufferHitCanvas.setSize($,re),this.children.forEach(le=>{le.setSize({width:$,height:re}),le.draw()})}add($,...re){if(arguments.length>1){for(var le=0;lez&&e.Util.warn("The stage has "+Se+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),$.setSize({width:this.width(),height:this.height()}),$.draw(),a.Konva.isBrowser&&this.content.appendChild($.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture($){return c.hasPointerCapture($,this)}setPointerCapture($){c.setPointerCapture($,this)}releaseCapture($){c.releaseCapture($,this)}getLayers(){return this.children}_bindContentEvents(){a.Konva.isBrowser&&ee.forEach(([$,re])=>{this.content.addEventListener($,le=>{this[re](le)},{passive:!1})})}_pointerenter($){this.setPointersPositions($);const re=he($.type);re&&this._fire(re.pointerenter,{evt:$,target:this,currentTarget:this})}_pointerover($){this.setPointersPositions($);const re=he($.type);re&&this._fire(re.pointerover,{evt:$,target:this,currentTarget:this})}_getTargetShape($){let re=this[$+"targetShape"];return re&&!re.getStage()&&(re=null),re}_pointerleave($){const re=he($.type),le=oe($.type);if(re){this.setPointersPositions($);var Se=this._getTargetShape(le),Oe=!s.DD.isDragging||a.Konva.hitOnDragEnabled;Se&&Oe?(Se._fireAndBubble(re.pointerout,{evt:$}),Se._fireAndBubble(re.pointerleave,{evt:$}),this._fire(re.pointerleave,{evt:$,target:this,currentTarget:this}),this[le+"targetShape"]=null):Oe&&(this._fire(re.pointerleave,{evt:$,target:this,currentTarget:this}),this._fire(re.pointerout,{evt:$,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown($){const re=he($.type),le=oe($.type);if(re){this.setPointersPositions($);var Se=!1;this._changedPointerPositions.forEach(Oe=>{var Fe=this.getIntersection(Oe);if(s.DD.justDragged=!1,a.Konva["_"+le+"ListenClick"]=!0,!Fe||!Fe.isListening())return;a.Konva.capturePointerEventsEnabled&&Fe.setPointerCapture(Oe.id),this[le+"ClickStartShape"]=Fe,Fe._fireAndBubble(re.pointerdown,{evt:$,pointerId:Oe.id}),Se=!0;const Ye=$.type.indexOf("touch")>=0;Fe.preventDefault()&&$.cancelable&&Ye&&$.preventDefault()}),Se||this._fire(re.pointerdown,{evt:$,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove($){const re=he($.type),le=oe($.type);if(!re)return;s.DD.isDragging&&s.DD.node.preventDefault()&&$.cancelable&&$.preventDefault(),this.setPointersPositions($);var Se=!s.DD.isDragging||a.Konva.hitOnDragEnabled;if(!Se)return;var Oe={};let Fe=!1;var Ye=this._getTargetShape(le);this._changedPointerPositions.forEach(it=>{const De=c.getCapturedShape(it.id)||this.getIntersection(it),Wt=it.id,dt={evt:$,pointerId:Wt};var ht=Ye!==De;if(ht&&Ye&&(Ye._fireAndBubble(re.pointerout,{...dt},De),Ye._fireAndBubble(re.pointerleave,{...dt},De)),De){if(Oe[De._id])return;Oe[De._id]=!0}De&&De.isListening()?(Fe=!0,ht&&(De._fireAndBubble(re.pointerover,{...dt},Ye),De._fireAndBubble(re.pointerenter,{...dt},Ye),this[le+"targetShape"]=De),De._fireAndBubble(re.pointermove,{...dt})):Ye&&(this._fire(re.pointerover,{evt:$,target:this,currentTarget:this,pointerId:Wt}),this[le+"targetShape"]=null)}),Fe||this._fire(re.pointermove,{evt:$,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup($){const re=he($.type),le=oe($.type);if(!re)return;this.setPointersPositions($);const Se=this[le+"ClickStartShape"],Oe=this[le+"ClickEndShape"];var Fe={};let Ye=!1;this._changedPointerPositions.forEach(it=>{const De=c.getCapturedShape(it.id)||this.getIntersection(it);if(De){if(De.releaseCapture(it.id),Fe[De._id])return;Fe[De._id]=!0}const Wt=it.id,dt={evt:$,pointerId:Wt};let ht=!1;a.Konva["_"+le+"InDblClickWindow"]?(ht=!0,clearTimeout(this[le+"DblTimeout"])):s.DD.justDragged||(a.Konva["_"+le+"InDblClickWindow"]=!0,clearTimeout(this[le+"DblTimeout"])),this[le+"DblTimeout"]=setTimeout(function(){a.Konva["_"+le+"InDblClickWindow"]=!1},a.Konva.dblClickWindow),De&&De.isListening()?(Ye=!0,this[le+"ClickEndShape"]=De,De._fireAndBubble(re.pointerup,{...dt}),a.Konva["_"+le+"ListenClick"]&&Se&&Se===De&&(De._fireAndBubble(re.pointerclick,{...dt}),ht&&Oe&&Oe===De&&De._fireAndBubble(re.pointerdblclick,{...dt}))):(this[le+"ClickEndShape"]=null,a.Konva["_"+le+"ListenClick"]&&this._fire(re.pointerclick,{evt:$,target:this,currentTarget:this,pointerId:Wt}),ht&&this._fire(re.pointerdblclick,{evt:$,target:this,currentTarget:this,pointerId:Wt}))}),Ye||this._fire(re.pointerup,{evt:$,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a.Konva["_"+le+"ListenClick"]=!1,$.cancelable&&le!=="touch"&&$.preventDefault()}_contextmenu($){this.setPointersPositions($);var re=this.getIntersection(this.getPointerPosition());re&&re.isListening()?re._fireAndBubble(H,{evt:$}):this._fire(H,{evt:$,target:this,currentTarget:this})}_wheel($){this.setPointersPositions($);var re=this.getIntersection(this.getPointerPosition());re&&re.isListening()?re._fireAndBubble(K,{evt:$}):this._fire(K,{evt:$,target:this,currentTarget:this})}_pointercancel($){this.setPointersPositions($);const re=c.getCapturedShape($.pointerId)||this.getIntersection(this.getPointerPosition());re&&re._fireAndBubble(N,c.createEvent($)),c.releaseCapture($.pointerId)}_lostpointercapture($){c.releaseCapture($.pointerId)}setPointersPositions($){var re=this._getContentPosition(),le=null,Se=null;$=$||window.event,$.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call($.touches,Oe=>{this._pointerPositions.push({id:Oe.identifier,x:(Oe.clientX-re.left)/re.scaleX,y:(Oe.clientY-re.top)/re.scaleY})}),Array.prototype.forEach.call($.changedTouches||$.touches,Oe=>{this._changedPointerPositions.push({id:Oe.identifier,x:(Oe.clientX-re.left)/re.scaleX,y:(Oe.clientY-re.top)/re.scaleY})})):(le=($.clientX-re.left)/re.scaleX,Se=($.clientY-re.top)/re.scaleY,this.pointerPos={x:le,y:Se},this._pointerPositions=[{x:le,y:Se,id:e.Util._getFirstPointerId($)}],this._changedPointerPositions=[{x:le,y:Se,id:e.Util._getFirstPointerId($)}])}_setPointerPosition($){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions($)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var $=this.content.getBoundingClientRect();return{top:$.top,left:$.left,scaleX:$.width/this.content.clientWidth||1,scaleY:$.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!a.Konva.isBrowser){var $=this.container();if(!$)throw"Stage has no container. A container is required.";$.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),$.appendChild(this.content),this._resizeDOM()}}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function($){$.batchDraw()}),this}}t.Stage=Me,Me.prototype.nodeType=d,(0,u._registerNode)(Me),r.Factory.addGetterSetter(Me,"container")}(V5);var Yu={},hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=Xe,r=Gt,n=Je,a=jt,i=_e,s=Xe,u=Sn;var c="hasShadow",d="shadowRGBA",f="patternImage",m="linearGradient",v="radialGradient";let y;function b(){return y||(y=r.Util.createCanvasElement().getContext("2d"),y)}t.shapes={};function S(A){const F=this.attrs.fillRule;F?A.fill(F):A.fill()}function E(A){A.stroke()}function x(A){A.fill()}function k(A){A.stroke()}function g(){this._clearCache(c)}function C(){this._clearCache(d)}function N(){this._clearCache(f)}function O(){this._clearCache(m)}function D(){this._clearCache(v)}class R extends a.Node{constructor(F){super(F);let U;for(;U=r.Util.getRandomColor(),!(U&&!(U in t.shapes)););this.colorKey=U,t.shapes[U]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(f,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var F=b();const U=F.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(U&&U.setTransform){const H=new r.Transform;H.translate(this.fillPatternX(),this.fillPatternY()),H.rotate(e.Konva.getAngle(this.fillPatternRotation())),H.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),H.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const q=H.getMatrix(),ne=typeof DOMMatrix>"u"?{a:q[0],b:q[1],c:q[2],d:q[3],e:q[4],f:q[5]}:new DOMMatrix(q);U.setTransform(ne)}return U}}_getLinearGradient(){return this._getCache(m,this.__getLinearGradient)}__getLinearGradient(){var F=this.fillLinearGradientColorStops();if(F){for(var U=b(),H=this.fillLinearGradientStartPoint(),q=this.fillLinearGradientEndPoint(),ne=U.createLinearGradient(H.x,H.y,q.x,q.y),ie=0;iethis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const F=this.hitStrokeWidth();return F==="auto"?this.hasStroke():this.strokeEnabled()&&!!F}intersects(F){var U=this.getStage();if(!U)return!1;const H=U.bufferHitCanvas;return H.getContext().clear(),this.drawHit(H,void 0,!0),H.context.getImageData(Math.round(F.x),Math.round(F.y),1,1).data[3]>0}destroy(){return a.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(F){var U;if(!(!((U=this.attrs.perfectDrawEnabled)!==null&&U!==void 0)||U))return!1;const H=F||this.hasFill(),q=this.hasStroke(),ne=this.getAbsoluteOpacity()!==1;if(H&&q&&ne)return!0;const ie=this.hasShadow(),se=this.shadowForStrokeEnabled();return!!(H&&q&&ie&&se)}setStrokeHitEnabled(F){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),F?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var F=this.size();return{x:this._centroid?-F.width/2:0,y:this._centroid?-F.height/2:0,width:F.width,height:F.height}}getClientRect(F={}){const U=F.skipTransform,H=F.relativeTo,q=this.getSelfRect(),ne=!F.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,ie=q.width+ne,se=q.height+ne,K=!F.skipShadow&&this.hasShadow(),z=K?this.shadowOffsetX():0,ee=K?this.shadowOffsetY():0,Q=ie+Math.abs(z),oe=se+Math.abs(ee),he=K&&this.shadowBlur()||0,Ce=Q+he*2,ge=oe+he*2,Me={width:Ce,height:ge,x:-(ne/2+he)+Math.min(z,0)+q.x,y:-(ne/2+he)+Math.min(ee,0)+q.y};return U?Me:this._transformedRect(Me,H)}drawScene(F,U,H){var q=this.getLayer(),ne=F||q.getCanvas(),ie=ne.getContext(),se=this._getCanvasCache(),K=this.getSceneFunc(),z=this.hasShadow(),ee,Q,oe=ne.isCache,he=U===this;if(!this.isVisible()&&!he)return this;if(se){ie.save();var Ce=this.getAbsoluteTransform(U).getMatrix();return ie.transform(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),this._drawCachedSceneCanvas(ie),ie.restore(),this}if(!K)return this;if(ie.save(),this._useBufferCanvas()&&!oe){ee=this.getStage();const Ne=H||ee.bufferCanvas;Q=Ne.getContext(),Q.clear(),Q.save(),Q._applyLineJoin(this);var ge=this.getAbsoluteTransform(U).getMatrix();Q.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),K.call(this,Q,this),Q.restore();var Me=Ne.pixelRatio;z&&ie._applyShadow(this),ie._applyOpacity(this),ie._applyGlobalCompositeOperation(this),ie.drawImage(Ne._canvas,0,0,Ne.width/Me,Ne.height/Me)}else{if(ie._applyLineJoin(this),!he){var ge=this.getAbsoluteTransform(U).getMatrix();ie.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),ie._applyOpacity(this),ie._applyGlobalCompositeOperation(this)}z&&ie._applyShadow(this),K.call(this,ie,this)}return ie.restore(),this}drawHit(F,U,H=!1){if(!this.shouldDrawHit(U,H))return this;var q=this.getLayer(),ne=F||q.hitCanvas,ie=ne&&ne.getContext(),se=this.hitFunc()||this.sceneFunc(),K=this._getCanvasCache(),z=K&&K.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),z){ie.save();var ee=this.getAbsoluteTransform(U).getMatrix();return ie.transform(ee[0],ee[1],ee[2],ee[3],ee[4],ee[5]),this._drawCachedHitCanvas(ie),ie.restore(),this}if(!se)return this;if(ie.save(),ie._applyLineJoin(this),this!==U){var Q=this.getAbsoluteTransform(U).getMatrix();ie.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5])}return se.call(this,ie,this),ie.restore(),this}drawHitFromCache(F=0){var U=this._getCanvasCache(),H=this._getCachedSceneCanvas(),q=U.hit,ne=q.getContext(),ie=q.getWidth(),se=q.getHeight(),K,z,ee,Q,oe,he;ne.clear(),ne.drawImage(H._canvas,0,0,ie,se);try{for(K=ne.getImageData(0,0,ie,se),z=K.data,ee=z.length,Q=r.Util._hexToRgb(this.colorKey),oe=0;oeF?(z[oe]=Q.r,z[oe+1]=Q.g,z[oe+2]=Q.b,z[oe+3]=255):z[oe+3]=0;ne.putImageData(K,0,0)}catch(Ce){r.Util.error("Unable to draw hit graph from cached scene canvas. "+Ce.message)}return this}hasPointerCapture(F){return u.hasPointerCapture(F,this)}setPointerCapture(F){u.setPointerCapture(F,this)}releaseCapture(F){u.releaseCapture(F,this)}}t.Shape=R,R.prototype._fillFunc=S,R.prototype._strokeFunc=E,R.prototype._fillFuncHit=x,R.prototype._strokeFuncHit=k,R.prototype._centroid=!1,R.prototype.nodeType="Shape",(0,s._registerNode)(R),R.prototype.eventListeners={},R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",C),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",N),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",O),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",D),n.Factory.addGetterSetter(R,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(R,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(R,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"lineJoin"),n.Factory.addGetterSetter(R,"lineCap"),n.Factory.addGetterSetter(R,"sceneFunc"),n.Factory.addGetterSetter(R,"hitFunc"),n.Factory.addGetterSetter(R,"dash"),n.Factory.addGetterSetter(R,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(R,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(R,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternImage"),n.Factory.addGetterSetter(R,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(R,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(R,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(R,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(R,"fillEnabled",!0),n.Factory.addGetterSetter(R,"strokeEnabled",!0),n.Factory.addGetterSetter(R,"shadowEnabled",!0),n.Factory.addGetterSetter(R,"dashEnabled",!0),n.Factory.addGetterSetter(R,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(R,"fillPriority","color"),n.Factory.addComponentsGetterSetter(R,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(R,"fillPatternRotation",0),n.Factory.addGetterSetter(R,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(R,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(hr),Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.Layer=void 0;const oi=Gt,yv=Do,nl=jt,bv=Je,q5=ia,KI=_e,YI=hr,QI=Xe;var ZI="#",XI="beforeDraw",JI="draw",H5=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],eN=H5.length;let al=class extends yv.Container{constructor(t){super(t),this.canvas=new q5.SceneCanvas,this.hitCanvas=new q5.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var e=1,r=!1;;){for(let n=0;n0)return{antialiased:!0};return{}}drawScene(t,e){var r=this.getLayer(),n=t||r&&r.getCanvas();return this._fire(XI,{node:this}),this.clearBeforeDraw()&&n.getContext().clear(),yv.Container.prototype.drawScene.call(this,n,e),this._fire(JI,{node:this}),this}drawHit(t,e){var r=this.getLayer(),n=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),yv.Container.prototype.drawHit.call(this,n,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){oi.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return oi.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return oi.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Yu.Layer=al,al.prototype.nodeType="Layer",(0,QI._registerNode)(al),bv.Factory.addGetterSetter(al,"imageSmoothingEnabled",!0),bv.Factory.addGetterSetter(al,"clearBeforeDraw",!0),bv.Factory.addGetterSetter(al,"hitGraphEnabled",!0,(0,KI.getBooleanValidator)());var of={};Object.defineProperty(of,"__esModule",{value:!0}),of.FastLayer=void 0;const tN=Gt,rN=Yu,nN=Xe;class wv extends rN.Layer{constructor(e){super(e),this.listening(!1),tN.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}of.FastLayer=wv,wv.prototype.nodeType="FastLayer",(0,nN._registerNode)(wv);var il={};Object.defineProperty(il,"__esModule",{value:!0}),il.Group=void 0;const aN=Gt,iN=Do,oN=Xe;class kv extends iN.Container{_validateAdd(e){var r=e.getType();r!=="Group"&&r!=="Shape"&&aN.Util.throw("You may only add groups and shapes to groups.")}}il.Group=kv,kv.prototype.nodeType="Group",(0,oN._registerNode)(kv);var ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.Animation=void 0;const xv=Xe,K5=Gt,Sv=function(){return xv.glob.performance&&xv.glob.performance.now?function(){return xv.glob.performance.now()}:function(){return new Date().getTime()}}();class Ma{constructor(e,r){this.id=Ma.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Sv(),frameRate:0},this.func=e,this.setLayers(r)}setLayers(e){let r=[];return e&&(r=Array.isArray(e)?e:[e]),this.layers=r,this}getLayers(){return this.layers}addLayer(e){const r=this.layers,n=r.length;for(let a=0;athis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():b<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=b,this.update())}getTime(){return this._time}setPosition(b){this.prevPos=this._pos,this.propFunc(b),this._pos=b}getPosition(b){return b===void 0&&(b=this._time),this.func(b,this.begin,this._change,this.duration)}play(){this.state=u,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(b){this.pause(),this._time=b,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var b=this.getTimer()-this._startTime;this.state===u?this.setTime(b):this.state===c&&this.setTime(this.duration-b)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class v{constructor(b){var S=this,E=b.node,x=E._id,k,g=b.easing||t.Easings.Linear,C=!!b.yoyo,N;typeof b.duration>"u"?k=.3:b.duration===0?k=.001:k=b.duration,this.node=E,this._id=d++;var O=E.getLayer()||(E instanceof a.Konva.Stage?E.getLayers():null);O||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){S.tween.onEnterFrame()},O),this.tween=new m(N,function(D){S._tweenFunc(D)},g,0,1,k*1e3,C),this._addListeners(),v.attrs[x]||(v.attrs[x]={}),v.attrs[x][this._id]||(v.attrs[x][this._id]={}),v.tweens[x]||(v.tweens[x]={});for(N in b)i[N]===void 0&&this._addAttr(N,b[N]);this.reset(),this.onFinish=b.onFinish,this.onReset=b.onReset,this.onUpdate=b.onUpdate}_addAttr(b,S){var E=this.node,x=E._id,k,g,C,N,O,D,R,A;if(C=v.tweens[x][b],C&&delete v.attrs[x][C][b],k=E.getAttr(b),e.Util._isArray(S))if(g=[],O=Math.max(S.length,k.length),b==="points"&&S.length!==k.length&&(S.length>k.length?(R=k,k=e.Util._prepareArrayForTween(k,S,E.closed())):(D=S,S=e.Util._prepareArrayForTween(S,k,E.closed()))),b.indexOf("fill")===0)for(N=0;N{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var b=this.node,S=v.attrs[b._id][this._id];S.points&&S.points.trueEnd&&b.setAttr("points",S.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var b=this.node,S=v.attrs[b._id][this._id];S.points&&S.points.trueStart&&b.points(S.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(b){return this.tween.seek(b*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var b=this.node._id,S=this._id,E=v.tweens[b],x;this.pause();for(x in E)delete v.tweens[b][x];delete v.attrs[b][S]}}t.Tween=v,v.attrs={},v.tweens={},n.Node.prototype.to=function(y){var b=y.onFinish;y.node=this,y.onFinish=function(){this.destroy(),b&&b()};var S=new v(y);S.play()},t.Easings={BackEaseIn(y,b,S,E){var x=1.70158;return S*(y/=E)*y*((x+1)*y-x)+b},BackEaseOut(y,b,S,E){var x=1.70158;return S*((y=y/E-1)*y*((x+1)*y+x)+1)+b},BackEaseInOut(y,b,S,E){var x=1.70158;return(y/=E/2)<1?S/2*(y*y*(((x*=1.525)+1)*y-x))+b:S/2*((y-=2)*y*(((x*=1.525)+1)*y+x)+2)+b},ElasticEaseIn(y,b,S,E,x,k){var g=0;return y===0?b:(y/=E)===1?b+S:(k||(k=E*.3),!x||x0?e:r),f=s*r,m=u*(u>0?e:r),v=c*(c>0?r:e);return{x:d,y:n?-1*v:m,width:f-d,height:v-m}}}sf.Arc=si,si.prototype._centroid=!0,si.prototype.className="Arc",si.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,lN._registerNode)(si),lf.Factory.addGetterSetter(si,"innerRadius",0,(0,uf.getNumberValidator)()),lf.Factory.addGetterSetter(si,"outerRadius",0,(0,uf.getNumberValidator)()),lf.Factory.addGetterSetter(si,"angle",0,(0,uf.getNumberValidator)()),lf.Factory.addGetterSetter(si,"clockwise",!1,(0,uf.getBooleanValidator)());var cf={},Qu={};Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.Line=void 0;const df=Je,uN=hr,Z5=_e,cN=Xe;function Cv(t,e,r,n,a,i,s){var u=Math.sqrt(Math.pow(r-t,2)+Math.pow(n-e,2)),c=Math.sqrt(Math.pow(a-r,2)+Math.pow(i-n,2)),d=s*u/(u+c),f=s*c/(u+c),m=r-d*(a-t),v=n-d*(i-e),y=r+f*(a-t),b=n+f*(i-e);return[m,v,y,b]}function X5(t,e){var r=t.length,n=[],a,i;for(a=2;a4){for(u=this.getTensionPoints(),c=u.length,d=i?0:4,i||e.quadraticCurveTo(u[0],u[1],u[2],u[3]);d{let d,f,m;d=c/2,f=0;for(let v=0;v<20;v++)m=d*t.tValues[20][v]+d,f+=t.cValues[20][v]*n(s,u,m);return d*f};t.getCubicArcLength=e;const r=(s,u,c)=>{c===void 0&&(c=1);const d=s[0]-2*s[1]+s[2],f=u[0]-2*u[1]+u[2],m=2*s[1]-2*s[0],v=2*u[1]-2*u[0],y=4*(d*d+f*f),b=4*(d*m+f*v),S=m*m+v*v;if(y===0)return c*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(u[2]-u[0],2));const E=b/(2*y),x=S/y,k=c+E,g=x-E*E,C=k*k+g>0?Math.sqrt(k*k+g):0,N=E*E+g>0?Math.sqrt(E*E+g):0,O=E+Math.sqrt(E*E+g)!==0?g*Math.log(Math.abs((k+C)/(E+N))):0;return Math.sqrt(y)/2*(k*C-E*N+O)};t.getQuadraticArcLength=r;function n(s,u,c){const d=a(1,c,s),f=a(1,c,u),m=d*d+f*f;return Math.sqrt(m)}const a=(s,u,c)=>{const d=c.length-1;let f,m;if(d===0)return 0;if(s===0){m=0;for(let v=0;v<=d;v++)m+=t.binomialCoefficients[d][v]*Math.pow(1-u,d-v)*Math.pow(u,v)*c[v];return m}else{f=new Array(d);for(let v=0;v{let d=1,f=s/u,m=(s-c(f))/u,v=0;for(;d>.001;){const y=c(f+m),b=Math.abs(s-y)/u;if(b500)break}return f};t.t2length=i})(J5),Object.defineProperty(sl,"__esModule",{value:!0}),sl.Path=void 0;const dN=Je,hN=hr,fN=Xe,ll=J5;class gr extends hN.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=gr.parsePathData(this.data()),this.pathLength=gr.getPathLength(this.dataArray)}_sceneFunc(e){var r=this.dataArray;e.beginPath();for(var n=!1,a=0;af?d:f,E=d>f?1:d/f,x=d>f?f/d:1;e.translate(u,c),e.rotate(y),e.scale(E,x),e.arc(0,0,S,m,m+v,1-b),e.scale(1/E,1/x),e.rotate(-y),e.translate(-u,-c);break;case"z":n=!0,e.closePath();break}}!n&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){var e=[];this.dataArray.forEach(function(d){if(d.command==="A"){var f=d.points[4],m=d.points[5],v=d.points[4]+m,y=Math.PI/180;if(Math.abs(f-v)v;b-=y){const S=gr.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],b,0);e.push(S.x,S.y)}else for(let b=f+y;br[a].pathLength;)e-=r[a].pathLength,++a;if(a===i)return n=r[a-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=r[a].points.slice(0,2),{x:n[0],y:n[1]};var s=r[a],u=s.points;switch(s.command){case"L":return gr.getPointOnLine(e,s.start.x,s.start.y,u[0],u[1]);case"C":return gr.getPointOnCubicBezier((0,ll.t2length)(e,gr.getPathLength(r),S=>(0,ll.getCubicArcLength)([s.start.x,u[0],u[2],u[4]],[s.start.y,u[1],u[3],u[5]],S)),s.start.x,s.start.y,u[0],u[1],u[2],u[3],u[4],u[5]);case"Q":return gr.getPointOnQuadraticBezier((0,ll.t2length)(e,gr.getPathLength(r),S=>(0,ll.getQuadraticArcLength)([s.start.x,u[0],u[2]],[s.start.y,u[1],u[3]],S)),s.start.x,s.start.y,u[0],u[1],u[2],u[3]);case"A":var c=u[0],d=u[1],f=u[2],m=u[3],v=u[4],y=u[5],b=u[6];return v+=y*e/s.pathLength,gr.getPointOnEllipticalArc(c,d,f,m,v,b)}return null}static getPointOnLine(e,r,n,a,i,s,u){s===void 0&&(s=r),u===void 0&&(u=n);var c=(i-n)/(a-r+1e-8),d=Math.sqrt(e*e/(1+c*c));a0&&!isNaN(b[0]);){var k="",g=[],C=c,N=d,O,D,R,A,F,U,H,q,ne,ie;switch(y){case"l":c+=b.shift(),d+=b.shift(),k="L",g.push(c,d);break;case"L":c=b.shift(),d=b.shift(),g.push(c,d);break;case"m":var se=b.shift(),K=b.shift();if(c+=se,d+=K,k="M",s.length>2&&s[s.length-1].command==="z"){for(var z=s.length-2;z>=0;z--)if(s[z].command==="M"){c=s[z].points[0]+se,d=s[z].points[1]+K;break}}g.push(c,d),y="l";break;case"M":c=b.shift(),d=b.shift(),k="M",g.push(c,d),y="L";break;case"h":c+=b.shift(),k="L",g.push(c,d);break;case"H":c=b.shift(),k="L",g.push(c,d);break;case"v":d+=b.shift(),k="L",g.push(c,d);break;case"V":d=b.shift(),k="L",g.push(c,d);break;case"C":g.push(b.shift(),b.shift(),b.shift(),b.shift()),c=b.shift(),d=b.shift(),g.push(c,d);break;case"c":g.push(c+b.shift(),d+b.shift(),c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),k="C",g.push(c,d);break;case"S":D=c,R=d,O=s[s.length-1],O.command==="C"&&(D=c+(c-O.points[2]),R=d+(d-O.points[3])),g.push(D,R,b.shift(),b.shift()),c=b.shift(),d=b.shift(),k="C",g.push(c,d);break;case"s":D=c,R=d,O=s[s.length-1],O.command==="C"&&(D=c+(c-O.points[2]),R=d+(d-O.points[3])),g.push(D,R,c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),k="C",g.push(c,d);break;case"Q":g.push(b.shift(),b.shift()),c=b.shift(),d=b.shift(),g.push(c,d);break;case"q":g.push(c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),k="Q",g.push(c,d);break;case"T":D=c,R=d,O=s[s.length-1],O.command==="Q"&&(D=c+(c-O.points[0]),R=d+(d-O.points[1])),c=b.shift(),d=b.shift(),k="Q",g.push(D,R,c,d);break;case"t":D=c,R=d,O=s[s.length-1],O.command==="Q"&&(D=c+(c-O.points[0]),R=d+(d-O.points[1])),c+=b.shift(),d+=b.shift(),k="Q",g.push(D,R,c,d);break;case"A":A=b.shift(),F=b.shift(),U=b.shift(),H=b.shift(),q=b.shift(),ne=c,ie=d,c=b.shift(),d=b.shift(),k="A",g=this.convertEndpointToCenterParameterization(ne,ie,c,d,H,q,A,F,U);break;case"a":A=b.shift(),F=b.shift(),U=b.shift(),H=b.shift(),q=b.shift(),ne=c,ie=d,c+=b.shift(),d+=b.shift(),k="A",g=this.convertEndpointToCenterParameterization(ne,ie,c,d,H,q,A,F,U);break}s.push({command:k||y,points:g,start:{x:C,y:N},pathLength:this.calcLength(C,N,k||y,g)})}(y==="z"||y==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(e,r,n,a){var i,s,u,c,d=gr;switch(n){case"L":return d.getLineLength(e,r,a[0],a[1]);case"C":return(0,ll.getCubicArcLength)([e,a[0],a[2],a[4]],[r,a[1],a[3],a[5]],1);case"Q":return(0,ll.getQuadraticArcLength)([e,a[0],a[2]],[r,a[1],a[3]],1);case"A":i=0;var f=a[4],m=a[5],v=a[4]+m,y=Math.PI/180;if(Math.abs(f-v)v;c-=y)u=d.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],c,0),i+=d.getLineLength(s.x,s.y,u.x,u.y),s=u;else for(c=f+y;c1&&(u*=Math.sqrt(y),c*=Math.sqrt(y));var b=Math.sqrt((u*u*(c*c)-u*u*(v*v)-c*c*(m*m))/(u*u*(v*v)+c*c*(m*m)));i===s&&(b*=-1),isNaN(b)&&(b=0);var S=b*u*v/c,E=b*-c*m/u,x=(e+n)/2+Math.cos(f)*S-Math.sin(f)*E,k=(r+a)/2+Math.sin(f)*S+Math.cos(f)*E,g=function(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1])},C=function(F,U){return(F[0]*U[0]+F[1]*U[1])/(g(F)*g(U))},N=function(F,U){return(F[0]*U[1]=1&&(A=0),s===0&&A>0&&(A=A-2*Math.PI),s===1&&A<0&&(A=A+2*Math.PI),[x,k,u,c,O,A,f,s]}}sl.Path=gr,gr.prototype.className="Path",gr.prototype._attrsAffectingSize=["data"],(0,fN._registerNode)(gr),dN.Factory.addGetterSetter(gr,"data"),Object.defineProperty(cf,"__esModule",{value:!0}),cf.Arrow=void 0;const hf=Je,pN=Qu,e3=_e,gN=Xe,t3=sl;class Bo extends pN.Line{_sceneFunc(e){super._sceneFunc(e);var r=Math.PI*2,n=this.points(),a=n,i=this.tension()!==0&&n.length>4;i&&(a=this.getTensionPoints());var s=this.pointerLength(),u=n.length,c,d;if(i){const v=[a[a.length-4],a[a.length-3],a[a.length-2],a[a.length-1],n[u-2],n[u-1]],y=t3.Path.calcLength(a[a.length-4],a[a.length-3],"C",v),b=t3.Path.getPointOnQuadraticBezier(Math.min(1,1-s/y),v[0],v[1],v[2],v[3],v[4],v[5]);c=n[u-2]-b.x,d=n[u-1]-b.y}else c=n[u-2]-n[u-4],d=n[u-1]-n[u-3];var f=(Math.atan2(d,c)+r)%r,m=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[u-2],n[u-1]),e.rotate(f),e.moveTo(0,0),e.lineTo(-s,m/2),e.lineTo(-s,-m/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(c=(a[0]+a[2])/2-n[0],d=(a[1]+a[3])/2-n[1]):(c=n[2]-n[0],d=n[3]-n[1]),e.rotate((Math.atan2(-d,-c)+r)%r),e.moveTo(0,0),e.lineTo(-s,m/2),e.lineTo(-s,-m/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),r=this.pointerWidth()/2;return{x:e.x-r,y:e.y-r,width:e.width+r*2,height:e.height+r*2}}}cf.Arrow=Bo,Bo.prototype.className="Arrow",(0,gN._registerNode)(Bo),hf.Factory.addGetterSetter(Bo,"pointerLength",10,(0,e3.getNumberValidator)()),hf.Factory.addGetterSetter(Bo,"pointerWidth",10,(0,e3.getNumberValidator)()),hf.Factory.addGetterSetter(Bo,"pointerAtBeginning",!1),hf.Factory.addGetterSetter(Bo,"pointerAtEnding",!0);var ff={};Object.defineProperty(ff,"__esModule",{value:!0}),ff.Circle=void 0;const mN=Je,vN=hr,yN=_e,bN=Xe;class ul extends vN.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}ff.Circle=ul,ul.prototype._centroid=!0,ul.prototype.className="Circle",ul.prototype._attrsAffectingSize=["radius"],(0,bN._registerNode)(ul),mN.Factory.addGetterSetter(ul,"radius",0,(0,yN.getNumberValidator)());var pf={};Object.defineProperty(pf,"__esModule",{value:!0}),pf.Ellipse=void 0;const _v=Je,wN=hr,r3=_e,kN=Xe;class Yi extends wN.Shape{_sceneFunc(e){var r=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),r!==n&&e.scale(1,n/r),e.arc(0,0,r,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}pf.Ellipse=Yi,Yi.prototype.className="Ellipse",Yi.prototype._centroid=!0,Yi.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,kN._registerNode)(Yi),_v.Factory.addComponentsGetterSetter(Yi,"radius",["x","y"]),_v.Factory.addGetterSetter(Yi,"radiusX",0,(0,r3.getNumberValidator)()),_v.Factory.addGetterSetter(Yi,"radiusY",0,(0,r3.getNumberValidator)());var gf={};Object.defineProperty(gf,"__esModule",{value:!0}),gf.Image=void 0;const Ev=Gt,Uo=Je,xN=hr,SN=Xe,Zu=_e;let Ca=class D6 extends xN.Shape{constructor(e){super(e),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){const r=this.getWidth(),n=this.getHeight(),a=this.cornerRadius(),i=this.attrs.image;let s;if(i){const u=this.attrs.cropWidth,c=this.attrs.cropHeight;u&&c?s=[i,this.cropX(),this.cropY(),u,c,0,0,r,n]:s=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||a)&&(e.beginPath(),a?Ev.Util.drawRoundedRectPath(e,r,n,a):e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)),i&&(a&&e.clip(),e.drawImage.apply(e,s))}_hitFunc(e){var r=this.width(),n=this.height(),a=this.cornerRadius();e.beginPath(),a?Ev.Util.drawRoundedRectPath(e,r,n,a):e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,r;return(e=this.attrs.width)!==null&&e!==void 0?e:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var e,r;return(e=this.attrs.height)!==null&&e!==void 0?e:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(e,r,n=null){var a=Ev.Util.createImageElement();a.onload=function(){var i=new D6({image:a});r(i)},a.onerror=n,a.crossOrigin="Anonymous",a.src=e}};gf.Image=Ca,Ca.prototype.className="Image",(0,SN._registerNode)(Ca),Uo.Factory.addGetterSetter(Ca,"cornerRadius",0,(0,Zu.getNumberOrArrayOfNumbersValidator)(4)),Uo.Factory.addGetterSetter(Ca,"image"),Uo.Factory.addComponentsGetterSetter(Ca,"crop",["x","y","width","height"]),Uo.Factory.addGetterSetter(Ca,"cropX",0,(0,Zu.getNumberValidator)()),Uo.Factory.addGetterSetter(Ca,"cropY",0,(0,Zu.getNumberValidator)()),Uo.Factory.addGetterSetter(Ca,"cropWidth",0,(0,Zu.getNumberValidator)()),Uo.Factory.addGetterSetter(Ca,"cropHeight",0,(0,Zu.getNumberValidator)());var cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.Tag=cl.Label=void 0;const mf=Je,CN=hr,_N=il,Pv=_e,n3=Xe;var a3=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],EN="Change.konva",PN="none",Mv="up",Iv="right",Nv="down",Ov="left",MN=a3.length;class Rv extends _N.Group{constructor(e){super(e),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var r=this,n,a=function(){r._sync()};for(n=0;n{r=Math.min(r,s.x),n=Math.max(n,s.x),a=Math.min(a,s.y),i=Math.max(i,s.y)}),{x:r,y:a,width:n-r,height:i-a}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}yf.RegularPolygon=Vo,Vo.prototype.className="RegularPolygon",Vo.prototype._centroid=!0,Vo.prototype._attrsAffectingSize=["radius"],(0,FN._registerNode)(Vo),i3.Factory.addGetterSetter(Vo,"radius",0,(0,o3.getNumberValidator)()),i3.Factory.addGetterSetter(Vo,"sides",0,(0,o3.getNumberValidator)());var bf={};Object.defineProperty(bf,"__esModule",{value:!0}),bf.Ring=void 0;const s3=Je,jN=hr,l3=_e,AN=Xe;var u3=Math.PI*2;class Go extends jN.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,u3,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),u3,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}bf.Ring=Go,Go.prototype.className="Ring",Go.prototype._centroid=!0,Go.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,AN._registerNode)(Go),s3.Factory.addGetterSetter(Go,"innerRadius",0,(0,l3.getNumberValidator)()),s3.Factory.addGetterSetter(Go,"outerRadius",0,(0,l3.getNumberValidator)());var wf={};Object.defineProperty(wf,"__esModule",{value:!0}),wf.Sprite=void 0;const Wo=Je,DN=hr,zN=ol,c3=_e,BN=Xe;class _a extends DN.Shape{constructor(e){super(e),this._updated=!0,this.anim=new zN.Animation(()=>{var r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){var r=this.animation(),n=this.frameIndex(),a=n*4,i=this.animations()[r],s=this.frameOffsets(),u=i[a+0],c=i[a+1],d=i[a+2],f=i[a+3],m=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,d,f),e.closePath(),e.fillStrokeShape(this)),m)if(s){var v=s[r],y=n*2;e.drawImage(m,u,c,d,f,v[y+0],v[y+1],d,f)}else e.drawImage(m,u,c,d,f,0,0,d,f)}_hitFunc(e){var r=this.animation(),n=this.frameIndex(),a=n*4,i=this.animations()[r],s=this.frameOffsets(),u=i[a+2],c=i[a+3];if(e.beginPath(),s){var d=s[r],f=n*2;e.rect(d[f+0],d[f+1],u,c)}else e.rect(0,0,u,c);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),r=this.animation(),n=this.animations(),a=n[r],i=a.length/4;e{e=e.trim();const r=e.indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return r&&!n&&(e=`"${e}"`),e}).join(", ")}var Av;function Dv(){return Av||(Av=Fv.Util.createCanvasElement().getContext(HN),Av)}function aO(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function iO(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function oO(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}class Xt extends VN.Shape{constructor(e){super(oO(e)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r1&&(k+=s)}}}_hitFunc(e){var r=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var r=Fv.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(KN,r),this}getWidth(){var e=this.attrs.width===dl||this.attrs.width===void 0;return e?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var e=this.attrs.height===dl||this.attrs.height===void 0;return e?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Fv.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var r=Dv(),n=this.fontSize(),a;return r.save(),r.font=this._getContextFont(),a=r.measureText(e),r.restore(),{width:a.width,height:n}}_getContextFont(){return this.fontStyle()+xf+this.fontVariant()+xf+(this.fontSize()+XN)+nO(this.fontFamily())}_addTextLine(e){this.align()===Ju&&(e=e.trim());var r=this._getTextWidth(e);return this.textArr.push({text:e,width:r,lastInParagraph:!1})}_getTextWidth(e){var r=this.letterSpacing(),n=e.length;return Dv().measureText(e).width+(n?r*(n-1):0)}_setTextData(){var e=this.text().split(` -`),r=+this.fontSize(),n=0,a=this.lineHeight()*r,i=this.attrs.width,s=this.attrs.height,u=i!==dl&&i!==void 0,c=s!==dl&&s!==void 0,d=this.padding(),f=i-d*2,m=s-d*2,v=0,y=this.wrap(),b=y!==y3,S=y!==tO&&b,E=this.ellipsis();this.textArr=[],Dv().font=this._getContextFont();for(var x=E?this._getTextWidth(jv):0,k=0,g=e.length;kf)for(;C.length>0;){for(var O=0,D=C.length,R="",A=0;O>>1,U=C.slice(0,F+1),H=this._getTextWidth(U)+x;H<=f?(O=F+1,R=U,A=H):D=F}if(R){if(S){var q,ne=C[R.length],ie=ne===xf||ne===f3;ie&&A<=f?q=R.length:q=Math.max(R.lastIndexOf(xf),R.lastIndexOf(f3))+1,q>0&&(O=q,R=R.slice(0,O),A=this._getTextWidth(R))}R=R.trimRight(),this._addTextLine(R),n=Math.max(n,A),v+=a;var se=this._shouldHandleEllipsis(v);if(se){this._tryToAddEllipsisToLastLine();break}if(C=C.slice(O),C=C.trimLeft(),C.length>0&&(N=this._getTextWidth(C),N<=f)){this._addTextLine(C),v+=a,n=Math.max(n,N);break}}else break}else this._addTextLine(C),v+=a,n=Math.max(n,N),this._shouldHandleEllipsis(v)&&km)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(e){var r=+this.fontSize(),n=this.lineHeight()*r,a=this.attrs.height,i=a!==dl&&a!==void 0,s=this.padding(),u=a-s*2,c=this.wrap(),d=c!==y3;return!d||i&&e+n>u}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,r=e!==dl&&e!==void 0,n=this.padding(),a=e-n*2,i=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!i)){if(r){var u=this._getTextWidth(s.text+jv)r?null:ec.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=ec.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var r=this.textDecoration(),n=this.fill(),a=this.fontSize(),i=this.glyphInfo;r==="underline"&&e.beginPath();for(var s=0;s=1){var n=r[0].p0;e.moveTo(n.x,n.y)}for(var a=0;at+`.${E3}`).join(" "),P3="nodesRect",pO=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],gO={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const mO="ontouchstart"in sa.Konva._global;function vO(t,e,r){if(t==="rotater")return r;e+=kt.Util.degToRad(gO[t]||0);var n=(kt.Util.radToDeg(e)%360+360)%360;return kt.Util._inRange(n,315+22.5,360)||kt.Util._inRange(n,0,22.5)?"ns-resize":kt.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":kt.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":kt.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":kt.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":kt.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":kt.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":kt.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(kt.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var _f=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],M3=1e8;function yO(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function I3(t,e,r){const n=r.x+(t.x-r.x)*Math.cos(e)-(t.y-r.y)*Math.sin(e),a=r.y+(t.x-r.x)*Math.sin(e)+(t.y-r.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:n,y:a}}function bO(t,e){const r=yO(t);return I3(t,e,r)}function wO(t,e,r){let n=e;for(let a=0;an.isAncestorOf(this)?(kt.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=e,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(n=>{const a=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},i=n._attrsAffectingSize.map(s=>s+"Change."+this._getEventNamespace()).join(" ");n.on(i,a),n.on(pO.map(s=>s+`.${this._getEventNamespace()}`).join(" "),a),n.on(`absoluteTransformChange.${this._getEventNamespace()}`,a),this._proxyDrag(n)}),this._resetTransformCache();var r=!!this.findOne(".top-left");return r&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,r=>{e=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!e)return;const n=t.getAbsolutePosition(),a=n.x-e.x,i=n.y-e.y;this.nodes().forEach(s=>{if(s===t||s.isDragging())return;const u=s.getAbsolutePosition();s.setAbsolutePosition({x:u.x+a,y:u.y+i}),s.startDrag(r)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(P3),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(P3,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),r){var n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=t.getAbsoluteScale(r),i=t.getAbsolutePosition(r),s=n.x*a.x-t.offsetX()*a.x,u=n.y*a.y-t.offsetY()*a.y;const c=(sa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),d={x:i.x+s*Math.cos(c)+u*Math.sin(-c),y:i.y+u*Math.cos(c)+s*Math.sin(c),width:n.width*a.x,height:n.height*a.y,rotation:c};return I3(d,-sa.Konva.getAngle(e),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-M3,y:-M3,width:0,height:0,rotation:0};const e=[];this.nodes().map(c=>{const d=c.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var f=[{x:d.x,y:d.y},{x:d.x+d.width,y:d.y},{x:d.x+d.width,y:d.y+d.height},{x:d.x,y:d.y+d.height}],m=c.getAbsoluteTransform();f.forEach(function(v){var y=m.point(v);e.push(y)})});const r=new kt.Transform;r.rotate(-sa.Konva.getAngle(this.rotation()));var n=1/0,a=1/0,i=-1/0,s=-1/0;e.forEach(function(c){var d=r.point(c);n===void 0&&(n=i=d.x,a=s=d.y),n=Math.min(n,d.x),a=Math.min(a,d.y),i=Math.max(i,d.x),s=Math.max(s,d.y)}),r.invert();const u=r.point({x:n,y:a});return{x:u.x,y:u.y,width:i-n,height:s-a,rotation:sa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),_f.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var e=new dO.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:mO?10:"auto"}),r=this;e.on("mousedown touchstart",function(n){r._handleMouseDown(n)}),e.on("dragstart",n=>{e.stopDrag(),n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),e.on("mouseenter",()=>{var n=sa.Konva.getAngle(this.rotation()),a=this.rotateAnchorCursor(),i=vO(t,n,a);e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){var t=new cO.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,r){var n=r.getParent(),a=n.padding();e.beginPath(),e.rect(-a,-a,r.width()+a*2,r.height()+a*2),e.moveTo(r.width()/2,-a),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(r.width()/2,-n.rotateAnchorOffset()*kt.Util._sign(r.height())-a),e.fillStrokeShape(r)},hitFunc:(e,r)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,r.width()+n*2,r.height()+n*2),e.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",e=>{e.cancelBubble=!0}),t.on("dragmove",e=>{e.cancelBubble=!0}),t.on("dragend",e=>{e.cancelBubble=!0}),this.on("dragmove",e=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),r=e.width,n=e.height,a=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));this.sin=Math.abs(n/a),this.cos=Math.abs(r/a),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var i=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-i.x,y:s.y-i.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(u=>{u._fire("transformstart",{evt:t.evt,target:u})})}_handleMouseMove(t){var e,r,n,a=this.findOne("."+this._movingAnchorName),i=a.getStage();i.setPointersPositions(t);const s=i.getPointerPosition();let u={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const c=a.getAbsolutePosition();this.anchorDragBoundFunc()&&(u=this.anchorDragBoundFunc()(c,u,t)),a.setAbsolutePosition(u);const d=a.getAbsolutePosition();if(!(c.x===d.x&&c.y===d.y)){if(this._movingAnchorName==="rotater"){var f=this._getNodeRect();e=a.x()-f.width/2,r=-a.y()+f.height/2;let H=Math.atan2(-r,e)+Math.PI/2;f.height<0&&(H-=Math.PI);var m=sa.Konva.getAngle(this.rotation());const q=m+H,ne=sa.Konva.getAngle(this.rotationSnapTolerance()),ie=wO(this.rotationSnaps(),q,ne)-f.rotation,se=bO(f,ie);this._fitNodesInto(se,t);return}var v=this.shiftBehavior(),y;v==="inverted"?y=this.keepRatio()&&!t.shiftKey:v==="none"?y=this.keepRatio():y=this.keepRatio()||t.shiftKey;var k=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(y){var b=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(b.x-a.x(),2)+Math.pow(b.y-a.y(),2));var S=this.findOne(".top-left").x()>b.x?-1:1,E=this.findOne(".top-left").y()>b.y?-1:1;e=n*this.cos*S,r=n*this.sin*E,this.findOne(".top-left").x(b.x-e),this.findOne(".top-left").y(b.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(a.y());else if(this._movingAnchorName==="top-right"){if(y){var b=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};n=Math.sqrt(Math.pow(a.x()-b.x,2)+Math.pow(b.y-a.y(),2));var S=this.findOne(".top-right").x()b.y?-1:1;e=n*this.cos*S,r=n*this.sin*E,this.findOne(".top-right").x(b.x+e),this.findOne(".top-right").y(b.y-r)}var x=a.position();this.findOne(".top-left").y(x.y),this.findOne(".bottom-right").x(x.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(a.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(a.x());else if(this._movingAnchorName==="bottom-left"){if(y){var b=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};n=Math.sqrt(Math.pow(b.x-a.x(),2)+Math.pow(a.y()-b.y,2));var S=b.x{r._fire("transformend",{evt:t,target:r})}),this._movingAnchorName=null}}_fitNodesInto(t,e){var r=this._getNodeRect();const n=1;if(kt.Util._inRange(t.width,-this.padding()*2-n,n)){this.update();return}if(kt.Util._inRange(t.height,-this.padding()*2-n,n)){this.update();return}var a=new kt.Transform;if(a.rotate(sa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const m=a.point({x:-this.padding()*2,y:0});t.x+=m.x,t.y+=m.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const m=a.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const m=a.point({x:0,y:-this.padding()*2});t.x+=m.x,t.y+=m.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const m=a.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const m=this.boundBoxFunc()(r,t);m?t=m:kt.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const i=1e7,s=new kt.Transform;s.translate(r.x,r.y),s.rotate(r.rotation),s.scale(r.width/i,r.height/i);const u=new kt.Transform,c=t.width/i,d=t.height/i;this.flipEnabled()===!1?(u.translate(t.x,t.y),u.rotate(t.rotation),u.translate(t.width<0?t.width:0,t.height<0?t.height:0),u.scale(Math.abs(c),Math.abs(d))):(u.translate(t.x,t.y),u.rotate(t.rotation),u.scale(c,d));const f=u.multiply(s.invert());this._nodes.forEach(m=>{var v;const y=m.getParent().getAbsoluteTransform(),b=m.getTransform().copy();b.translate(m.offsetX(),m.offsetY());const S=new kt.Transform;S.multiply(y.copy().invert()).multiply(f).multiply(y).multiply(b);const E=S.decompose();m.setAttrs(E),this._fire("transform",{evt:e,target:m}),m._fire("transform",{evt:e,target:m}),(v=m.getLayer())===null||v===void 0||v.batchDraw()}),this.rotation(kt.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(kt.Util._getRotation(e.rotation));var r=e.width,n=e.height,a=this.enabledAnchors(),i=this.resizeEnabled(),s=this.padding(),u=this.anchorSize();const c=this.find("._anchor");c.forEach(f=>{f.setAttrs({width:u,height:u,offsetX:u/2,offsetY:u/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:u/2+s,offsetY:u/2+s,visible:i&&a.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:u/2+s,visible:i&&a.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:u/2-s,offsetY:u/2+s,visible:i&&a.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:u/2+s,visible:i&&a.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:n/2,offsetX:u/2-s,visible:i&&a.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:u/2+s,offsetY:u/2-s,visible:i&&a.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:n,offsetY:u/2-s,visible:i&&a.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:n,offsetX:u/2-s,offsetY:u/2-s,visible:i&&a.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*kt.Util._sign(n)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const d=this.anchorStyleFunc();d&&c.forEach(f=>{d(f)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),_3.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return C3.Node.prototype.toObject.call(this)}clone(t){var e=C3.Node.prototype.clone.call(this,t);return e}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};Cf.Transformer=st;function kO(t){return t instanceof Array||kt.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){_f.indexOf(e)===-1&&kt.Util.warn("Unknown anchor name: "+e+". Available names are: "+_f.join(", "))}),t||[]}st.prototype.className="Transformer",(0,hO._registerNode)(st),mt.Factory.addGetterSetter(st,"enabledAnchors",_f,kO),mt.Factory.addGetterSetter(st,"flipEnabled",!0,(0,Xi.getBooleanValidator)()),mt.Factory.addGetterSetter(st,"resizeEnabled",!0),mt.Factory.addGetterSetter(st,"anchorSize",10,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"rotateEnabled",!0),mt.Factory.addGetterSetter(st,"rotateLineVisible",!0),mt.Factory.addGetterSetter(st,"rotationSnaps",[]),mt.Factory.addGetterSetter(st,"rotateAnchorOffset",50,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"rotateAnchorCursor","crosshair"),mt.Factory.addGetterSetter(st,"rotationSnapTolerance",5,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"borderEnabled",!0),mt.Factory.addGetterSetter(st,"anchorStroke","rgb(0, 161, 255)"),mt.Factory.addGetterSetter(st,"anchorStrokeWidth",1,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"anchorFill","white"),mt.Factory.addGetterSetter(st,"anchorCornerRadius",0,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"borderStroke","rgb(0, 161, 255)"),mt.Factory.addGetterSetter(st,"borderStrokeWidth",1,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"borderDash"),mt.Factory.addGetterSetter(st,"keepRatio",!0),mt.Factory.addGetterSetter(st,"shiftBehavior","default"),mt.Factory.addGetterSetter(st,"centeredScaling",!1),mt.Factory.addGetterSetter(st,"ignoreStroke",!1),mt.Factory.addGetterSetter(st,"padding",0,(0,Xi.getNumberValidator)()),mt.Factory.addGetterSetter(st,"node"),mt.Factory.addGetterSetter(st,"nodes"),mt.Factory.addGetterSetter(st,"boundBoxFunc"),mt.Factory.addGetterSetter(st,"anchorDragBoundFunc"),mt.Factory.addGetterSetter(st,"anchorStyleFunc"),mt.Factory.addGetterSetter(st,"shouldOverdrawWholeArea",!1),mt.Factory.addGetterSetter(st,"useSingleNodeRotation",!0),mt.Factory.backCompat(st,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.Wedge=void 0;const Pf=Je,xO=hr,SO=Xe,N3=_e,CO=Xe;class li extends xO.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,SO.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}Ef.Wedge=li,li.prototype.className="Wedge",li.prototype._centroid=!0,li.prototype._attrsAffectingSize=["radius"],(0,CO._registerNode)(li),Pf.Factory.addGetterSetter(li,"radius",0,(0,N3.getNumberValidator)()),Pf.Factory.addGetterSetter(li,"angle",0,(0,N3.getNumberValidator)()),Pf.Factory.addGetterSetter(li,"clockwise",!1),Pf.Factory.backCompat(li,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.Blur=void 0;const O3=Je,_O=jt,EO=_e;function R3(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var PO=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],MO=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function IO(t,e){var r=t.data,n=t.width,a=t.height,i,s,u,c,d,f,m,v,y,b,S,E,x,k,g,C,N,O,D,R,A,F,U,H,q=e+e+1,ne=n-1,ie=a-1,se=e+1,K=se*(se+1)/2,z=new R3,ee=null,Q=z,oe=null,he=null,Ce=PO[e],ge=MO[e];for(u=1;u>ge,U!==0?(U=255/U,r[f]=(v*Ce>>ge)*U,r[f+1]=(y*Ce>>ge)*U,r[f+2]=(b*Ce>>ge)*U):r[f]=r[f+1]=r[f+2]=0,v-=E,y-=x,b-=k,S-=g,E-=oe.r,x-=oe.g,k-=oe.b,g-=oe.a,c=m+((c=i+e+1)>ge,U>0?(U=255/U,r[c]=(v*Ce>>ge)*U,r[c+1]=(y*Ce>>ge)*U,r[c+2]=(b*Ce>>ge)*U):r[c]=r[c+1]=r[c+2]=0,v-=E,y-=x,b-=k,S-=g,E-=oe.r,x-=oe.g,k-=oe.b,g-=oe.a,c=i+((c=s+se)0&&IO(t,e)};Mf.Blur=NO,O3.Factory.addGetterSetter(_O.Node,"blurRadius",0,(0,EO.getNumberValidator)(),O3.Factory.afterSetFilter);var If={};Object.defineProperty(If,"__esModule",{value:!0}),If.Brighten=void 0;const T3=Je,OO=jt,RO=_e,TO=function(t){var e=this.brightness()*255,r=t.data,n=r.length,a;for(a=0;a255?255:a,i=i<0?0:i>255?255:i,s=s<0?0:s>255?255:s,r[u]=a,r[u+1]=i,r[u+2]=s};Nf.Contrast=jO,L3.Factory.addGetterSetter(LO.Node,"contrast",0,(0,FO.getNumberValidator)(),L3.Factory.afterSetFilter);var Of={};Object.defineProperty(Of,"__esModule",{value:!0}),Of.Emboss=void 0;const Ji=Je,Rf=jt,AO=Gt,F3=_e,DO=function(t){var e=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),a=this.embossBlend(),i=0,s=0,u=t.data,c=t.width,d=t.height,f=c*4,m=d;switch(n){case"top-left":i=-1,s=-1;break;case"top":i=-1,s=0;break;case"top-right":i=-1,s=1;break;case"right":i=0,s=1;break;case"bottom-right":i=1,s=1;break;case"bottom":i=1,s=0;break;case"bottom-left":i=1,s=-1;break;case"left":i=0,s=-1;break;default:AO.Util.error("Unknown emboss direction: "+n)}do{var v=(m-1)*f,y=i;m+y<1&&(y=0),m+y>d&&(y=0);var b=(m-1+y)*c*4,S=c;do{var E=v+(S-1)*4,x=s;S+x<1&&(x=0),S+x>c&&(x=0);var k=b+(S-1+x)*4,g=u[E]-u[k],C=u[E+1]-u[k+1],N=u[E+2]-u[k+2],O=g,D=O>0?O:-O,R=C>0?C:-C,A=N>0?N:-N;if(R>D&&(O=C),A>D&&(O=N),O*=e,a){var F=u[E]+O,U=u[E+1]+O,H=u[E+2]+O;u[E]=F>255?255:F<0?0:F,u[E+1]=U>255?255:U<0?0:U,u[E+2]=H>255?255:H<0?0:H}else{var q=r-O;q<0?q=0:q>255&&(q=255),u[E]=u[E+1]=u[E+2]=q}}while(--S)}while(--m)};Of.Emboss=DO,Ji.Factory.addGetterSetter(Rf.Node,"embossStrength",.5,(0,F3.getNumberValidator)(),Ji.Factory.afterSetFilter),Ji.Factory.addGetterSetter(Rf.Node,"embossWhiteLevel",.5,(0,F3.getNumberValidator)(),Ji.Factory.afterSetFilter),Ji.Factory.addGetterSetter(Rf.Node,"embossDirection","top-left",null,Ji.Factory.afterSetFilter),Ji.Factory.addGetterSetter(Rf.Node,"embossBlend",!1,null,Ji.Factory.afterSetFilter);var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.Enhance=void 0;const j3=Je,zO=jt,BO=_e;function Uv(t,e,r,n,a){var i=r-e,s=a-n,u;return i===0?n+s/2:s===0?n:(u=(t-e)/i,u=s*u+n,u)}const UO=function(t){var e=t.data,r=e.length,n=e[0],a=n,i,s=e[1],u=s,c,d=e[2],f=d,m,v,y=this.enhance();if(y!==0){for(v=0;va&&(a=i),c=e[v+1],cu&&(u=c),m=e[v+2],mf&&(f=m);a===n&&(a=255,n=0),u===s&&(u=255,s=0),f===d&&(f=255,d=0);var b,S,E,x,k,g,C,N,O;for(y>0?(S=a+y*(255-a),E=n-y*(n-0),k=u+y*(255-u),g=s-y*(s-0),N=f+y*(255-f),O=d-y*(d-0)):(b=(a+n)*.5,S=a+y*(a-b),E=n+y*(n-b),x=(u+s)*.5,k=u+y*(u-x),g=s+y*(s-x),C=(f+d)*.5,N=f+y*(f-C),O=d+y*(d-C)),v=0;vx?E:x;var k=s,g=i,C,N,O=360/g*Math.PI/180,D,R;for(N=0;Ng?k:g;var C=s,N=i,O,D,R=r.polarRotation||0,A,F;for(f=0;fe&&(C=g,N=0,O=-1),a=0;a=0&&y=0&&b=0&&y=0&&b=255*4?255:0}return s}function rR(t,e,r){for(var n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],a=Math.round(Math.sqrt(n.length)),i=Math.floor(a/2),s=[],u=0;u=0&&y=0&&b=r))for(i=S;i=n||(s=(r*i+a)*4,u+=C[s+0],c+=C[s+1],d+=C[s+2],f+=C[s+3],g+=1);for(u=u/g,c=c/g,d=d/g,f=f/g,a=y;a=r))for(i=S;i=n||(s=(r*i+a)*4,C[s+0]=u,C[s+1]=c,C[s+2]=d,C[s+3]=f)}};Vf.Pixelate=cR,$3.Factory.addGetterSetter(lR.Node,"pixelSize",8,(0,uR.getNumberValidator)(),$3.Factory.afterSetFilter);var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.Posterize=void 0;const V3=Je,dR=jt,hR=_e,fR=function(t){var e=Math.round(this.levels()*254)+1,r=t.data,n=r.length,a=255/e,i;for(i=0;i255?255:t<0?0:Math.round(t)}),qf.Factory.addGetterSetter(qv.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),qf.Factory.addGetterSetter(qv.Node,"blue",0,pR.RGBComponent,qf.Factory.afterSetFilter);var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.RGBA=void 0;const rc=Je,Kf=jt,mR=_e,vR=function(t){var e=t.data,r=e.length,n=this.red(),a=this.green(),i=this.blue(),s=this.alpha(),u,c;for(u=0;u255?255:t<0?0:Math.round(t)}),rc.Factory.addGetterSetter(Kf.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),rc.Factory.addGetterSetter(Kf.Node,"blue",0,mR.RGBComponent,rc.Factory.afterSetFilter),rc.Factory.addGetterSetter(Kf.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});var Yf={};Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.Sepia=void 0;const yR=function(t){var e=t.data,r=e.length,n,a,i,s;for(n=0;n127&&(d=255-d),f>127&&(f=255-f),m>127&&(m=255-m),e[c]=d,e[c+1]=f,e[c+2]=m}while(--u)}while(--i)};Qf.Solarize=bR;var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.Threshold=void 0;const G3=Je,wR=jt,kR=_e,xR=function(t){var e=this.threshold()*255,r=t.data,n=r.length,a;for(a=0;aG||w[L]!==_[G]){var Z=` -`+w[L].replace(" at new "," at ");return o.displayName&&Z.includes("")&&(Z=Z.replace("",o.displayName)),Z}while(1<=L&&0<=G);break}}}finally{ss=!1,Error.prepareStackTrace=h}return(o=o?o.displayName||o.name:"")?ot(o):""}var Ap=Object.prototype.hasOwnProperty,ho=[],di=-1;function Mn(o){return{current:o}}function xt(o){0>di||(o.current=ho[di],ho[di]=null,di--)}function yt(o,l){di++,ho[di]=o.current,o.current=l}var In={},vr=Mn(In),Lr=Mn(!1),La=In;function hi(o,l){var h=o.type.contextTypes;if(!h)return In;var p=o.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===l)return p.__reactInternalMemoizedMaskedChildContext;var w={},_;for(_ in h)w[_]=l[_];return p&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=w),w}function Fr(o){return o=o.childContextTypes,o!=null}function ls(){xt(Lr),xt(vr)}function Mc(o,l,h){if(vr.current!==In)throw Error(i(168));yt(vr,l),yt(Lr,h)}function Rt(o,l,h){var p=o.stateNode;if(l=l.childContextTypes,typeof p.getChildContext!="function")return h;p=p.getChildContext();for(var w in p)if(!(w in l))throw Error(i(108,D(o)||"Unknown",w));return a({},h,p)}function da(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||In,La=vr.current,yt(vr,o),yt(Lr,Lr.current),!0}function fo(o,l,h){var p=o.stateNode;if(!p)throw Error(i(169));h?(o=Rt(o,l,La),p.__reactInternalMemoizedMergedChildContext=o,xt(Lr),xt(vr),yt(vr,o)):xt(Lr),yt(Lr,h)}var pn=Math.clz32?Math.clz32:Dp,Ic=Math.log,Ol=Math.LN2;function Dp(o){return o>>>=0,o===0?32:31-(Ic(o)/Ol|0)|0}var us=64,Fa=4194304;function po(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ja(o,l){var h=o.pendingLanes;if(h===0)return 0;var p=0,w=o.suspendedLanes,_=o.pingedLanes,L=h&268435455;if(L!==0){var G=L&~w;G!==0?p=po(G):(_&=L,_!==0&&(p=po(_)))}else L=h&~w,L!==0?p=po(L):_!==0&&(p=po(_));if(p===0)return 0;if(l!==0&&l!==p&&!(l&w)&&(w=p&-p,_=l&-l,w>=_||w===16&&(_&4194240)!==0))return l;if(p&4&&(p|=h&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=p;0h;h++)l.push(o);return l}function ae(o,l,h){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-pn(l),o[l]=h}function pe(o,l){var h=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var p=o.eventTimes;for(o=o.expirationTimes;0>=L,w-=L,qn=1<<32-pn(l)+w|h<pt?(wr=qe,qe=null):wr=qe.sibling;var gt=me(Y,qe,te[pt],ve);if(gt===null){qe===null&&(qe=wr);break}o&&qe&>.alternate===null&&l(Y,qe),W=_(gt,W,pt),Ze===null?Le=gt:Ze.sibling=gt,Ze=gt,qe=wr}if(pt===te.length)return h(Y,qe),ft&&Aa(Y,pt),Le;if(qe===null){for(;ptpt?(wr=qe,qe=null):wr=qe.sibling;var wi=me(Y,qe,gt.value,ve);if(wi===null){qe===null&&(qe=wr);break}o&&qe&&wi.alternate===null&&l(Y,qe),W=_(wi,W,pt),Ze===null?Le=wi:Ze.sibling=wi,Ze=wi,qe=wr}if(gt.done)return h(Y,qe),ft&&Aa(Y,pt),Le;if(qe===null){for(;!gt.done;pt++,gt=te.next())gt=We(Y,gt.value,ve),gt!==null&&(W=_(gt,W,pt),Ze===null?Le=gt:Ze.sibling=gt,Ze=gt);return ft&&Aa(Y,pt),Le}for(qe=p(Y,qe);!gt.done;pt++,gt=te.next())gt=It(qe,Y,pt,gt.value,ve),gt!==null&&(o&>.alternate!==null&&qe.delete(gt.key===null?pt:gt.key),W=_(gt,W,pt),Ze===null?Le=gt:Ze.sibling=gt,Ze=gt);return o&&qe.forEach(function(mS){return l(Y,mS)}),ft&&Aa(Y,pt),Le}function Va(Y,W,te,ve){if(typeof te=="object"&&te!==null&&te.type===d&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case u:e:{for(var Le=te.key,Ze=W;Ze!==null;){if(Ze.key===Le){if(Le=te.type,Le===d){if(Ze.tag===7){h(Y,Ze.sibling),W=w(Ze,te.props.children),W.return=Y,Y=W;break e}}else if(Ze.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===k&&Qy(Le)===Ze.type){h(Y,Ze.sibling),W=w(Ze,te.props),W.ref=Tl(Y,Ze,te),W.return=Y,Y=W;break e}h(Y,Ze);break}else l(Y,Ze);Ze=Ze.sibling}te.type===d?(W=ko(te.props.children,Y.mode,ve,te.key),W.return=Y,Y=W):(ve=ud(te.type,te.key,te.props,null,Y.mode,ve),ve.ref=Tl(Y,W,te),ve.return=Y,Y=ve)}return L(Y);case c:e:{for(Ze=te.key;W!==null;){if(W.key===Ze)if(W.tag===4&&W.stateNode.containerInfo===te.containerInfo&&W.stateNode.implementation===te.implementation){h(Y,W.sibling),W=w(W,te.children||[]),W.return=Y,Y=W;break e}else{h(Y,W);break}else l(Y,W);W=W.sibling}W=jg(te,Y.mode,ve),W.return=Y,Y=W}return L(Y);case k:return Ze=te._init,Va(Y,W,Ze(te._payload),ve)}if(ne(te))return St(Y,W,te,ve);if(N(te))return ln(Y,W,te,ve);Ac(Y,te)}return typeof te=="string"&&te!==""||typeof te=="number"?(te=""+te,W!==null&&W.tag===6?(h(Y,W.sibling),W=w(W,te),W.return=Y,Y=W):(h(Y,W),W=Fg(te,Y.mode,ve),W.return=Y,Y=W),L(Y)):h(Y,W)}return Va}var fs=Zy(!0),Xy=Zy(!1),Ll={},On=Mn(Ll),Fl=Mn(Ll),ps=Mn(Ll);function fa(o){if(o===Ll)throw Error(i(174));return o}function Qp(o,l){yt(ps,l),yt(Fl,o),yt(On,Ll),o=se(l),xt(On),yt(On,o)}function gs(){xt(On),xt(Fl),xt(ps)}function Jy(o){var l=fa(ps.current),h=fa(On.current);l=K(h,o.type,l),h!==l&&(yt(Fl,o),yt(On,l))}function Zp(o){Fl.current===o&&(xt(On),xt(Fl))}var At=Mn(0);function Dc(o){for(var l=o;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Pl(h)||ns(h)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Xp=[];function Jp(){for(var o=0;oh?h:4,o(!0);var p=eg.transition;eg.transition={};try{o(!1),l()}finally{ce=h,eg.transition=p}}function vb(){return Rn().memoizedState}function V6(o,l,h){var p=vi(o);if(h={lane:p,action:h,hasEagerState:!1,eagerState:null,next:null},yb(o))bb(l,h);else if(h=$y(o,l,h,p),h!==null){var w=Br();Tn(h,o,p,w),wb(h,l,p)}}function G6(o,l,h){var p=vi(o),w={lane:p,action:h,hasEagerState:!1,eagerState:null,next:null};if(yb(o))bb(l,w);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var L=l.lastRenderedState,G=_(L,h);if(w.hasEagerState=!0,w.eagerState=G,tt(G,L)){var Z=l.interleaved;Z===null?(w.next=w,qp(l)):(w.next=Z.next,Z.next=w),l.interleaved=w;return}}catch{}finally{}h=$y(o,l,w,p),h!==null&&(w=Br(),Tn(h,o,p,w),wb(h,l,p))}}function yb(o){var l=o.alternate;return o===Dt||l!==null&&l===Dt}function bb(o,l){jl=Bc=!0;var h=o.pending;h===null?l.next=l:(l.next=h.next,h.next=l),o.pending=l}function wb(o,l,h){if(h&4194240){var p=l.lanes;p&=o.pendingLanes,h|=p,l.lanes=h,fe(o,h)}}var Vc={readContext:Nn,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useInsertionEffect:Ar,useLayoutEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useMutableSource:Ar,useSyncExternalStore:Ar,useId:Ar,unstable_isNewReconciler:!1},W6={readContext:Nn,useCallback:function(o,l){return pa().memoizedState=[o,l===void 0?null:l],o},useContext:Nn,useEffect:ub,useImperativeHandle:function(o,l,h){return h=h!=null?h.concat([o]):null,Uc(4194308,4,hb.bind(null,l,o),h)},useLayoutEffect:function(o,l){return Uc(4194308,4,o,l)},useInsertionEffect:function(o,l){return Uc(4,2,o,l)},useMemo:function(o,l){var h=pa();return l=l===void 0?null:l,o=o(),h.memoizedState=[o,l],o},useReducer:function(o,l,h){var p=pa();return l=h!==void 0?h(l):l,p.memoizedState=p.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},p.queue=o,o=o.dispatch=V6.bind(null,Dt,o),[p.memoizedState,o]},useRef:function(o){var l=pa();return o={current:o},l.memoizedState=o},useState:sb,useDebugValue:sg,useDeferredValue:function(o){return pa().memoizedState=o},useTransition:function(){var o=sb(!1),l=o[0];return o=$6.bind(null,o[1]),pa().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,h){var p=Dt,w=pa();if(ft){if(h===void 0)throw Error(i(407));h=h()}else{if(h=l(),br===null)throw Error(i(349));mo&30||rb(p,l,h)}w.memoizedState=h;var _={value:h,getSnapshot:l};return w.queue=_,ub(ab.bind(null,p,_,o),[o]),p.flags|=2048,zl(9,nb.bind(null,p,_,h,l),void 0,null),h},useId:function(){var o=pa(),l=br.identifierPrefix;if(ft){var h=Cr,p=qn;h=(p&~(1<<32-pn(p)-1)).toString(32)+h,l=":"+l+"R"+h,h=Al++,0Pg&&(l.flags|=128,p=!0,$l(w,!1),l.lanes=4194304)}else{if(!p)if(o=Dc(_),o!==null){if(l.flags|=128,p=!0,o=o.updateQueue,o!==null&&(l.updateQueue=o,l.flags|=4),$l(w,!0),w.tail===null&&w.tailMode==="hidden"&&!_.alternate&&!ft)return Dr(l),null}else 2*xe()-w.renderingStartTime>Pg&&h!==1073741824&&(l.flags|=128,p=!0,$l(w,!1),l.lanes=4194304);w.isBackwards?(_.sibling=l.child,l.child=_):(o=w.last,o!==null?o.sibling=_:l.child=_,w.last=_)}return w.tail!==null?(l=w.tail,w.rendering=l,w.tail=l.sibling,w.renderingStartTime=xe(),l.sibling=null,o=At.current,yt(At,p?o&1|2:o&1),l):(Dr(l),null);case 22:case 23:return Rg(),h=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==h&&(l.flags|=8192),h&&l.mode&1?gn&1073741824&&(Dr(l),Se&&l.subtreeFlags&6&&(l.flags|=8192)):Dr(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function J6(o,l){switch(Da(l),l.tag){case 1:return Fr(l.type)&&ls(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return gs(),xt(Lr),xt(vr),Jp(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Zp(l),null;case 13:if(xt(At),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));cs()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return xt(At),null;case 4:return gs(),null;case 10:return Gp(l.type._context),null;case 22:case 23:return Rg(),null;case 24:return null;default:return null}}var Kc=!1,zr=!1,eS=typeof WeakSet=="function"?WeakSet:Set,be=null;function vs(o,l){var h=o.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(p){Lt(o,l,p)}else h.current=null}function zb(o,l,h){try{h()}catch(p){Lt(o,l,p)}}var Bb=!1;function tS(o,l){for(z(o.containerInfo),be=l;be!==null;)if(o=be,l=o.child,(o.subtreeFlags&1028)!==0&&l!==null)l.return=o,be=l;else for(;be!==null;){o=be;try{var h=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var p=h.memoizedProps,w=h.memoizedState,_=o.stateNode,L=_.getSnapshotBeforeUpdate(o.elementType===o.type?p:Kn(o.type,p),w);_.__reactInternalSnapshotBeforeUpdate=L}break;case 3:Se&&lo(o.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(G){Lt(o,o.return,G)}if(l=o.sibling,l!==null){l.return=o.return,be=l;break}be=o.return}return h=Bb,Bb=!1,h}function Vl(o,l,h){var p=l.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var w=p=p.next;do{if((w.tag&o)===o){var _=w.destroy;w.destroy=void 0,_!==void 0&&zb(l,h,_)}w=w.next}while(w!==p)}}function Yc(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var h=l=l.next;do{if((h.tag&o)===o){var p=h.create;h.destroy=p()}h=h.next}while(h!==l)}}function mg(o){var l=o.ref;if(l!==null){var h=o.stateNode;switch(o.tag){case 5:o=ie(h);break;default:o=h}typeof l=="function"?l(o):l.current=o}}function Ub(o){var l=o.alternate;l!==null&&(o.alternate=null,Ub(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Wt(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function $b(o){return o.tag===5||o.tag===3||o.tag===4}function Vb(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||$b(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function vg(o,l,h){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?Ht(h,o,l):so(h,o);else if(p!==4&&(o=o.child,o!==null))for(vg(o,l,h),o=o.sibling;o!==null;)vg(o,l,h),o=o.sibling}function yg(o,l,h){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?ci(h,o,l):Na(h,o);else if(p!==4&&(o=o.child,o!==null))for(yg(o,l,h),o=o.sibling;o!==null;)yg(o,l,h),o=o.sibling}var Er=null,Yn=!1;function ma(o,l,h){for(h=h.child;h!==null;)bg(o,l,h),h=h.sibling}function bg(o,l,h){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(Re,h)}catch{}switch(h.tag){case 5:zr||vs(h,l);case 6:if(Se){var p=Er,w=Yn;Er=null,ma(o,l,h),Er=p,Yn=w,Er!==null&&(Yn?ts(Er,h.stateNode):Ra(Er,h.stateNode))}else ma(o,l,h);break;case 18:Se&&Er!==null&&(Yn?jp(Er,h.stateNode):Ec(Er,h.stateNode));break;case 4:Se?(p=Er,w=Yn,Er=h.stateNode.containerInfo,Yn=!0,ma(o,l,h),Er=p,Yn=w):(Oe&&(p=h.stateNode.containerInfo,w=kc(p),uo(p,w)),ma(o,l,h));break;case 0:case 11:case 14:case 15:if(!zr&&(p=h.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){w=p=p.next;do{var _=w,L=_.destroy;_=_.tag,L!==void 0&&(_&2||_&4)&&zb(h,l,L),w=w.next}while(w!==p)}ma(o,l,h);break;case 1:if(!zr&&(vs(h,l),p=h.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=h.memoizedProps,p.state=h.memoizedState,p.componentWillUnmount()}catch(G){Lt(h,l,G)}ma(o,l,h);break;case 21:ma(o,l,h);break;case 22:h.mode&1?(zr=(p=zr)||h.memoizedState!==null,ma(o,l,h),zr=p):ma(o,l,h);break;default:ma(o,l,h)}}function Gb(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var h=o.stateNode;h===null&&(h=o.stateNode=new eS),l.forEach(function(p){var w=cS.bind(null,o,p);h.has(p)||(h.add(p),p.then(w,w))})}}function Qn(o,l){var h=l.deletions;if(h!==null)for(var p=0;p";case Zc:return":has("+(xg(o)||"")+")";case Xc:return'[role="'+o.value+'"]';case ed:return'"'+o.value+'"';case Jc:return'[data-testname="'+o.value+'"]';default:throw Error(i(365))}}function Qb(o,l){var h=[];o=[o,0];for(var p=0;pw&&(w=L),p&=~_}if(p=w,p=xe()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*nS(p/1960))-p,10o?16:o,mi===null)var p=!1;else{if(o=mi,mi=null,id=0,et&6)throw Error(i(331));var w=et;for(et|=4,be=o.current;be!==null;){var _=be,L=_.child;if(be.flags&16){var G=_.deletions;if(G!==null){for(var Z=0;Zxe()-Eg?yo(o,0):_g|=h),sn(o,l)}function i2(o,l){l===0&&(o.mode&1?(l=Fa,Fa<<=1,!(Fa&130023424)&&(Fa=4194304)):l=1);var h=Br();o=ha(o,l),o!==null&&(ae(o,l,h),sn(o,h))}function uS(o){var l=o.memoizedState,h=0;l!==null&&(h=l.retryLane),i2(o,h)}function cS(o,l){var h=0;switch(o.tag){case 13:var p=o.stateNode,w=o.memoizedState;w!==null&&(h=w.retryLane);break;case 19:p=o.stateNode;break;default:throw Error(i(314))}p!==null&&p.delete(l),i2(o,h)}var o2;o2=function(o,l,h){if(o!==null)if(o.memoizedProps!==l.pendingProps||Lr.current)an=!0;else{if(!(o.lanes&h)&&!(l.flags&128))return an=!1,Z6(o,l,h);an=!!(o.flags&131072)}else an=!1,ft&&l.flags&1048576&&Rl(l,ir,l.index);switch(l.lanes=0,l.tag){case 2:var p=l.type;Wc(o,l),o=l.pendingProps;var w=hi(l,vr.current);hs(l,h),w=rg(null,l,p,o,w,h);var _=ng();return l.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Fr(p)?(_=!0,da(l)):_=!1,l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Hp(l),w.updater=jc,l.stateNode=w,w._reactInternals=l,Yp(l,p,o,h),l=dg(null,l,p,!0,_,h)):(l.tag=0,ft&&_&&Yr(l),Qr(null,l,w,h),l=l.child),l;case 16:p=l.elementType;e:{switch(Wc(o,l),o=l.pendingProps,w=p._init,p=w(p._payload),l.type=p,w=l.tag=hS(p),o=Kn(p,o),w){case 0:l=cg(null,l,p,o,h);break e;case 1:l=Ob(null,l,p,o,h);break e;case 11:l=Eb(null,l,p,o,h);break e;case 14:l=Pb(null,l,p,Kn(p.type,o),h);break e}throw Error(i(306,p,""))}return l;case 0:return p=l.type,w=l.pendingProps,w=l.elementType===p?w:Kn(p,w),cg(o,l,p,w,h);case 1:return p=l.type,w=l.pendingProps,w=l.elementType===p?w:Kn(p,w),Ob(o,l,p,w,h);case 3:e:{if(Rb(l),o===null)throw Error(i(387));p=l.pendingProps,_=l.memoizedState,w=_.element,Vy(o,l),Fc(l,p,null,h);var L=l.memoizedState;if(p=L.element,Fe&&_.isDehydrated)if(_={element:p,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){w=ms(Error(i(423)),l),l=Tb(o,l,p,h,w);break e}else if(p!==w){w=ms(Error(i(424)),l),l=Tb(o,l,p,h,w);break e}else for(Fe&&(_r=Rp(l.stateNode.containerInfo),Yt=l,ft=!0,Hn=null,za=!1),h=Xy(l,null,p,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(cs(),p===w){l=Ua(o,l,h);break e}Qr(o,l,p,h)}l=l.child}return l;case 5:return Jy(l),o===null&&Bp(l),p=l.type,w=l.pendingProps,_=o!==null?o.memoizedProps:null,L=w.children,ge(p,w)?L=null:_!==null&&ge(p,_)&&(l.flags|=32),Nb(o,l),Qr(o,l,L,h),l.child;case 6:return o===null&&Bp(l),null;case 13:return Lb(o,l,h);case 4:return Qp(l,l.stateNode.containerInfo),p=l.pendingProps,o===null?l.child=fs(l,null,p,h):Qr(o,l,p,h),l.child;case 11:return p=l.type,w=l.pendingProps,w=l.elementType===p?w:Kn(p,w),Eb(o,l,p,w,h);case 7:return Qr(o,l,l.pendingProps,h),l.child;case 8:return Qr(o,l,l.pendingProps.children,h),l.child;case 12:return Qr(o,l,l.pendingProps.children,h),l.child;case 10:e:{if(p=l.type._context,w=l.pendingProps,_=l.memoizedProps,L=w.value,Uy(l,p,L),_!==null)if(tt(_.value,L)){if(_.children===w.children&&!Lr.current){l=Ua(o,l,h);break e}}else for(_=l.child,_!==null&&(_.return=l);_!==null;){var G=_.dependencies;if(G!==null){L=_.child;for(var Z=G.firstContext;Z!==null;){if(Z.context===p){if(_.tag===1){Z=Ba(-1,h&-h),Z.tag=2;var de=_.updateQueue;if(de!==null){de=de.shared;var ke=de.pending;ke===null?Z.next=Z:(Z.next=ke.next,ke.next=Z),de.pending=Z}}_.lanes|=h,Z=_.alternate,Z!==null&&(Z.lanes|=h),Wp(_.return,h,l),G.lanes|=h;break}Z=Z.next}}else if(_.tag===10)L=_.type===l.type?null:_.child;else if(_.tag===18){if(L=_.return,L===null)throw Error(i(341));L.lanes|=h,G=L.alternate,G!==null&&(G.lanes|=h),Wp(L,h,l),L=_.sibling}else L=_.child;if(L!==null)L.return=_;else for(L=_;L!==null;){if(L===l){L=null;break}if(_=L.sibling,_!==null){_.return=L.return,L=_;break}L=L.return}_=L}Qr(o,l,w.children,h),l=l.child}return l;case 9:return w=l.type,p=l.pendingProps.children,hs(l,h),w=Nn(w),p=p(w),l.flags|=1,Qr(o,l,p,h),l.child;case 14:return p=l.type,w=Kn(p,l.pendingProps),w=Kn(p.type,w),Pb(o,l,p,w,h);case 15:return Mb(o,l,l.type,l.pendingProps,h);case 17:return p=l.type,w=l.pendingProps,w=l.elementType===p?w:Kn(p,w),Wc(o,l),l.tag=1,Fr(p)?(o=!0,da(l)):o=!1,hs(l,h),Ky(l,p,w),Yp(l,p,w,h),dg(null,l,p,!0,o,h);case 19:return jb(o,l,h);case 22:return Ib(o,l,h)}throw Error(i(156,l.tag))};function s2(o,l){return Be(o,l)}function dS(o,l,h,p){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(o,l,h,p){return new dS(o,l,h,p)}function Lg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function hS(o){if(typeof o=="function")return Lg(o)?1:0;if(o!=null){if(o=o.$$typeof,o===b)return 11;if(o===x)return 14}return 2}function bi(o,l){var h=o.alternate;return h===null?(h=Ln(o.tag,l,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=l,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&14680064,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,l=o.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h}function ud(o,l,h,p,w,_){var L=2;if(p=o,typeof o=="function")Lg(o)&&(L=1);else if(typeof o=="string")L=5;else e:switch(o){case d:return ko(h.children,w,_,l);case f:L=8,w|=8;break;case m:return o=Ln(12,h,l,w|2),o.elementType=m,o.lanes=_,o;case S:return o=Ln(13,h,l,w),o.elementType=S,o.lanes=_,o;case E:return o=Ln(19,h,l,w),o.elementType=E,o.lanes=_,o;case g:return cd(h,w,_,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case v:L=10;break e;case y:L=9;break e;case b:L=11;break e;case x:L=14;break e;case k:L=16,p=null;break e}throw Error(i(130,o==null?o:typeof o,""))}return l=Ln(L,h,l,w),l.elementType=o,l.type=p,l.lanes=_,l}function ko(o,l,h,p){return o=Ln(7,o,p,l),o.lanes=h,o}function cd(o,l,h,p){return o=Ln(22,o,p,l),o.elementType=g,o.lanes=h,o.stateNode={isHidden:!1},o}function Fg(o,l,h){return o=Ln(6,o,null,l),o.lanes=h,o}function jg(o,l,h){return l=Ln(4,o.children!==null?o.children:[],o.key,l),l.lanes=h,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function fS(o,l,h,p,w){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=re,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X(0),this.expirationTimes=X(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X(0),this.identifierPrefix=p,this.onRecoverableError=w,Fe&&(this.mutableSourceEagerHydrationData=null)}function l2(o,l,h,p,w,_,L,G,Z){return o=new fS(o,l,h,G,Z),l===1?(l=1,_===!0&&(l|=8)):l=0,_=Ln(3,null,null,l),o.current=_,_.stateNode=o,_.memoizedState={element:p,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hp(_),o}function u2(o){if(!o)return In;o=o._reactInternals;e:{if(R(o)!==o||o.tag!==1)throw Error(i(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Fr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(i(171))}if(o.tag===1){var h=o.type;if(Fr(h))return Rt(o,h,l)}return l}function c2(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=U(l),o===null?null:o.stateNode}function d2(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h=de&&_>=We&&w<=ke&&L<=me){o.splice(l,1);break}else if(p!==de||h.width!==Z.width||me<_||We>L){if(!(_!==We||h.height!==Z.height||kew)){de>p&&(Z.width+=de-p,Z.x=p),ke_&&(Z.height+=We-_,Z.y=_),meh&&(h=L)),L ")+` - -No matching component was found for: - `)+o.join(" > ")}return null},e.getPublicRootInstance=function(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return ie(o.child.stateNode);default:return o.child.stateNode}},e.injectIntoDevTools=function(o){if(o={bundleType:o.bundleType,version:o.version,rendererPackageName:o.rendererPackageName,rendererConfig:o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:pS,findFiberByHostInstance:o.findFiberByHostInstance||gS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")o=!1;else{var l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(l.isDisabled||!l.supportsFiber)o=!0;else{try{Re=l.inject(o),$e=l}catch{}o=!!l.checkDCE}}return o},e.isAlreadyRendering=function(){return!1},e.observeVisibleRects=function(o,l,h,p){if(!ze)throw Error(i(363));o=Sg(o,l);var w=Ia(o,h,p).disconnect;return{disconnect:function(){w()}}},e.registerMutableSourceForHydration=function(o,l){var h=l._getVersion;h=h(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,h]:o.mutableSourceEagerHydrationData.push(l,h)},e.runWithPriority=function(o,l){var h=ce;try{return ce=o,l()}finally{ce=h}},e.shouldError=function(){return null},e.shouldSuspend=function(){return!1},e.updateContainer=function(o,l,h,p){var w=l.current,_=Br(),L=vi(w);return h=u2(h),l.context===null?l.context=h:l.pendingContext=h,l=Ba(_,L),l.payload={element:o},p=p===void 0?null:p,p!==null&&(l.callback=p),o=pi(w,l,L),o!==null&&(Tn(o,w,L,_),Lc(o,w,L)),L},e};H3.exports=sT;var lT=H3.exports;const uT=Ga(lT);var K3={exports:{}},Ho={};/** -* @license React -* react-reconciler-constants.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/Ho.ConcurrentRoot=1,Ho.ContinuousEventPriority=4,Ho.DefaultEventPriority=16,Ho.DiscreteEventPriority=1,Ho.IdleEventPriority=536870912,Ho.LegacyRoot=0,K3.exports=Ho;var Y3=K3.exports;const Q3={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let Z3=!1,X3=!1;const Kv=".react-konva-event",cT=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. -Position of a node will be changed during drag&drop, so you should update state of the react app as well. -Consider to add onDragMove or onDragEnd events. -For more info see: https://github.com/konvajs/react-konva/issues/256 -`,dT=`ReactKonva: You are using "zIndex" attribute for a Konva node. -react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. -For more info see: https://github.com/konvajs/react-konva/issues/194 -`,hT={};function Xf(t,e,r=hT){if(!Z3&&"zIndex"in e&&(console.warn(dT),Z3=!0),!X3&&e.draggable){var n=e.x!==void 0||e.y!==void 0,a=e.onDragEnd||e.onDragMove;n&&!a&&(console.warn(cT),X3=!0)}for(var i in r)if(!Q3[i]){var s=i.slice(0,2)==="on",u=r[i]!==e[i];if(s&&u){var c=i.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,r[i])}var d=!e.hasOwnProperty(i);d&&t.setAttr(i,void 0)}var f=e._useStrictMode,m={},v=!1;const y={};for(var i in e)if(!Q3[i]){var s=i.slice(0,2)==="on",b=r[i]!==e[i];if(s&&b){var c=i.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[i]&&(y[c]=e[i])}!s&&(e[i]!==r[i]||f&&e[i]!==t.getAttr(i))&&(v=!0,m[i]=e[i])}v&&(t.setAttrs(m),eo(t));for(var c in y)t.on(c+Kv,y[c])}function eo(t){if(!Xe.Konva.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}const J3={},fT={};nc.Node.prototype._applyProps=Xf;function pT(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),eo(t)}function gT(t,e,r){let n=nc[t];n||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=nc.Group);const a={},i={};for(var s in e){var u=s.slice(0,2)==="on";u?i[s]=e[s]:a[s]=e[s]}const c=new n(a);return Xf(c,i),c}function mT(t,e,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function vT(t,e,r){return!1}function yT(t){return t}function bT(){return null}function wT(){return null}function kT(t,e,r,n){return fT}function xT(){}function ST(t){}function CT(t,e){return!1}function _T(){return J3}function ET(){return J3}const PT=setTimeout,MT=clearTimeout,IT=-1;function NT(t,e){return!1}const OT=!1,RT=!0,TT=!0;function LT(t,e){e.parent===t?e.moveToTop():t.add(e),eo(t)}function FT(t,e){e.parent===t?e.moveToTop():t.add(e),eo(t)}function e4(t,e,r){e._remove(),t.add(e),e.setZIndex(r.getZIndex()),eo(t)}function jT(t,e,r){e4(t,e,r)}function AT(t,e){e.destroy(),e.off(Kv),eo(t)}function DT(t,e){e.destroy(),e.off(Kv),eo(t)}function zT(t,e,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function BT(t,e,r){}function UT(t,e,r,n,a){Xf(t,a,n)}function $T(t){t.hide(),eo(t)}function VT(t){}function GT(t,e){(e.visible==null||e.visible)&&t.show()}function WT(t,e){}function qT(t){}function HT(){}const KT=()=>Y3.DefaultEventPriority,YT=Object.freeze(Object.defineProperty({__proto__:null,appendChild:LT,appendChildToContainer:FT,appendInitialChild:pT,cancelTimeout:MT,clearContainer:qT,commitMount:BT,commitTextUpdate:zT,commitUpdate:UT,createInstance:gT,createTextInstance:mT,detachDeletedInstance:HT,finalizeInitialChildren:vT,getChildHostContext:ET,getCurrentEventPriority:KT,getPublicInstance:yT,getRootHostContext:_T,hideInstance:$T,hideTextInstance:VT,idlePriority:Zl.unstable_IdlePriority,insertBefore:e4,insertInContainerBefore:jT,isPrimaryRenderer:OT,noTimeout:IT,now:Zl.unstable_now,prepareForCommit:bT,preparePortalMount:wT,prepareUpdate:kT,removeChild:AT,removeChildFromContainer:DT,resetAfterCommit:xT,resetTextContent:ST,run:Zl.unstable_runWithPriority,scheduleTimeout:PT,shouldDeprioritizeSubtree:CT,shouldSetTextContent:NT,supportsMutation:TT,unhideInstance:GT,unhideTextInstance:WT,warnsIfNotActing:RT},Symbol.toStringTag,{value:"Module"}));var QT=Object.defineProperty,ZT=Object.defineProperties,XT=Object.getOwnPropertyDescriptors,t4=Object.getOwnPropertySymbols,JT=Object.prototype.hasOwnProperty,eL=Object.prototype.propertyIsEnumerable,r4=(t,e,r)=>e in t?QT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n4=(t,e)=>{for(var r in e||(e={}))JT.call(e,r)&&r4(t,r,e[r]);if(t4)for(var r of t4(e))eL.call(e,r)&&r4(t,r,e[r]);return t},tL=(t,e)=>ZT(t,XT(e));function a4(t,e,r){if(!t)return;if(r(t)===!0)return t;let n=e?t.return:t.child;for(;n;){const a=a4(n,e,r);if(a)return a;n=e?null:n.sibling}}function i4(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const Yv=i4(I.createContext(null));class o4 extends I.Component{render(){return I.createElement(Yv.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:s4,ReactCurrentDispatcher:l4}=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function rL(){const t=I.useContext(Yv);if(t===null)throw new Error("its-fine: useFiber must be called within a !");const e=I.useId();return I.useMemo(()=>{for(const r of[s4?.current,t,t?.alternate]){if(!r)continue;const n=a4(r,!1,a=>{let i=a.memoizedState;for(;i;){if(i.memoizedState===e)return!0;i=i.next}});if(n)return n}},[t,e])}function nL(){var t,e;const r=rL(),[n]=I.useState(()=>new Map);n.clear();let a=r;for(;a;){const i=(t=a.type)==null?void 0:t._context;i&&i!==Yv&&!n.has(i)&&n.set(i,(e=l4?.current)==null?void 0:e.readContext(i4(i))),a=a.return}return n}function aL(){const t=nL();return I.useMemo(()=>Array.from(t.keys()).reduce((e,r)=>n=>I.createElement(e,null,I.createElement(r.Provider,tL(n4({},n),{value:t.get(r)}))),e=>I.createElement(o4,n4({},e))),[t])}function iL(t){const e=j.useRef({});return j.useLayoutEffect(()=>{e.current=t}),j.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const oL=t=>{const e=j.useRef(),r=j.useRef(),n=j.useRef(),a=iL(t),i=aL(),s=u=>{const{forwardedRef:c}=t;c&&(typeof c=="function"?c(u):c.current=u)};return j.useLayoutEffect(()=>(r.current=new nc.Stage({width:t.width,height:t.height,container:e.current}),s(r.current),n.current=ac.createContainer(r.current,Y3.LegacyRoot,!1,null),ac.updateContainer(j.createElement(i,{},t.children),n.current),()=>{nc.isBrowser&&(s(null),ac.updateContainer(null,n.current,null),r.current.destroy())}),[]),j.useLayoutEffect(()=>{s(r.current),Xf(r.current,t,a),ac.updateContainer(j.createElement(i,{},t.children),n.current,null)}),j.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},u4="Layer",c4="Image",sL="Transformer",ac=uT(YT);ac.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:j.version,rendererPackageName:"react-konva"});const lL=j.forwardRef((t,e)=>j.createElement(o4,{},j.createElement(oL,{...t,forwardedRef:e})));var Ko=I,uL=function(t,e,r){const n=Ko.useRef("loading"),a=Ko.useRef(),[i,s]=Ko.useState(0),u=Ko.useRef(),c=Ko.useRef(),d=Ko.useRef();return(u.current!==t||c.current!==e||d.current!==r)&&(n.current="loading",a.current=void 0,u.current=t,c.current=e,d.current=r),Ko.useLayoutEffect(function(){if(!t)return;var f=document.createElement("img");function m(){n.current="loaded",a.current=f,s(Math.random())}function v(){n.current="failed",a.current=void 0,s(Math.random())}return f.addEventListener("load",m),f.addEventListener("error",v),e&&(f.crossOrigin=e),r&&(f.referrerPolicy=r),f.src=t,function(){f.removeEventListener("load",m),f.removeEventListener("error",v)}},[t,e,r]),[a.current,n.current]};const d4=Ga(uL);var cL={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const h4=t=>{let e;const r=new Set,n=(u,c)=>{const d=typeof u=="function"?u(e):u;if(!Object.is(d,e)){const f=e;e=c??(typeof d!="object"||d===null)?d:Object.assign({},e,d),r.forEach(m=>m(e,f))}},a=()=>e,i={setState:n,getState:a,getInitialState:()=>s,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(cL?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},s=e=t(n,a,i);return i},dL=t=>t?h4(t):h4;var f4={exports:{}},p4={},g4={exports:{}},m4={};/** -* @license React -* use-sync-external-store-shim.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var pl=I;function hL(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fL=typeof Object.is=="function"?Object.is:hL,pL=pl.useState,gL=pl.useEffect,mL=pl.useLayoutEffect,vL=pl.useDebugValue;function yL(t,e){var r=e(),n=pL({inst:{value:r,getSnapshot:e}}),a=n[0].inst,i=n[1];return mL(function(){a.value=r,a.getSnapshot=e,Qv(a)&&i({inst:a})},[t,r,e]),gL(function(){return Qv(a)&&i({inst:a}),t(function(){Qv(a)&&i({inst:a})})},[t]),vL(r),r}function Qv(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!fL(t,r)}catch{return!0}}function bL(t,e){return e()}var wL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bL:yL;m4.useSyncExternalStore=pl.useSyncExternalStore!==void 0?pl.useSyncExternalStore:wL,g4.exports=m4;var kL=g4.exports;/** -* @license React -* use-sync-external-store-shim/with-selector.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var Jf=I,xL=kL;function SL(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var CL=typeof Object.is=="function"?Object.is:SL,_L=xL.useSyncExternalStore,EL=Jf.useRef,PL=Jf.useEffect,ML=Jf.useMemo,IL=Jf.useDebugValue;p4.useSyncExternalStoreWithSelector=function(t,e,r,n,a){var i=EL(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=ML(function(){function c(y){if(!d){if(d=!0,f=y,y=n(y),a!==void 0&&s.hasValue){var b=s.value;if(a(b,y))return m=b}return m=y}if(b=m,CL(f,y))return b;var S=n(y);return a!==void 0&&a(b,S)?b:(f=y,m=S)}var d=!1,f,m,v=r===void 0?null:r;return[function(){return c(e())},v===null?void 0:function(){return c(v())}]},[e,r,n,a]);var u=_L(t,i[0],i[1]);return PL(function(){s.hasValue=!0,s.value=u},[u]),IL(u),u},f4.exports=p4;var NL=f4.exports;const OL=Ga(NL);var v4={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:RL}=j,{useSyncExternalStoreWithSelector:TL}=OL;let y4=!1;const LL=t=>t;function FL(t,e=LL,r){(v4?"production":void 0)!=="production"&&r&&!y4&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),y4=!0);const n=TL(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,r);return RL(n),n}const b4=t=>{(v4?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?dL(t):t,r=(n,a)=>FL(e,n,a);return Object.assign(r,e),r},jL=t=>t?b4(t):b4;var ep={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Zv=new Map,tp=t=>{const e=Zv.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([r,n])=>[r,n.getState()])):{}},AL=(t,e,r)=>{if(t===void 0)return{type:"untracked",connection:e.connect(r)};const n=Zv.get(r.name);if(n)return{type:"tracked",store:t,...n};const a={connection:e.connect(r),stores:{}};return Zv.set(r.name,a),{type:"tracked",store:t,...a}},DL=(t,e={})=>(r,n,a)=>{const{enabled:i,anonymousActionType:s,store:u,...c}=e;let d;try{d=(i??(ep?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return(ep?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(r,n,a);const{connection:f,...m}=AL(u,d,c);let v=!0;a.setState=(S,E,x)=>{const k=r(S,E);if(!v)return k;const g=x===void 0?{type:s||"anonymous"}:typeof x=="string"?{type:x}:x;return u===void 0?(f?.send(g,n()),k):(f?.send({...g,type:`${u}/${g.type}`},{...tp(c.name),[u]:a.getState()}),k)};const y=(...S)=>{const E=v;v=!1,r(...S),v=E},b=t(a.setState,n,a);if(m.type==="untracked"?f?.init(b):(m.stores[m.store]=a,f?.init(Object.fromEntries(Object.entries(m.stores).map(([S,E])=>[S,S===m.store?b:E.getState()])))),a.dispatchFromDevtools&&typeof a.dispatch=="function"){let S=!1;const E=a.dispatch;a.dispatch=(...x)=>{(ep?"production":void 0)!=="production"&&x[0].type==="__setState"&&!S&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),S=!0),E(...x)}}return f.subscribe(S=>{var E;switch(S.type){case"ACTION":if(typeof S.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Xv(S.payload,x=>{if(x.type==="__setState"){if(u===void 0){y(x.state);return}Object.keys(x.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const k=x.state[u];if(k==null)return;JSON.stringify(a.getState())!==JSON.stringify(k)&&y(k);return}a.dispatchFromDevtools&&typeof a.dispatch=="function"&&a.dispatch(x)});case"DISPATCH":switch(S.payload.type){case"RESET":return y(b),u===void 0?f?.init(a.getState()):f?.init(tp(c.name));case"COMMIT":if(u===void 0){f?.init(a.getState());return}return f?.init(tp(c.name));case"ROLLBACK":return Xv(S.state,x=>{if(u===void 0){y(x),f?.init(a.getState());return}y(x[u]),f?.init(tp(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Xv(S.state,x=>{if(u===void 0){y(x);return}JSON.stringify(a.getState())!==JSON.stringify(x[u])&&y(x[u])});case"IMPORT_STATE":{const{nextLiftedState:x}=S.payload,k=(E=x.computedStates.slice(-1)[0])==null?void 0:E.state;if(!k)return;y(u===void 0?k:k[u]),f?.send(null,x);return}case"PAUSE_RECORDING":return v=!v}return}}),b},zL=DL,Xv=(t,e)=>{let r;try{r=JSON.parse(t)}catch(n){console.error("[zustand devtools middleware] Could not parse the received json",n)}r!==void 0&&e(r)};function BL(t,e){let r;try{r=t()}catch{return}return{getItem:n=>{var a;const i=u=>u===null?null:JSON.parse(u,e?.reviver),s=(a=r.getItem(n))!=null?a:null;return s instanceof Promise?s.then(i):i(s)},setItem:(n,a)=>r.setItem(n,JSON.stringify(a,e?.replacer)),removeItem:n=>r.removeItem(n)}}const ic=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return ic(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return ic(n)(r)}}}},UL=(t,e)=>(r,n,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...e},s=!1;const u=new Set,c=new Set;let d;try{d=i.getStorage()}catch{}if(!d)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...E)},n,a);const f=ic(i.serialize),m=()=>{const E=i.partialize({...n()});let x;const k=f({state:E,version:i.version}).then(g=>d.setItem(i.name,g)).catch(g=>{x=g});if(x)throw x;return k},v=a.setState;a.setState=(E,x)=>{v(E,x),m()};const y=t((...E)=>{r(...E),m()},n,a);let b;const S=()=>{var E;if(!d)return;s=!1,u.forEach(k=>k(n()));const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,n()))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)return i.deserialize(k)}).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return b=i.merge(k,(g=n())!=null?g:y),r(b,!0),m()}).then(()=>{x?.(b,void 0),s=!0,c.forEach(k=>k(b))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:E=>{i={...i,...E},E.getStorage&&(d=E.getStorage())},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>S(),hasHydrated:()=>s,onHydrate:E=>(u.add(E),()=>{u.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},S(),b||y},$L=(t,e)=>(r,n,a)=>{let i={storage:BL(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...e},s=!1;const u=new Set,c=new Set;let d=i.storage;if(!d)return t((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...S)},n,a);const f=()=>{const S=i.partialize({...n()});return d.setItem(i.name,{state:S,version:i.version})},m=a.setState;a.setState=(S,E)=>{m(S,E),f()};const v=t((...S)=>{r(...S),f()},n,a);a.getInitialState=()=>v;let y;const b=()=>{var S,E;if(!d)return;s=!1,u.forEach(k=>{var g;return k((g=n())!=null?g:v)});const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,(S=n())!=null?S:v))||void 0;return ic(d.getItem.bind(d))(i.name).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==i.version){if(i.migrate)return i.migrate(k.state,k.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return k.state}).then(k=>{var g;return y=i.merge(k,(g=n())!=null?g:v),r(y,!0),f()}).then(()=>{x?.(y,void 0),y=n(),s=!0,c.forEach(k=>k(y))}).catch(k=>{x?.(void 0,k)})};return a.persist={setOptions:S=>{i={...i,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>s,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(c.add(S),()=>{c.delete(S)})},i.skipHydration||b(),y||v},VL=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((ep?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),UL(t,e)):$L(t,e),GL=VL,w4=[{id:1,image:"./frame/frame_1.png",front:"./frame/frame_1_front.png"},{id:2,image:"./frame/frame_2.png",front:"./frame/frame_2_front.png"},{id:3,image:"./frame/frame_3.png",front:"./frame/frame_3_front.png"},{id:4,image:"./frame/frame_4.png",front:"./frame/frame_4_front.png"},{id:5,image:"./frame/frame_5.png",front:"./frame/frame_5_front.png"}],WL=[{id:"Betende_Frau_Maria",image:"./sticker/Betende_Frau_Maria.png"},{id:"Blumentopf",image:"./sticker/Blumentopf.png"},{id:"Blume",image:"./sticker/Blume.png"},{id:"Frau_in_gelbem_Kleid",image:"./sticker/Frau_in_gelbem_Kleid.png"},{id:"Magd",image:"./sticker/Magd.png"},{id:"Mann_liegend",image:"./sticker/Mann_liegend.png"},{id:"Mann",image:"./sticker/Mann.png"},{id:"Mucha_Dekor",image:"./sticker/Mucha_Dekor.png"},{id:"The_Hare",image:"./sticker/The_Hare.png"},{id:"Wasserspeier",image:"./sticker/Wasserspeier.png"}],k4=[{id:"http://www.wikidata.org/entity/Q20355536",name:"A Street in Torello, Italy",year:"1890",country:"Denmark",location:"Statens Museum for Kunst",creator:"Peder Severin Kr\xF8yer",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS1435",identifier:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q20537703",name:"At the French Windows. The Artist's Wife",year:"1897",country:"Denmark",location:"Statens Museum for Kunst",creator:"Laurits Andersen Ring",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS3716",identifier:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297795",name:"Brot! (Bread!)",year:"1924",country:"Germany",location:"Vanderbilt University Fine Arts Gallery",creator:"K\xE4the Kollwitz",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1977/1977.011.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297971",name:"Business-Man, ffrom Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Belgium",location:"Vanderbilt University Fine Arts Gallery",creator:"Frans Masereel",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.032.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q3698180",name:"Calvary",year:"1475",country:"Belgium",location:"Royal Museum of Fine Arts Antwerp",creator:"Antonello da Messina",url:"https://iiif.kmska.be/iiif/2/5/manifest.json",identifier:"https://iiif.kmska.be/c/iiif/2/public@5.tif",image:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103300860",name:"Half-Figure Prophet",year:"1450",country:"France",location:"Vanderbilt University Fine Arts Gallery",creator:"http://www.wikidata.org/.well-known/genid/d7c4865c9fae865605be887d7277ab75",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1975/1975.005.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102967848",name:"Landscape with Shepherds",year:"",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Jan Both",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0195P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q106582838",name:"The Blacksmith Worker",year:"",country:"Switzerland",location:"Vanderbilt University Fine Arts Gallery",creator:"Antonello da Messina",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.036.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q104032628",name:"The Empty Jug",year:"1653",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Adriaen van Ostade",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0845P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102975484",name:"Trostung (Consolation), from Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Austria",location:"Vanderbilt University Fine Arts Gallery",creator:"Georg Ehrlich",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.031.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/100,100/0/default.jpg"}],ui=jL()(zL(GL(t=>({addToArtwork:(e,r)=>t(n=>({artworkList:[...n.artworkList,{id:e,image:r}]})),addToCanvas:(e,r,n)=>t(a=>({canvasList:[...a.canvasList,{brightness:0,height:400,id:`${a.canvasList.length+1}`,image:e,isDragging:!1,opacity:1,width:400,x:r,y:n}]})),addToImageList:e=>t(r=>({imageList:[...r.imageList,...e]})),artworkList:WL,canvasList:[],frame:w4[1],imageList:k4.sort(()=>Math.random()-.5),imageLikeList:[],likeImage:e=>t(r=>({imageLikeList:[...r.imageLikeList,e]})),resetState:()=>t(()=>({imageList:k4.sort(()=>Math.random()-.5),canvasList:[],imageLikeList:[]})),removeFromCanvas:e=>t(r=>({canvasList:r.canvasList.filter(n=>n.id!==e)})),setFrame:e=>t(()=>({frame:w4.find(r=>r.id===e)})),transformCanvasImage:e=>t(r=>({canvasList:r.canvasList.map(n=>n.id!==e.id?n:{...n,height:e.height,width:e.width,x:e.x,y:e.y,brightness:e.brightness,opacity:e.opacity})})),moveCanvasImage:(e,r)=>t(n=>{const a=n.canvasList.findIndex(i=>i.id===e);if(a!==-1){const i=r?a-1:a+1;if(i>=0&&i{const{frame:e}=ui(),[r]=d4(t?e.front:e.image,"anonymous");return J.jsx(c4,{image:r,draggable:!1})},qL=({canvasImage:t,isSelected:e,onSelect:r})=>{const n=I.useRef(),a=I.useRef(),[i]=d4(t.image),s=ui(f=>f.transformCanvasImage);I.useEffect(()=>{var f;e&&(a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw())},[e]),I.useEffect(()=>{const f=new window.Image;f.crossOrigin="Anonymous",f.src=t.image,f.onload=()=>{var m;n.current&&(n.current.image(f),(m=n.current.getLayer())==null||m.batchDraw())}},[t.image]);const u=()=>{s({...t,isDragging:!0})},c=f=>{s({...t,isDragging:!1,x:f.target.x(),y:f.target.y()})},d=()=>{var f;const m=n.current,v=m.scaleX(),y=m.scaleY(),b=Math.max(5,m.width()*v),S=Math.max(m.height()*y);s({...t,x:m.x(),y:m.y(),width:b,height:S}),a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw()};return J.jsxs(J.Fragment,{children:[J.jsx(c4,{draggable:!0,id:t.id,image:i,onClick:r,onDragEnd:c,onDragStart:u,onTap:r,onTransformEnd:d,ref:n,x:t.x,y:t.y,scaleX:.5,scaleY:.5,opacity:t.opacity||1,brightness:t.brightness||0},t.id),e&&J.jsx(sL,{ref:a,flipEnabled:!1,enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]})]})},HL=()=>{const{addToCanvas:t,artworkList:e,canvasList:r,frame:n,moveCanvasImage:a,removeFromCanvas:i,setFrame:s,transformCanvasImage:u}=ui(),c=I.useRef(null),[d,f]=I.useState(""),[m,v]=I.useState(1),[y,b]=I.useState(1),S=1080,E=1080;I.useEffect(()=>{const A=()=>{const F=(window.innerWidth*.9||0)/S;c.current&&(c.current.width(S*F),c.current.height(E*F),c.current.scale({x:F,y:F}))};return A(),window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}},[]);const x=A=>{A.target===A.target.getStage()&&f("")},k=A=>{A.preventDefault();const F=A.dataTransfer.getData("text/plain"),U=e.find(H=>H.id===F);if(U){const H=c.current;if(H){const q=A.clientX-H.container().getBoundingClientRect().left,ne=A.clientY-H.container().getBoundingClientRect().top;t(U.image,q,ne)}}},g=A=>{d&&a(d,A)},C=A=>{v(A);const F=r.find(U=>U.id===d);F&&u({...F,brightness:A})},N=A=>{b(A);const F=r.find(U=>U.id===d);F&&u({...F,opacity:A})},O=()=>{i(d),f("")},D=()=>{navigator.share?navigator.share({title:"GLAMorous Europe",text:"Check out my GLAMorous Europe artwork!",url:window.location.href}).then(()=>console.log("Share successful")).catch(A=>console.error("Error sharing:",A)):console.log("Web Share API not supported")},R=()=>{var A;const F=(A=c.current)==null?void 0:A.toDataURL();F&&vE.saveAs(F,"GLAMorousEurope.png")};return J.jsxs(J.Fragment,{children:[J.jsxs("div",{className:"toolbar",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!0),children:J.jsx(xn,{material:J.jsx(B_,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>g(!1),children:J.jsx(xn,{material:J.jsx(A_,{className:"w-6 h-6"})})}),d&&J.jsxs("div",{children:[J.jsx("label",{htmlFor:"brightnessSlider",children:"Brightness:"}),J.jsx("input",{id:"brightnessSlider",type:"range",min:"0",max:"2",step:"0.01",value:m,onChange:A=>C(parseFloat(A.target.value))}),J.jsx("label",{htmlFor:"opacitySlider",children:"Opacity:"}),J.jsx("input",{id:"opacitySlider",type:"range",min:"0",max:"1",step:"0.01",value:y,onChange:A=>N(parseFloat(A.target.value))})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:O,children:J.jsx(xn,{material:J.jsx(mE,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"mx-auto flex items-center gap-2",onDrop:k,onDragOver:A=>A.preventDefault(),children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.max(1,n.id-1)),children:J.jsx(xn,{material:J.jsx(V_,{className:"w-6 h-6"})})}),J.jsxs(lL,{width:S,height:E,ref:c,onMouseDown:x,onTouchStart:x,children:[J.jsxs(u4,{children:[J.jsx(x4,{front:!1}),r.map(A=>J.jsx(qL,{canvasImage:A,isSelected:A.id===d,onSelect:()=>{f(A.id)}},A.id))]}),J.jsx(u4,{listening:!1,children:J.jsx(x4,{front:!0})})]}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>s(Math.min(5,n.id+1)),children:J.jsx(xn,{material:J.jsx(q_,{className:"w-6 h-6"})})})]}),J.jsxs("div",{className:"flex gap-2 mx-auto",children:[J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:D,children:J.jsx(xn,{material:J.jsx(cE,{className:"w-6 h-6"})})}),J.jsx(Wr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:R,children:J.jsx(xn,{material:J.jsx(L_,{className:"w-6 h-6"})})})]})]})};function KL(){const{t}=Bu(),{artworkList:e}=ui();return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("artworkTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(r=>J.jsx("img",{src:r.image,alt:r.id,role:"presentation",style:{display:"block",maxHeight:"150px",width:"auto",height:"auto",cursor:"move",borderRadius:"5px",margin:"4px"},draggable:!0,onDragStart:n=>{n.dataTransfer.setData("text/plain",r.id)}},r.id))}),e.length===0?J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-20",rounded:!0,inline:!0,children:J.jsx(Dh,{to:"/selection",children:t("artworkEmpty")})}):J.jsx(HL,{})]})}const YL="modulepreload",QL=function(t){return"/"+t},S4={},ZL=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link");n=Promise.all(e.map(i=>{if(i=QL(i),i in S4)return;S4[i]=!0;const s=i.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(r)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":YL,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return n.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};var C4={exports:{}},XL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JL=XL,eF=JL;function _4(){}function E4(){}E4.resetWarningCache=_4;var tF=function(){function t(n,a,i,s,u,c){if(c!==eF){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:E4,resetWarningCache:_4};return r.PropTypes=r,r};C4.exports=tF();var rF=C4.exports;const Rr=Ga(rF);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Jv=function(t,e){return Jv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Jv(t,e)};function P4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var la=function(){return la=Object.assign||function(t){for(var e,r=1,n=arguments.length;rMath.PI?a-2*Math.PI:a)}return e.filter(function(i,s,u){return u.indexOf(i)===s})};function lF(t,e,r,n){n===void 0&&(n=!0);var a=new Image;a.crossOrigin="Anonymous";var i=document.createElement("canvas"),s=i.getContext("2d");if(!s)return r(new Error("CTX is null"),i);a.onerror=function(){r(new Error("Failed to load image"),i)},a.onload=function(){try{if(i.width=a.naturalWidth+2,i.height=a.naturalHeight+2,s.drawImage(a,0,0),e.length<3){r(null,i);return}if(s.beginPath(),s.moveTo(0,0),s.lineTo(i.width,0),s.lineTo(i.width,i.height),s.lineTo(0,i.height),s.lineTo(0,0),s.lineTo(e[0].x+1,e[0].y+1),e.slice(1).forEach(function(g){var C=g.x,N=g.y;return s.lineTo(C+1,N+1)}),s.lineTo(e[0].x+1,e[0].y+1),s.lineTo(0,0),s.closePath(),s.clip("evenodd"),s.globalCompositeOperation="destination-out",s.fill(),n){var u=e.map(function(g){var C=g.x;return C+1}),c=e.map(function(g){var C=g.y;return C+1}),d=[Math.min.apply(null,u),Math.min.apply(null,c)],f=d[0],m=d[1],v=[Math.max.apply(null,u),Math.max.apply(null,c)],y=v[0],b=v[1],S=[y-f,b-m],E=S[0],x=S[1],k=s.getImageData(f,m,E,x);i.width=E,i.height=x,s.putImageData(k,0,0)}r(null,i)}catch(g){r(g instanceof Error?g:new Error(String(g)),i)}},a.src=t}var O4=function(){function t(e){this.getSvgElement=e}return t.prototype.getSvg=function(){var e=this.getSvgElement();if(!e)throw new Error("SVG is null");return e},t.prototype.getCTM=function(){var e=this.getSvg(),r=e.getCTM();if(r===null){var n=e.querySelector('rect[visibility="hidden"]');r=n.getCTM()}if(!r)throw new Error("CTM is null");return r},t.prototype.getViewboxSize=function(){return this.getSvg().viewBox.baseVal},t.prototype.getRealSize=function(){var e=this.getSvg();return{width:e.clientWidth,height:e.clientHeight}},t.prototype.getViewboxOffset=function(){var e=this.getSvg(),r=this.getRealSize(),n=r.width,a=r.height,i=this.getViewboxSize(),s=i.width,u=i.height,c=Object.assign(e.createSVGPoint(),{x:n,y:a}),d=this.getCTM(),f=c.matrixTransform(d.inverse()),m=f.x,v=f.y;return{x:m-s,y:v-u}},t.prototype.convertViewboxPointsToReal=function(e){var r=this.getSvg(),n=this.getCTM();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u)})},t.prototype.convertRealPointsToViewbox=function(e){var r=this.getSvg(),n=this.getCTM().inverse();return e.map(function(a){var i=a.x,s=a.y,u=Object.assign(r.createSVGPoint(),{x:i,y:s}).matrixTransform(n);return Qo(u,1e3)})},t.prototype.getBorderPoints=function(e){e===void 0&&(e=!0);var r=this.getViewboxSize(),n=r.width,a=r.height,i=this.getViewboxOffset(),s=i.x,u=i.y,c=[{x:-s,y:-u},{x:n+s,y:-u},{x:n+s,y:a+u},{x:-s,y:a+u}];return e&&c.push({x:-s,y:-u}),c},t.prototype.isAboveTheBorder=function(e){var r=e.x,n=e.y,a=this.getViewboxSize(),i=a.width,s=a.height,u=this.getViewboxOffset(),c=u.x,d=u.y;return r<-c||r>i+c||n<-d||n>s+d},t.prototype.getMouseCoordinates=function(e){var r=e,n=r.changedTouches&&r.touches?r.changedTouches[0]||r.touches[0]:r,a=n.clientX,i=n.clientY,s=this.getSvg(),u=s.getScreenCTM();if(!u)throw new Error("ScreenCTM is null");var c=s.createSVGPoint();c.x=a,c.y=i;var d=c.matrixTransform(u.inverse()),f=d.x,m=d.y;return{x:f,y:m}},t}(),R4=function(t){return function(e){P4(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.ref=j.createRef(),n.svg=new O4(function(){var a,i;return(i=(a=n.ref)===null||a===void 0?void 0:a.current)===null||i===void 0?void 0:i.ownerSVGElement}),n.dragLastPosition=null,n.wasMoved=!1,n.onMouseTouchDown=function(a){if(a.target===n.ref.current&&n.props.draggable){a.stopImmediatePropagation(),a.preventDefault();var i=a.target;n.dragLastPosition=n.getMousePosition(a),i.ownerSVGElement&&i.ownerSVGElement.focus({preventScroll:!0})}},n.onMouseTouchMove=function(a){if(n.dragLastPosition){a.stopImmediatePropagation(),a.preventDefault();var i=n.getMousePosition(a),s=i.x,u=i.y,c=s-n.dragLastPosition.x,d=u-n.dragLastPosition.y;!n.wasMoved&&n.props.onDragStart&&n.props.onDragStart({x:n.dragLastPosition.x,y:n.dragLastPosition.y,dx:c,dy:d}),n.props.onDrag&&n.props.onDrag({dx:c,dy:d}),n.dragLastPosition={x:s,y:u},n.wasMoved=!0}},n.onMouseTouchUp=function(a){n.dragLastPosition&&n.wasMoved&&(a.stopImmediatePropagation(),a.preventDefault(),(a instanceof MouseEvent||!a.touches)&&window.addEventListener("click",function(i){return i.stopPropagation()},{capture:!0,once:!0}),n.props.onDragEnd&&n.props.onDragEnd({x:n.dragLastPosition.x,y:n.dragLastPosition.y})),n.dragLastPosition=null,n.wasMoved=!1},n}return r.prototype.render=function(){var n=this.props,a=n.draggable;n.onDrag,n.onDragStart,n.onDragEnd;var i=M4(n,["draggable","onDrag","onDragStart","onDragEnd"]);return j.createElement(t,la({ref:this.ref},i,{draggable:a}))},r.prototype.componentDidUpdate=function(n){n.draggable&&!this.props.draggable&&this.dragLastPosition&&this.wasMoved&&(this.props.onDragEnd&&this.props.onDragEnd({x:this.dragLastPosition.x,y:this.dragLastPosition.y}),this.dragLastPosition=null,this.wasMoved=!1)},r.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onMouseTouchDown,!0),window.addEventListener("mousemove",this.onMouseTouchMove,!0),window.addEventListener("mouseup",this.onMouseTouchUp,!0),window.addEventListener("touchstart",this.onMouseTouchDown,!0),window.addEventListener("touchmove",this.onMouseTouchMove,!0),window.addEventListener("touchend",this.onMouseTouchUp,!0)},r.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onMouseTouchDown),window.removeEventListener("mousemove",this.onMouseTouchMove),window.removeEventListener("mouseup",this.onMouseTouchUp),window.removeEventListener("touchstart",this.onMouseTouchDown),window.removeEventListener("touchmove",this.onMouseTouchMove),window.removeEventListener("touchend",this.onMouseTouchUp)},r.prototype.getMousePosition=function(n){var a=n;return this.svg.getMouseCoordinates(a)},r}(j.Component)},uF=R4(j.forwardRef(function(t,e){var r=t.path,n=t.animate,a=t.draggable;return j.createElement("polyline",{ref:e,style:{cursor:a?"move":""},points:r.map(function(i){var s=i.x,u=i.y;return s+","+u}).join(" "),fill:"rgba(0,0,0,0)",stroke:"white",strokeWidth:"1.5",shapeRendering:"geometricPrecision",strokeDasharray:"3",strokeDashoffset:"0",vectorEffect:"non-scaling-stroke"},n&&j.createElement("animate",{attributeName:"stroke-dashoffset",values:"0;1000;0",dur:"100s",repeatCount:"indefinite"}))}));function cF(t){var e=t.path;return j.createElement("polygon",{style:{pointerEvents:"none",transform:"translate(-1px, -1px)"},points:e.map(function(r){var n=r.x,a=r.y;return n+","+a}).join(" "),fill:"rgba(0, 0, 0, 0.5)",fillRule:"evenodd",stroke:"null",shapeRendering:"geometricPrecision"})}var dF=R4(j.forwardRef(function(t,e){var r=t.x,n=t.y,a=t.onClickTouchEvent,i=t.draggable,s=t.style,u=s.cursor,c=u===void 0?i?"move":"default":u,d=M4(s,["cursor"]);return j.createElement("rect",{style:la({cursor:c},d),ref:e,x:r-10,y:n-10,onClick:function(f){f.stopPropagation(),f.preventDefault(),a(f)},onTouchEnd:function(f){f.stopPropagation(),f.preventDefault(),a(f)},width:"20px",height:"20",fill:"rgba(0, 0, 0, 0)",stroke:"white",strokeWidth:"1.25",vectorEffect:"non-scaling-stroke"})})),pr;(function(t){t.ADD="ADD",t.DELETE="DELETE",t.MODIFY="MODIFY",t.MOVE="MOVE",t.RESET="RESET",t.CHANGE="CHANGE"})(pr||(pr={}));function hF(t,e){var r=t.points.length;switch(e.type){case pr.ADD:{if(t.closed)return[t,!1];if(r>0&&rp(t.points[r-1],e.payload)||r>1&&rp(t.points[r-2],e.payload))return[t,!1];var n=r>2&&rp(t.points[0],e.payload);return n?[{points:Yo([],t.points),closed:!0},!0]:[{points:Yo(Yo([],t.points,!0),[e.payload]),closed:!1},!0]}case pr.DELETE:return[{points:Yo([],t.points.filter(function(d,f){return e.payload!==f})),closed:r>4&&t.closed},!0];case pr.MODIFY:{var a=t.points[e.payload.index],i=a.x,s=a.y,u=t.points.map(function(d){var f=d.x,m=d.y;return f===i&&m===s?{x:e.payload.x,y:e.payload.y}:{x:f,y:m}});return[{points:u,closed:t.closed},!!(e.payload.x||e.payload.y)]}case pr.MOVE:return[{points:t.points.map(function(d){var f=d.x,m=d.y;return{x:f+e.payload.x,y:m+e.payload.y}}),closed:t.closed},!!(e.payload.x||e.payload.y)];case pr.CHANGE:{var c=!np(e.payload,t.points);return[{points:e.payload,closed:c?e.payload.length>2:t.closed},c]}case pr.RESET:return[{points:[],closed:!1},!!t.points.length];default:return[t,!1]}}var fF=function(t){P4(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=j.createRef(),n.svgRef=j.createRef(),n.svg=new O4(function(){var a;return(a=n.svgRef)===null||a===void 0?void 0:a.current}),n.angles=[],n.path={points:[],closed:!1},n.lastEmittedPoints=[],n.lastUpdatedPoints=[],n.imgError=!1,n.setPathFromPropsOnMediaLoad=!0,n.hidePointer=function(){var a=n.path.points[n.path.points.length-1]||{x:0,y:0};n.setPointer(la({},a),!0)},n.onShapeDrag=function(a){var i=a.dx,s=a.dy,u=n.path.points.map(function(c){var d=c.x,f=c.y;return{x:d+i,y:f+s}});u.some(function(c){return n.svg.isAboveTheBorder(c)})||n.dispatchPathAction({type:pr.MOVE,payload:{x:i,y:s}})},n.onPointDrag=function(a,i){var s=i.dx,u=i.dy,c=la({},n.path.points[a]);c.x+=s,c.y+=u,n.svg.isAboveTheBorder(c)||n.dispatchPathAction({type:pr.MODIFY,payload:la(la({},c),{index:a})})},n.onPointClick=function(a){n.isLoaded()&&!n.props.disabled&&!n.path.closed&&n.dispatchPathAction({type:pr.ADD,payload:n.path.points[a]})},n.onDragEnd=function(){n.checkIfPathUpdated(!1)},n.onMediaLoaded=function(a){n.setPathFromPropsOnMediaLoad&&(n.setPathStateFromProps(),n.setPathFromPropsOnMediaLoad=!1),n.imgError=!1,n.props.onImageLoad(a)},n.onMediaError=function(a){n.dispatchPathAction({type:pr.RESET}),n.imgError=!0,n.props.onImageError(a)},n.onClickTouchEvent=function(a){if(n.isLoaded()&&!n.props.disabled){if(n.path.closed){a.target===n.svgRef.current&&n.dispatchPathAction({type:pr.RESET});return}var i=n.getMousePosition(a)[0];n.svg.isAboveTheBorder(i)?n.hidePointer():n.dispatchPathAction({type:pr.ADD,payload:Qo(i,1e3),pointer:i})}},n.onClick=function(a){n.onClickTouchEvent(a)},n.onTouchEnd=function(a){a.cancelable&&(a.preventDefault(),n.onClickTouchEvent(a)),n.hidePointer()},n.onMouseTouchMove=function(a){if(n.isLoaded()){var i=n.getMousePosition(a)[0];n.setPointer(i)}},n.onContextMenu=function(a){if(n.isLoaded()&&(a.preventDefault(),!n.props.disabled&&!n.path.closed)){var i=n.getMousePosition(a),s=i[0],u=i[1].index;u>-1?n.dispatchPathAction({type:pr.DELETE,payload:u,pointer:s}):n.setPointer(s)}},n.state={path:{points:[],closed:!1},pointer:{x:r.viewBox.width/2,y:r.viewBox.width/2}},n}return e.prototype.render=function(){var r=this;return j.createElement("div",{className:nF({ReactFreeSelect__Component:!0,ReactFreeSelect__Closed:this.state.path.closed,ReactFreeSelect__Disabled:this.props.disabled}),style:la({display:"inline-block",position:"relative",margin:"0",padding:"0",fontSize:"0",cursor:this.props.disabled?"not-allowed":"default"},this.props.style)},j.createElement("img",{ref:this.imageRef,src:this.props.src,alt:this.props.imageAlt,crossOrigin:this.props.crossOrigin,style:this.props.imageStyle,onLoad:this.onMediaLoaded,onError:this.onMediaError}),j.createElement("svg",{ref:this.svgRef,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden",userSelect:"none",touchAction:"none"},viewBox:"0 0 "+this.props.viewBox.width+" "+this.props.viewBox.height,onMouseMove:this.onMouseTouchMove,onTouchMove:this.onMouseTouchMove,onClick:this.onClick,onTouchEnd:this.onTouchEnd,onContextMenu:this.onContextMenu,onMouseLeave:this.hidePointer},j.createElement("rect",{visibility:"hidden"}),!!this.state.path.points.length&&j.createElement(cF,{path:this.getPolygonPoints()}),j.createElement(uF,{draggable:this.state.path.closed&&!this.props.disabled,onDrag:this.onShapeDrag,onDragEnd:this.onDragEnd,animate:!this.props.disabled,path:this.getPolylinePoints()}),this.getRoundedPoints().map(function(n,a){var i=n.x,s=n.y;return j.createElement(dF,{key:a,x:i,y:s,draggable:!r.props.disabled,style:{cursor:!a&&r.state.path.points.length>2&&!r.state.path.closed?"pointer":void 0},onDrag:function(u){var c=u.dx,d=u.dy;return r.onPointDrag(a,{dx:c,dy:d})},onDragEnd:r.onDragEnd,onClickTouchEvent:function(){return r.onPointClick(a)}})})))},e.prototype.componentDidUpdate=function(r){!r.disabled&&this.props.disabled&&!this.path.closed&&this.hidePointer(),r.src&&r.src!==this.props.src?this.dispatchPathAction({type:pr.RESET}):np(r.value,this.props.value)||(this.isLoaded()?this.setPathStateFromProps():this.setPathFromPropsOnMediaLoad=!0)},e.prototype.convertPoints=function(r){var n=this.getAspectRatio();return this.svg.convertViewboxPointsToReal(r).map(function(a){var i=a.x,s=a.y;return{x:Math.round(i/n.x),y:Math.round(s/n.y)}})},e.prototype.checkIfPathUpdated=function(r){if(this.path.closed||r){var n=this.convertPoints(this.path.points);np(n,this.lastUpdatedPoints)||(this.emitOnComplete(n),this.lastUpdatedPoints=n.map(function(a){var i=a.x,s=a.y;return{x:i,y:s}}))}},e.prototype.emitOnChange=function(r){var n=r.points;if(this.props.onChange){var a=this.convertPoints(n);this.lastEmittedPoints=a,this.props.onChange(a)}},e.prototype.emitOnComplete=function(r){this.props.onComplete&&this.props.onComplete(r)},e.prototype.setPointer=function(r,n){var a=r.x,i=r.y;n===void 0&&(n=!1),(n||!this.props.disabled)&&this.setState({path:this.path,pointer:{x:a,y:i}})},e.prototype.dispatchPathAction=function(r){var n=this.path.closed,a=hF(this.path,r),i=a[0],s=a[1];i.points=i.points.map(function(u){return Qo(u,1e3)}),s&&(this.path=i,this.setState({pointer:r.pointer||this.path.points[this.path.points.length-1]||{x:0,y:0},path:i}),this.angles=sF(i.points),this.emitOnChange(i),[pr.MODIFY,pr.MOVE].includes(r.type)||this.checkIfPathUpdated(n))},e.prototype.isLoaded=function(){if(this.imgError||!this.svgRef.current)return!1;var r=this.svgRef.current;return!!(r.width.baseVal.value&&r.height.baseVal.value)},e.prototype.getAspectRatio=function(){return this.imageRef.current?{x:this.imageRef.current.clientWidth/this.imageRef.current.naturalWidth,y:this.imageRef.current.clientHeight/this.imageRef.current.naturalHeight}:{x:NaN,y:NaN}},e.prototype.setPathStateFromProps=function(){if(!np(this.lastEmittedPoints,this.props.value)){var r=this.getAspectRatio(),n=this.svg.convertRealPointsToViewbox(this.props.value.map(function(a){var i=a.x,s=a.y;return{x:i*r.x,y:s*r.y}}));this.dispatchPathAction({type:pr.CHANGE,payload:n})}},e.prototype.getRoundedPoints=function(){return this.state.path.points.map(function(r){return Qo(r)})},e.prototype.getBorder=function(){return this.svg.getBorderPoints().map(function(r){return Qo(r)}).map(function(r){var n=r.x,a=r.y;return{x:n-1,y:a+1}})},e.prototype.getPolygonPoints=function(){var r=this.getRoundedPoints(),n=this.getBorder();return this.state.path.closed?Yo(Yo(Yo([],n,!0),r,!0),[r[0],n[0]]):n},e.prototype.getPolylinePoints=function(){var r=this.getRoundedPoints();return r.concat(this.state.path.closed?r[0]:Qo(this.state.pointer))},e.prototype.getMousePosition=function(r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.svg.getMouseCoordinates(r);if(a){var s=navigator.platform.includes("Mac")?r.metaKey:r.ctrlKey,u=this.path.points[this.path.points.length-1];s&&u&&(r.shiftKey?i=oF(u,i,this.angles):i=iF(u,i,Math.PI/12))}var c=aF(this.path.points,i,10),d=c.point,f=c.index;return n&&f>-1&&(i=la({},d)),[i,{point:d,index:f}]},e.propTypes={value:Rr.arrayOf(Rr.exact({x:Rr.number.isRequired,y:Rr.number.isRequired})),style:Rr.shape({}),viewBox:Rr.exact({width:Rr.number.isRequired,height:Rr.number.isRequired}),disabled:Rr.bool,onChange:Rr.func,onComplete:Rr.func,src:Rr.string.isRequired,imageAlt:Rr.string,crossOrigin:Rr.string,imageStyle:Rr.shape({}),onImageLoad:Rr.func,onImageError:Rr.func},e.defaultProps={value:[],style:{},imageStyle:{},viewBox:{width:1e3,height:1e3},disabled:!1,onImageError:Function.prototype,onImageLoad:Function.prototype},e}(j.Component);async function pF(t){try{const e=await fetch(t);if(!e.ok)throw new Error(e.statusText);const r=await e.json();return"@type"in r?r["@type"]!="sc:Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type of sc:Manifest but has a type of: "+r["@type"]),null):mF(r):"type"in r?r.type!="Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a type of Manifest but has a type of: "+r.type),null):vF(r):(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type or type value of Manifest"),null)}catch(e){return console.log("I was unable to get the Manifest you supplied due to: "+e),null}}function gF(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function mF(t){var e,r,n;if("sequences"in t){let a=t.sequences;gF(a)&&(a=[a]);let i=!1;for(const s of a)if("canvases"in s){i=!0;for(const u of s.canvases){const c=(n=(r=(e=u.images[0])==null?void 0:e.resource)==null?void 0:r.service)==null?void 0:n["@id"];if(c)return c}}else i||console.log("The manifest you supplied contains no canvases so there are no images to show.")}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function vF(t){if("items"in t){const e=t.items;for(const r of e){const n=r.items[0].items[0].body.service[0]["@id"];if(n)return n}}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function T4(t,e){const r=window.getComputedStyle(t);return parseInt(r.getPropertyValue(e),10)}function yF(t,e){const{width:r,height:n}=e,a=1080,i="0",s="default",u=".jpg",c=document.querySelector(".displayregioncontainer"),d=document.querySelector(".displayregion");if(!c||!d)throw new Error("Canvas or selection element not found");const{clientWidth:f,clientHeight:m}=c,v=r*m/n,y=(f-v)/2,b=r/v,S=9,E=T4(d,"left"),x=T4(d,"top"),k=Math.round(d.clientWidth+S),g=Math.round(d.clientHeight+S),C=Math.max(Math.round((E-y)*b),0),N=Math.max(Math.round(x*b),0),O=Math.min(Math.round(k*b),r),D=Math.min(Math.round(g*b),n),R=`${C},${N},${O},${D}`;return console.log(`Calculated selection region (x, y, width, height): ${R}`),`${t}/${R}/${a},/${i}/${s}${u}`}const L4={fetchIIIFIdentifier:async t=>{try{return await pF(t)}catch(e){return console.error(e),null}},getCroppedImagePath:async t=>{try{const e=t+"/info.json",r=await fetch(e);if(!r.ok)throw new Error(r.statusText);const n=await r.json();return yF(t,n)}catch(e){console.error(e)}}},bF=I.lazy(()=>ZL(()=>import("./index-kb1q0BGh.js"),Pp([]))),wF={canvasBackgroundColor:"010A01",gestureSettingsTouch:{dragToPan:!1,dblClickToZoom:!1,dblClickDragToZoom:!1,flickEnabled:!1,pinchRotate:!0},informationPanel:{open:!1},openSeadragon:{loadTilesWithAjax:!0,showNavigationControl:!1,showHomeControl:!1,showFullPageControl:!1,showRotationControl:!1,showFlipControl:!1},showTitle:!1,showIIIFBadge:!1,showZoomControl:!1},kF={colors:{primary:"#BC13FE",accent:"#BC13FE",secondary:"#EDECEA"}};function xF(){const{t}=Bu(),{imageLikeList:e}=ui(),r=ui(m=>m.addToArtwork),[n,a]=I.useState(e[0]||null),i=m=>{a(m)},[s,u]=I.useState([]),[c,d]=I.useState(),f=async(m,v)=>{try{const y=await L4.getCroppedImagePath(v);console.log("Cropped image path: ",y),y&&r(m,y)}catch(y){console.error("Error:",y)}};return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx("div",{className:"p-2 m-4",children:J.jsx("h1",{className:"text-2xl",children:t("collectionTitle")})}),J.jsx(ti,{className:"flex flex-wrap mx-auto",children:e.map(m=>J.jsx("img",{src:m.thumbnail,alt:m.name,onClick:()=>i(m),style:{cursor:"pointer",margin:"4px"},role:"presentation"},m.id))}),n&&J.jsxs(ti,{className:"space-y-4",children:[J.jsx(fF,{value:s,src:n.image,onChange:m=>{u(m)},onComplete:m=>{m.length&&lF(n.image,m,(v,y)=>{v||d(y.toDataURL())})}}),J.jsxs("div",{children:["Points: ",s.map(({x:m,y:v})=>`${m},${v}`).join(" ")]}),J.jsx("div",{children:J.jsx("img",{src:c,alt:""})}),J.jsx(I.Suspense,{fallback:J.jsxs("h2",{children:["\u{1F300} ",t("collectionLoading")]}),children:J.jsx(bF,{iiifContent:n.url,options:wF,customTheme:kF})}),J.jsx(Wr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-16",rounded:!0,inline:!0,onClick:()=>f(n?.id,n?.identifier),children:t("collectionAddText")})]})]})}function SF(){const{t}=Bu();return J.jsx(w5,{theme:"material",children:J.jsxs(G1,{children:[J.jsxs(N5,{labels:!0,icons:!0,className:"left-0 bottom-0 fixed k-color-brand-primary text-center",innerClassName:"tabbar-inner",children:[J.jsx(Wu,{active:qi({path:Un("/").pathname,end:!0}),to:"/",component:zh,icon:J.jsx(xn,{material:J.jsx(aE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/").pathname,end:!0})&&"animate-pulse"}`}),label:t("start"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/selection").pathname,end:!0}),to:"/selection",component:zh,icon:J.jsx(xn,{material:J.jsx(tE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/selection").pathname,end:!0})&&"animate-pulse"}`}),label:t("selection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/collection").pathname,end:!0}),to:"/collection",component:zh,icon:J.jsx(xn,{material:J.jsx(fE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/collection").pathname,end:!0})&&"animate-pulse"}`}),label:t("collection"),touchRipple:!1}),J.jsx(Wu,{active:qi({path:Un("/creation").pathname,end:!0}),to:"/creation",component:zh,icon:J.jsx(xn,{material:J.jsx(sE,{className:"w-10 h-10"}),className:`transition duration-300 ${qi({path:Un("/creation").pathname,end:!0})&&"animate-pulse"}`}),label:t("artwork"),touchRipple:!1})]}),J.jsx("main",{className:"h-[calc(100%_-_128px)] overflow-auto",children:J.jsx(m_,{})})]})})}var F4={exports:{}},j4={exports:{}},A4={exports:{}},D4={exports:{}},z4={exports:{}},ey=Object.defineProperty,CF=Object.getOwnPropertyDescriptor,_F=Object.getOwnPropertyNames,EF=Object.prototype.hasOwnProperty,B4=(t,e)=>{for(var r in e)ey(t,r,{get:e[r],enumerable:!0})},PF=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _F(e))!EF.call(t,a)&&a!==r&&ey(t,a,{get:()=>e[a],enumerable:!(n=CF(e,a))||n.enumerable});return t},MF=t=>PF(ey({},"__esModule",{value:!0}),t),U4={};B4(U4,{FluidValue:()=>HF,Globals:()=>$4,addFluidObserver:()=>KF,callFluidObserver:()=>b8,callFluidObservers:()=>qF,clamp:()=>n8,colorToRgba:()=>hy,colors:()=>DF,createInterpolator:()=>fy,createStringInterpolator:()=>ej,defineHidden:()=>OF,deprecateDirectCall:()=>aj,deprecateInterpolate:()=>rj,each:()=>Y4,eachProp:()=>TF,easings:()=>VF,flush:()=>Q4,flushCalls:()=>FF,frameLoop:()=>e8,getFluidObservers:()=>WF,getFluidValue:()=>y8,hasFluidValue:()=>GF,hex3:()=>l8,hex4:()=>u8,hex6:()=>c8,hex8:()=>d8,hsl:()=>o8,hsla:()=>s8,is:()=>Ea,isAnimatedString:()=>ij,isEqual:()=>RF,isSSR:()=>ip,noop:()=>K4,onResize:()=>C8,onScroll:()=>fj,once:()=>gy,prefix:()=>gp,raf:()=>ut,removeFluidObserver:()=>YF,rgb:()=>a8,rgba:()=>i8,setFluidGetter:()=>w8,toArray:()=>LF,useConstant:()=>gj,useForceUpdate:()=>bj,useIsomorphicLayoutEffect:()=>vy,useMemoOne:()=>wj,useOnce:()=>Sj,usePrev:()=>_j,useReducedMotion:()=>Pj});var IF=MF(U4),$4={};B4($4,{assign:()=>J4,colors:()=>no,createStringInterpolator:()=>sy,skipAnimation:()=>X4,to:()=>Z4,willAdvance:()=>ly});var ty=sc(),ut=t=>oc(t,ty),ry=sc();ut.write=t=>oc(t,ry);var ap=sc();ut.onStart=t=>oc(t,ap);var ny=sc();ut.onFrame=t=>oc(t,ny);var ay=sc();ut.onFinish=t=>oc(t,ay);var gl=[];ut.setTimeout=(t,e)=>{let r=ut.now()+e,n=()=>{let i=gl.findIndex(s=>s.cancel==n);~i&&gl.splice(i,1),ro-=~i?1:0},a={time:r,handler:t,cancel:n};return gl.splice(V4(r),0,a),ro+=1,G4(),a};var V4=t=>~(~gl.findIndex(e=>e.time>t)||~gl.length);ut.cancel=t=>{ap.delete(t),ny.delete(t),ay.delete(t),ty.delete(t),ry.delete(t)},ut.sync=t=>{oy=!0,ut.batchedUpdates(t),oy=!1},ut.throttle=t=>{let e;function r(){try{t(...e)}finally{e=null}}function n(...a){e=a,ut.onStart(r)}return n.handler=t,n.cancel=()=>{ap.delete(r),e=null},n};var iy=typeof window<"u"?window.requestAnimationFrame:()=>{};ut.use=t=>iy=t,ut.now=typeof performance<"u"?()=>performance.now():Date.now,ut.batchedUpdates=t=>t(),ut.catch=console.error,ut.frameLoop="always",ut.advance=()=>{ut.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):q4()};var to=-1,ro=0,oy=!1;function oc(t,e){oy?(e.delete(t),t(0)):(e.add(t),G4())}function G4(){to<0&&(to=0,ut.frameLoop!=="demand"&&iy(W4))}function NF(){to=-1}function W4(){~to&&(iy(W4),ut.batchedUpdates(q4))}function q4(){let t=to;to=ut.now();let e=V4(to);if(e&&(H4(gl.splice(0,e),r=>r.handler()),ro-=e),!ro){NF();return}ap.flush(),ty.flush(t?Math.min(64,to-t):16.667),ny.flush(),ry.flush(),ay.flush()}function sc(){let t=new Set,e=t;return{add(r){ro+=e==t&&!t.has(r)?1:0,t.add(r)},delete(r){return ro-=e==t&&t.has(r)?1:0,t.delete(r)},flush(r){e.size&&(t=new Set,ro-=e.size,H4(e,n=>n(r)&&t.add(n)),ro+=t.size,e=t)}}}function H4(t,e){t.forEach(r=>{try{e(r)}catch(n){ut.catch(n)}})}function K4(){}var OF=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),Ea={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function RF(t,e){if(Ea.arr(t)){if(!Ea.arr(e)||t.length!==e.length)return!1;for(let r=0;rt.forEach(e);function TF(t,e,r){if(Ea.arr(t)){for(let n=0;nEa.und(t)?[]:Ea.arr(t)?t:[t];function Q4(t,e){if(t.size){let r=Array.from(t);t.clear(),Y4(r,e)}}var FF=(t,...e)=>Q4(t,r=>r(...e)),ip=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sy,Z4,no=null,X4=!1,ly=K4,J4=t=>{t.to&&(Z4=t.to),t.now&&(ut.now=t.now),t.colors!==void 0&&(no=t.colors),t.skipAnimation!=null&&(X4=t.skipAnimation),t.createStringInterpolator&&(sy=t.createStringInterpolator),t.requestAnimationFrame&&ut.use(t.requestAnimationFrame),t.batchedUpdates&&(ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(ly=t.willAdvance),t.frameLoop&&(ut.frameLoop=t.frameLoop)},lc=new Set,Vn=[],uy=[],op=0,e8={get idle(){return!lc.size&&!Vn.length},start(t){op>t.priority?(lc.add(t),ut.onStart(jF)):(t8(t),ut(cy))},advance:cy,sort(t){if(op)ut.onFrame(()=>e8.sort(t));else{let e=Vn.indexOf(t);~e&&(Vn.splice(e,1),r8(t))}},clear(){Vn=[],lc.clear()}};function jF(){lc.forEach(t8),lc.clear(),ut(cy)}function t8(t){Vn.includes(t)||r8(t)}function r8(t){Vn.splice(AF(Vn,e=>e.priority>t.priority),0,t)}function cy(t){let e=uy;for(let r=0;r0}function AF(t,e){let r=t.findIndex(e);return r<0?t.length:r}var n8=(t,e,r)=>Math.min(Math.max(r,t),e),DF={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ua="[-+]?\\d*\\.?\\d+",sp=ua+"%";function lp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var a8=new RegExp("rgb"+lp(ua,ua,ua)),i8=new RegExp("rgba"+lp(ua,ua,ua,ua)),o8=new RegExp("hsl"+lp(ua,sp,sp)),s8=new RegExp("hsla"+lp(ua,sp,sp,ua)),l8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,u8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,c8=/^#([0-9a-fA-F]{6})$/,d8=/^#([0-9a-fA-F]{8})$/;function zF(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=c8.exec(t))?parseInt(e[1]+"ff",16)>>>0:no&&no[t]!==void 0?no[t]:(e=a8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|255)>>>0:(e=i8.exec(t))?(ml(e[1])<<24|ml(e[2])<<16|ml(e[3])<<8|p8(e[4]))>>>0:(e=l8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=d8.exec(t))?parseInt(e[1],16)>>>0:(e=u8.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=o8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|255)>>>0:(e=s8.exec(t))?(h8(f8(e[1]),up(e[2]),up(e[3]))|p8(e[4]))>>>0:null}function dy(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function h8(t,e,r){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n,i=dy(a,n,t+1/3),s=dy(a,n,t),u=dy(a,n,t-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(u*255)<<8}function ml(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function f8(t){return(parseFloat(t)%360+360)%360/360}function p8(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function up(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function hy(t){let e=zF(t);if(e===null)return t;e=e||0;let r=(e&4278190080)>>>24,n=(e&16711680)>>>16,a=(e&65280)>>>8,i=(e&255)/255;return`rgba(${r}, ${n}, ${a}, ${i})`}var fy=(t,e,r)=>{if(Ea.fun(t))return t;if(Ea.arr(t))return fy({range:t,output:e,extrapolate:r});if(Ea.str(t.output[0]))return sy(t);let n=t,a=n.output,i=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(d=>d);return d=>{let f=UF(d,i);return BF(d,i[f],i[f+1],a[f],a[f+1],c,s,u,n.map)}};function BF(t,e,r,n,a,i,s,u,c){let d=c?c(t):t;if(dr){if(u==="identity")return d;u==="clamp"&&(d=r)}return n===a?n:e===r?t<=e?n:a:(e===-1/0?d=-d:r===1/0?d=d-e:d=(d-e)/(r-e),d=i(d),n===-1/0?d=-d:a===1/0?d=d+n:d=d*(a-n)+n,d)}function UF(t,e){for(var r=1;r=t);++r);return r-1}var $F=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*t,a=e==="end"?Math.floor(n):Math.ceil(n);return n8(0,1,a/t)},cp=1.70158,dp=cp*1.525,g8=cp+1,m8=2*Math.PI/3,v8=2*Math.PI/4.5,hp=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,VF={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>g8*t*t*t-cp*t*t,easeOutBack:t=>1+g8*Math.pow(t-1,3)+cp*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((dp+1)*2*t-dp)/2:(Math.pow(2*t-2,2)*((dp+1)*(t*2-2)+dp)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*m8),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*m8)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*v8))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*v8)/2+1,easeInBounce:t=>1-hp(1-t),easeOutBounce:hp,easeInOutBounce:t=>t<.5?(1-hp(1-2*t))/2:(1+hp(2*t-1))/2,steps:$F},uc=Symbol.for("FluidValue.get"),vl=Symbol.for("FluidValue.observers"),GF=t=>!!(t&&t[uc]),y8=t=>t&&t[uc]?t[uc]():t,WF=t=>t[vl]||null;function b8(t,e){t.eventObserved?t.eventObserved(e):t(e)}function qF(t,e){let r=t[vl];r&&r.forEach(n=>{b8(n,e)})}var HF=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");w8(this,t)}},w8=(t,e)=>k8(t,uc,e);function KF(t,e){if(t[uc]){let r=t[vl];r||k8(t,vl,r=new Set),r.has(e)||(r.add(e),t.observerAdded&&t.observerAdded(r.size,e))}return e}function YF(t,e){let r=t[vl];if(r&&r.has(e)){let n=r.size-1;n?r.delete(e):t[vl]=null,t.observerRemoved&&t.observerRemoved(n,e)}}var k8=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),fp=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,QF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,x8=new RegExp(`(${fp.source})(%|[a-z]+)`,"i"),ZF=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,S8=t=>{let[e,r]=XF(t);if(!e||ip())return t;let n=window.getComputedStyle(document.documentElement).getPropertyValue(e);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||t:r&&pp.test(r)?S8(r):r||t},XF=t=>{let e=pp.exec(t);if(!e)return[,];let[,r,n]=e;return[r,n]},py,JF=(t,e,r,n,a)=>`rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,ej=t=>{py||(py=no?new RegExp(`(${Object.keys(no).join("|")})(?!\\w)`,"g"):/^\b$/);let e=t.output.map(a=>y8(a).replace(pp,S8).replace(QF,hy).replace(py,hy)),r=e.map(a=>a.match(fp).map(Number)),n=r[0].map((a,i)=>r.map(s=>{if(!(i in s))throw Error('The arity of each "output" value must be equal');return s[i]})).map(a=>fy({...t,output:a}));return a=>{var i;let s=!x8.test(e[0])&&((i=e.find(c=>x8.test(c)))==null?void 0:i.replace(fp,"")),u=0;return e[0].replace(fp,()=>`${n[u++](a)}${s||""}`).replace(ZF,JF)}},gp="react-spring: ",gy=t=>{let e=t,r=!1;if(typeof e!="function")throw new TypeError(`${gp}once requires a function parameter`);return(...n)=>{r||(e(...n),r=!0)}},tj=gy(console.warn);function rj(){tj(`${gp}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var nj=gy(console.warn);function aj(){nj(`${gp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ij(t){return Ea.str(t)&&(t[0]=="#"||/\d/.test(t)||!ip()&&pp.test(t)||t in(no||{}))}var yl,mp=new WeakMap,oj=t=>t.forEach(({target:e,contentRect:r})=>{var n;return(n=mp.get(e))==null?void 0:n.forEach(a=>a(r))});function sj(t,e){yl||typeof ResizeObserver<"u"&&(yl=new ResizeObserver(oj));let r=mp.get(e);return r||(r=new Set,mp.set(e,r)),r.add(t),yl&&yl.observe(e),()=>{let n=mp.get(e);n&&(n.delete(t),!n.size&&yl&&yl.unobserve(e))}}var vp=new Set,cc,lj=()=>{let t=()=>{vp.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},uj=t=>(vp.add(t),cc||(cc=lj()),()=>{vp.delete(t),!vp.size&&cc&&(cc(),cc=void 0)}),C8=(t,{container:e=document.documentElement}={})=>e===document.documentElement?uj(t):sj(t,e),cj=(t,e,r)=>e-t===0?1:(r-t)/(e-t),dj={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},hj=class{constructor(t,e){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=r=>{let n=this.info[r],{length:a,position:i}=dj[r];n.current=this.container[`scroll${i}`],n.scrollLength=this.container["scroll"+a]-this.container["client"+a],n.progress=cj(0,n.scrollLength,n.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=t,this.container=e,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},dc=new WeakMap,_8=new WeakMap,my=new WeakMap,E8=t=>t===document.documentElement?window:t,fj=(t,{container:e=document.documentElement}={})=>{let r=my.get(e);r||(r=new Set,my.set(e,r));let n=new hj(t,e);if(r.add(n),!dc.has(e)){let i=()=>(r?.forEach(u=>u.advance()),!0);dc.set(e,i);let s=E8(e);window.addEventListener("resize",i,{passive:!0}),e!==document.documentElement&&_8.set(e,C8(i,{container:e})),s.addEventListener("scroll",i,{passive:!0})}let a=dc.get(e);return ut(a),()=>{var i;ut.cancel(a);let s=my.get(e);if(!s||(s.delete(n),s.size))return;let u=dc.get(e);dc.delete(e),u&&(E8(e).removeEventListener("scroll",u),window.removeEventListener("resize",u),(i=_8.get(e))==null||i())}},pj=I;function gj(t){let e=(0,pj.useRef)(null);return e.current===null&&(e.current=t()),e.current}var mj=I,vj=I,P8=I,vy=ip()?P8.useEffect:P8.useLayoutEffect,yj=()=>{let t=(0,vj.useRef)(!1);return vy(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function bj(){let t=(0,mj.useState)()[1],e=yj();return()=>{e.current&&t(Math.random())}}var yy=I;function wj(t,e){let[r]=(0,yy.useState)(()=>({inputs:e,result:t()})),n=(0,yy.useRef)(),a=n.current,i=a;return i?e&&i.inputs&&kj(e,i.inputs)||(i={inputs:e,result:t()}):i=r,(0,yy.useEffect)(()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)},[i]),i.result}function kj(t,e){if(t.length!==e.length)return!1;for(let r=0;r(0,xj.useEffect)(t,Cj),Cj=[],M8=I;function _j(t){let e=(0,M8.useRef)();return(0,M8.useEffect)(()=>{e.current=t}),e.current}var Ej=I,Pj=()=>{let[t,e]=(0,Ej.useState)(null);return vy(()=>{let r=window.matchMedia("(prefers-reduced-motion)"),n=a=>{e(a.matches),J4({skipAnimation:a.matches})};return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t};z4.exports=IF;var ct=z4.exports,I8={exports:{}},Mj=Object.create,yp=Object.defineProperty,Ij=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Oj=Object.getPrototypeOf,Rj=Object.prototype.hasOwnProperty,Tj=(t,e)=>{for(var r in e)yp(t,r,{get:e[r],enumerable:!0})},N8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Nj(e))!Rj.call(t,a)&&a!==r&&yp(t,a,{get:()=>e[a],enumerable:!(n=Ij(e,a))||n.enumerable});return t},Lj=(t,e,r)=>(r=t!=null?Mj(Oj(t)):{},N8(e||!t||!t.__esModule?yp(r,"default",{value:t,enumerable:!0}):r,t)),Fj=t=>N8(yp({},"__esModule",{value:!0}),t),O8={};Tj(O8,{Animated:()=>by,AnimatedArray:()=>xy,AnimatedObject:()=>kp,AnimatedString:()=>bp,AnimatedValue:()=>fc,createHost:()=>Wj,getAnimated:()=>T8,getAnimatedType:()=>Bj,getPayload:()=>F8,isAnimated:()=>R8,setAnimated:()=>L8});var jj=Fj(O8),Aj=ct,hc=Symbol.for("Animated:node"),R8=t=>!!t&&t[hc]===t,T8=t=>t&&t[hc],L8=(t,e)=>(0,Aj.defineHidden)(t,hc,e),F8=t=>t&&t[hc]&&t[hc].getPayload(),by=class{constructor(){L8(this,this)}getPayload(){return this.payload||[]}},wy=ct,fc=class extends by{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,wy.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new fc(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return wy.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,wy.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},ky=ct,bp=class extends fc{constructor(t){super(0),this._string=null,this._toString=(0,ky.createInterpolator)({output:[t,t]})}static create(t){return new bp(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if(ky.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=(0,ky.createInterpolator)({output:[this.getValue(),t]})),this._value=0,super.reset()}},Dj=ct,Zo=ct,wp={dependencies:null},kp=class extends by{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let e={};return(0,Zo.eachProp)(this.source,(r,n)=>{R8(r)?e[n]=r.getValue(t):(0,Zo.hasFluidValue)(r)?e[n]=(0,Zo.getFluidValue)(r):t||(e[n]=r)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,Zo.each)(this.payload,t=>t.reset())}_makePayload(t){if(t){let e=new Set;return(0,Zo.eachProp)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){wp.dependencies&&(0,Zo.hasFluidValue)(t)&&wp.dependencies.add(t);let e=F8(t);e&&(0,Zo.each)(e,r=>this.add(r))}},xy=class extends kp{constructor(t){super(t)}static create(t){return new xy(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let e=this.getPayload();return t.length==e.length?e.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(zj)),!0)}};function zj(t){return((0,Dj.isAnimatedString)(t)?bp:fc).create(t)}var j8=ct;function Bj(t){let e=T8(t);return e?e.constructor:j8.is.arr(t)?xy:(0,j8.isAnimatedString)(t)?bp:fc}var bl=ct,Uj=Lj(I),pc=I,Cn=ct,A8=(t,e)=>{let r=!Cn.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,pc.forwardRef)((n,a)=>{let i=(0,pc.useRef)(null),s=r&&(0,pc.useCallback)(b=>{i.current=Gj(a,b)},[a]),[u,c]=Vj(n,e),d=(0,Cn.useForceUpdate)(),f=()=>{let b=i.current;r&&!b||(b?e.applyAnimatedValues(b,u.getValue(!0)):!1)===!1&&d()},m=new $j(f,c),v=(0,pc.useRef)();(0,Cn.useIsomorphicLayoutEffect)(()=>(v.current=m,(0,Cn.each)(c,b=>(0,Cn.addFluidObserver)(b,m)),()=>{v.current&&((0,Cn.each)(v.current.deps,b=>(0,Cn.removeFluidObserver)(b,v.current)),Cn.raf.cancel(v.current.update))})),(0,pc.useEffect)(f,[]),(0,Cn.useOnce)(()=>()=>{let b=v.current;(0,Cn.each)(b.deps,S=>(0,Cn.removeFluidObserver)(S,b))});let y=e.getComponentProps(u.getValue());return Uj.createElement(t,{...y,ref:s})})},$j=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&Cn.raf.write(this.update)}};function Vj(t,e){let r=new Set;return wp.dependencies=r,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new kp(t),wp.dependencies=null,[t,r]}function Gj(t,e){return t&&(Cn.is.fun(t)?t(e):t.current=e),e}var D8=Symbol.for("AnimatedComponent"),Wj=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=a=>new kp(a),getComponentProps:n=a=>a}={})=>{let a={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},i=s=>{let u=z8(s)||"Anonymous";return bl.is.str(s)?s=i[s]||(i[s]=A8(s,a)):s=s[D8]||(s[D8]=A8(s,a)),s.displayName=`Animated(${u})`,s};return(0,bl.eachProp)(t,(s,u)=>{bl.is.arr(t)&&(u=z8(s)),i[u]=i(s)}),{animated:i}},z8=t=>bl.is.str(t)?t:t&&bl.is.str(t.displayName)?t.displayName:bl.is.fun(t)&&t.name||null;I8.exports=jj;var gc=I8.exports,B8={exports:{}},Sy,U8;function qj(){if(U8)return Sy;U8=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a=(d,f)=>{for(var m in f)t(d,m,{get:f[m],enumerable:!0})},i=(d,f,m,v)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of r(f))!n.call(d,y)&&y!==m&&t(d,y,{get:()=>f[y],enumerable:!(v=e(f,y))||v.enumerable});return d},s=d=>i(t({},"__esModule",{value:!0}),d),u={};a(u,{Any:()=>c}),Sy=s(u);var c=class{};return Sy}var $8;function Hj(){return $8||($8=1,B8.exports=qj()),B8.exports}(function(t){var e=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(M,T)=>{for(var B in T)r(M,B,{get:T[B],enumerable:!0})},c=(M,T,B,V)=>{if(T&&typeof T=="object"||typeof T=="function")for(let X of a(T))!s.call(M,X)&&X!==B&&r(M,X,{get:()=>T[X],enumerable:!(V=n(T,X))||V.enumerable});return M},d=(M,T,B)=>(c(M,T,"default"),B&&c(B,T,"default")),f=(M,T,B)=>(B=M!=null?e(i(M)):{},c(T||!M||!M.__esModule?r(B,"default",{value:M,enumerable:!0}):B,M)),m=M=>c(r({},"__esModule",{value:!0}),M),v={};u(v,{BailSignal:()=>dt,Controller:()=>_l,FrameValue:()=>mr,Globals:()=>Fa.Globals,Interpolation:()=>fo,Spring:()=>La,SpringContext:()=>Gn,SpringRef:()=>is,SpringValue:()=>Ht,Trail:()=>Fr,Transition:()=>ls,config:()=>oe,createInterpolator:()=>ja.createInterpolator,easings:()=>ja.easings,inferTo:()=>R,interpolate:()=>us,to:()=>Dp,update:()=>po,useChain:()=>ne,useInView:()=>Lr,useIsomorphicLayoutEffect:()=>ja.useIsomorphicLayoutEffect,useReducedMotion:()=>ja.useReducedMotion,useResize:()=>xt,useScroll:()=>di,useSpring:()=>co,useSpringRef:()=>Fp,useSpringValue:()=>jp,useSprings:()=>Ml,useTrail:()=>Pc,useTransition:()=>ss}),t.exports=m(v);var y=ct,b=ct;function S(M,...T){return b.is.fun(M)?M(...T):M}var E=(M,T)=>M===!0||!!(T&&M&&(b.is.fun(M)?M(T):(0,b.toArray)(M).includes(T))),x=(M,T)=>b.is.obj(M)?T&&M[T]:M,k=(M,T)=>M.default===!0?M[T]:M.default?M.default[T]:void 0,g=M=>M,C=(M,T=g)=>{let B=N;M.default&&M.default!==!0&&(M=M.default,B=Object.keys(M));let V={};for(let X of B){let ae=T(M[X],X);b.is.und(ae)||(V[X]=ae)}return V},N=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function D(M){let T={},B=0;if((0,b.eachProp)(M,(V,X)=>{O[X]||(T[X]=V,B++)}),B)return T}function R(M){let T=D(M);if(T){let B={to:T};return(0,b.eachProp)(M,(V,X)=>X in T||(B[X]=V)),B}return{...M}}function A(M){return M=(0,b.getFluidValue)(M),b.is.arr(M)?M.map(A):(0,b.isAnimatedString)(M)?b.Globals.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function F(M){for(let T in M)return!0;return!1}function U(M){return b.is.fun(M)||b.is.arr(M)&&b.is.obj(M[0])}function H(M,T){var B;(B=M.ref)==null||B.delete(M),T?.delete(M)}function q(M,T){var B;T&&M.ref!==T&&((B=M.ref)==null||B.delete(M),T.add(M),M.ref=T)}function ne(M,T,B=1e3){(0,y.useIsomorphicLayoutEffect)(()=>{if(T){let V=0;(0,y.each)(M,(X,ae)=>{let pe=X.current;if(pe.length){let fe=B*T[ae];isNaN(fe)?fe=V:V=fe,(0,y.each)(pe,ce=>{(0,y.each)(ce.queue,ye=>{let Be=ye.delay;ye.delay=Ee=>fe+S(Be||0,Ee)})}),X.start()}})}else{let V=Promise.resolve();(0,y.each)(M,X=>{let ae=X.current;if(ae.length){let pe=ae.map(fe=>{let ce=fe.queue;return fe.queue=[],ce});V=V.then(()=>((0,y.each)(ae,(fe,ce)=>(0,y.each)(pe[ce]||[],ye=>fe.queue.push(ye))),Promise.all(X.start())))}})}})}var ie=ct,se=I,K=ct,z=ct,ee=gc,Q=ct,oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},he={...oe.default,mass:1,damping:1,easing:Q.easings.linear,clamp:!1},Ce=class{constructor(){this.velocity=0,Object.assign(this,he)}};function ge(M,T,B){B&&(B={...B},Me(B,T),T={...B,...T}),Me(M,T),Object.assign(M,T);for(let pe in he)M[pe]==null&&(M[pe]=he[pe]);let{frequency:V,damping:X}=M,{mass:ae}=M;return Q.is.und(V)||(V<.01&&(V=.01),X<0&&(X=0),M.tension=Math.pow(2*Math.PI/V,2)*ae,M.friction=4*Math.PI*X*ae/V),M}function Me(M,T){if(!Q.is.und(T.decay))M.duration=void 0;else{let B=!Q.is.und(T.tension)||!Q.is.und(T.friction);(B||!Q.is.und(T.frequency)||!Q.is.und(T.damping)||!Q.is.und(T.mass))&&(M.duration=void 0,M.decay=void 0),B&&(M.frequency=void 0)}}var Ne=[],$=class{constructor(){this.changed=!1,this.values=Ne,this.toValues=null,this.fromValues=Ne,this.config=new Ce,this.immediate=!1}},re=ct;function le(M,{key:T,props:B,defaultProps:V,state:X,actions:ae}){return new Promise((pe,fe)=>{let ce,ye,Be=E(B.cancel??V?.cancel,T);if(Be)Ve();else{re.is.und(B.pause)||(X.paused=E(B.pause,T));let xe=V?.pause;xe!==!0&&(xe=X.paused||E(xe,T)),ce=S(B.delay||0,T),xe?(X.resumeQueue.add(Qe),ae.pause()):(ae.resume(),Qe())}function Ee(){X.resumeQueue.add(Qe),X.timeouts.delete(ye),ye.cancel(),ce=ye.time-re.raf.now()}function Qe(){ce>0&&!re.Globals.skipAnimation?(X.delayed=!0,ye=re.raf.setTimeout(Ve,ce),X.pauseQueue.add(Ee),X.timeouts.add(ye)):Ve()}function Ve(){X.delayed&&(X.delayed=!1),X.pauseQueue.delete(Ee),X.timeouts.delete(ye),M<=(X.cancelId||0)&&(Be=!0);try{ae.start({...B,callId:M,cancel:Be},pe)}catch(xe){fe(xe)}}})}var Se=ct,Oe=(M,T)=>T.length==1?T[0]:T.some(B=>B.cancelled)?it(M.get()):T.every(B=>B.noop)?Fe(M.get()):Ye(M.get(),T.every(B=>B.finished)),Fe=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Ye=(M,T,B=!1)=>({value:M,finished:T,cancelled:B}),it=M=>({value:M,cancelled:!0,finished:!1});function De(M,T,B,V){let{callId:X,parentId:ae,onRest:pe}=T,{asyncTo:fe,promise:ce}=B;return!ae&&M===fe&&!T.reset?ce:B.promise=(async()=>{B.asyncId=X,B.asyncTo=M;let ye=C(T,(je,Pe)=>Pe==="onRest"?void 0:je),Be,Ee,Qe=new Promise((je,Pe)=>(Be=je,Ee=Pe)),Ve=je=>{let Pe=X<=(B.cancelId||0)&&it(V)||X!==B.asyncId&&Ye(V,!1);if(Pe)throw je.result=Pe,Ee(je),je},xe=(je,Pe)=>{let Ge=new dt,Re=new ht;return(async()=>{if(Se.Globals.skipAnimation)throw Wt(B),Re.result=Ye(V,!1),Ee(Re),Re;Ve(Ge);let $e=Se.is.obj(je)?{...je}:{...Pe,to:je};$e.parentId=X,(0,Se.eachProp)(ye,(nn,tt)=>{Se.is.und($e[tt])&&($e[tt]=nn)});let Kt=await V.start($e);return Ve(Ge),B.paused&&await new Promise(nn=>{B.resumeQueue.add(nn)}),Kt})()},Te;if(Se.Globals.skipAnimation)return Wt(B),Ye(V,!1);try{let je;Se.is.arr(M)?je=(async Pe=>{for(let Ge of Pe)await xe(Ge)})(M):je=Promise.resolve(M(xe,V.stop.bind(V))),await Promise.all([je.then(Be),Qe]),Te=Ye(V.get(),!0,!1)}catch(je){if(je instanceof dt)Te=je.result;else if(je instanceof ht)Te=je.result;else throw je}finally{X==B.asyncId&&(B.asyncId=ae,B.asyncTo=ae?fe:void 0,B.promise=ae?ce:void 0)}return Se.is.fun(pe)&&Se.raf.batchedUpdates(()=>{pe(Te,V,V.item)}),Te})()}function Wt(M,T){(0,Se.flush)(M.timeouts,B=>B.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,T&&(M.cancelId=T)}var dt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ht=class extends Error{constructor(){super("SkipAnimationSignal")}},ze=ct,En=gc,Jt=M=>M instanceof mr,Tr=1,mr=class extends ze.FluidValue{constructor(){super(...arguments),this.id=Tr++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){let M=(0,En.getAnimated)(this);return M&&M.getValue()}to(...M){return ze.Globals.to(this,M)}interpolate(...M){return(0,ze.deprecateInterpolate)(),ze.Globals.to(this,M)}toJSON(){return this.get()}observerAdded(M){M==1&&this._attach()}observerRemoved(M){M==0&&this._detach()}_attach(){}_detach(){}_onChange(M,T=!1){(0,ze.callFluidObservers)(this,{type:"change",parent:this,value:M,idle:T})}_onPriorityChange(M){this.idle||ze.frameLoop.sort(this),(0,ze.callFluidObservers)(this,{type:"priority",parent:this,priority:M})}},qt=Symbol.for("SpringPhase"),_t=1,Ia=2,Na=4,so=M=>(M[qt]&_t)>0,Pn=M=>(M[qt]&Ia)>0,Oa=M=>(M[qt]&Na)>0,es=(M,T)=>T?M[qt]|=Ia|_t:M[qt]&=~Ia,ci=(M,T)=>T?M[qt]|=Na:M[qt]&=~Na,Ht=class extends mr{constructor(M,T){if(super(),this.animation=new $,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!z.is.und(M)||!z.is.und(T)){let B=z.is.obj(M)?{...M}:{...T,from:M};z.is.und(B.default)&&(B.default=!0),this.start(B)}}get idle(){return!(Pn(this)||this._state.asyncTo)||Oa(this)}get goal(){return(0,z.getFluidValue)(this.animation.to)}get velocity(){let M=(0,ee.getAnimated)(this);return M instanceof ee.AnimatedValue?M.lastVelocity||0:M.getPayload().map(T=>T.lastVelocity||0)}get hasAnimated(){return so(this)}get isAnimating(){return Pn(this)}get isPaused(){return Oa(this)}get isDelayed(){return this._state.delayed}advance(M){let T=!0,B=!1,V=this.animation,{toValues:X}=V,{config:ae}=V,pe=(0,ee.getPayload)(V.to);!pe&&(0,z.hasFluidValue)(V.to)&&(X=(0,z.toArray)((0,z.getFluidValue)(V.to))),V.values.forEach((ye,Be)=>{if(ye.done)return;let Ee=ye.constructor==ee.AnimatedString?1:pe?pe[Be].lastPosition:X[Be],Qe=V.immediate,Ve=Ee;if(!Qe){if(Ve=ye.lastPosition,ae.tension<=0){ye.done=!0;return}let xe=ye.elapsedTime+=M,Te=V.fromValues[Be],je=ye.v0!=null?ye.v0:ye.v0=z.is.arr(ae.velocity)?ae.velocity[Be]:ae.velocity,Pe,Ge=ae.precision||(Te==Ee?.005:Math.min(1,Math.abs(Ee-Te)*.001));if(z.is.und(ae.duration))if(ae.decay){let Re=ae.decay===!0?.998:ae.decay,$e=Math.exp(-(1-Re)*xe);Ve=Te+je/(1-Re)*(1-$e),Qe=Math.abs(ye.lastPosition-Ve)<=Ge,Pe=je*$e}else{Pe=ye.lastVelocity==null?je:ye.lastVelocity;let Re=ae.restVelocity||Ge/10,$e=ae.clamp?0:ae.bounce,Kt=!z.is.und($e),nn=Te==Ee?ye.v0>0:TeRe,!(!tt&&(Qe=Math.abs(Ee-Ve)<=Ge,Qe)));++Kr){Kt&&(Tt=Ve==Ee||Ve>Ee==nn,Tt&&(Pe=-Pe*$e,Ve=Ee));let Wn=-ae.tension*1e-6*(Ve-Ee),nr=-ae.friction*.001*Pe,Ae=(Wn+nr)/ae.mass;Pe=Pe+Ae*Mt,Ve=Ve+Pe*Mt}}else{let Re=1;ae.duration>0&&(this._memoizedDuration!==ae.duration&&(this._memoizedDuration=ae.duration,ye.durationProgress>0&&(ye.elapsedTime=ae.duration*ye.durationProgress,xe=ye.elapsedTime+=M)),Re=(ae.progress||0)+xe/this._memoizedDuration,Re=Re>1?1:Re<0?0:Re,ye.durationProgress=Re),Ve=Te+ae.easing(Re)*(Ee-Te),Pe=(Ve-ye.lastPosition)/M,Qe=Re==1}ye.lastVelocity=Pe,Number.isNaN(Ve)&&(console.warn("Got NaN while animating:",this),Qe=!0)}pe&&!pe[Be].done&&(Qe=!1),Qe?ye.done=!0:T=!1,ye.setValue(Ve,ae.round)&&(B=!0)});let fe=(0,ee.getAnimated)(this),ce=fe.getValue();if(T){let ye=(0,z.getFluidValue)(V.to);(ce!==ye||B)&&!ae.decay?(fe.setValue(ye),this._onChange(ye)):B&&ae.decay&&this._onChange(ce),this._stop()}else B&&this._onChange(ce)}set(M){return z.raf.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pn(this)){let{to:M,config:T}=this.animation;z.raf.batchedUpdates(()=>{this._onStart(),T.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,T){let B;return z.is.und(M)?(B=this.queue||[],this.queue=[]):B=[z.is.obj(M)?M:{...T,to:M}],Promise.all(B.map(V=>this._update(V))).then(V=>Oe(this,V))}stop(M){let{to:T}=this.animation;return this._focus(this.get()),Wt(this._state,M&&this._lastCallId),z.raf.batchedUpdates(()=>this._stop(T,M)),this}reset(){this._update({reset:!0})}eventObserved(M){M.type=="change"?this._start():M.type=="priority"&&(this.priority=M.priority+1)}_prepareNode(M){let T=this.key||"",{to:B,from:V}=M;B=z.is.obj(B)?B[T]:B,(B==null||U(B))&&(B=void 0),V=z.is.obj(V)?V[T]:V,V==null&&(V=void 0);let X={to:B,from:V};return so(this)||(M.reverse&&([B,V]=[V,B]),V=(0,z.getFluidValue)(V),z.is.und(V)?(0,ee.getAnimated)(this)||this._set(B):this._set(V)),X}_update({...M},T){let{key:B,defaultProps:V}=this;M.default&&Object.assign(V,C(M,(pe,fe)=>/^on/.test(fe)?x(pe,B):pe)),wc(this,M,"onProps"),lo(this,"onProps",M,this);let X=this._prepareNode(M);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let ae=this._state;return le(++this._lastCallId,{key:B,props:M,defaultProps:V,state:ae,actions:{pause:()=>{Oa(this)||(ci(this,!0),(0,z.flushCalls)(ae.pauseQueue),lo(this,"onPause",Ye(this,Ra(this,this.animation.to)),this))},resume:()=>{Oa(this)&&(ci(this,!1),Pn(this)&&this._resume(),(0,z.flushCalls)(ae.resumeQueue),lo(this,"onResume",Ye(this,Ra(this,this.animation.to)),this))},start:this._merge.bind(this,X)}}).then(pe=>{if(M.loop&&pe.finished&&!(T&&pe.noop)){let fe=ts(M);if(fe)return this._update(fe,!0)}return pe})}_merge(M,T,B){if(T.cancel)return this.stop(!0),B(it(this));let V=!z.is.und(M.to),X=!z.is.und(M.from);if(V||X)if(T.callId>this._lastToId)this._lastToId=T.callId;else return B(it(this));let{key:ae,defaultProps:pe,animation:fe}=this,{to:ce,from:ye}=fe,{to:Be=ce,from:Ee=ye}=M;X&&!V&&(!T.default||z.is.und(Be))&&(Be=Ee),T.reverse&&([Be,Ee]=[Ee,Be]);let Qe=!(0,z.isEqual)(Ee,ye);Qe&&(fe.from=Ee),Ee=(0,z.getFluidValue)(Ee);let Ve=!(0,z.isEqual)(Be,ce);Ve&&this._focus(Be);let xe=U(T.to),{config:Te}=fe,{decay:je,velocity:Pe}=Te;(V||X)&&(Te.velocity=0),T.config&&!xe&&ge(Te,S(T.config,ae),T.config!==pe.config?S(pe.config,ae):void 0);let Ge=(0,ee.getAnimated)(this);if(!Ge||z.is.und(Be))return B(Ye(this,!0));let Re=z.is.und(T.reset)?X&&!T.default:!z.is.und(Ee)&&E(T.reset,ae),$e=Re?Ee:this.get(),Kt=A(Be),nn=z.is.num(Kt)||z.is.arr(Kt)||(0,z.isAnimatedString)(Kt),tt=!xe&&(!nn||E(pe.immediate||T.immediate,ae));if(Ve){let Kr=(0,ee.getAnimatedType)(Be);if(Kr!==Ge.constructor)if(tt)Ge=this._set(Kt);else throw Error(`Cannot animate between ${Ge.constructor.name} and ${Kr.name}, as the "to" prop suggests`)}let Tt=Ge.constructor,Mt=(0,z.hasFluidValue)(Be),jr=!1;if(!Mt){let Kr=Re||!so(this)&&Qe;(Ve||Kr)&&(jr=(0,z.isEqual)(A($e),Kt),Mt=!jr),(!(0,z.isEqual)(fe.immediate,tt)&&!tt||!(0,z.isEqual)(Te.decay,je)||!(0,z.isEqual)(Te.velocity,Pe))&&(Mt=!0)}if(jr&&Pn(this)&&(fe.changed&&!Re?Mt=!0:Mt||this._stop(ce)),!xe&&((Mt||(0,z.hasFluidValue)(ce))&&(fe.values=Ge.getPayload(),fe.toValues=(0,z.hasFluidValue)(Be)?null:Tt==ee.AnimatedString?[1]:(0,z.toArray)(Kt)),fe.immediate!=tt&&(fe.immediate=tt,!tt&&!Re&&this._set(ce)),Mt)){let{onRest:Kr}=fe;(0,z.each)(Cl,nr=>wc(this,T,nr));let Wn=Ye(this,Ra(this,ce));(0,z.flushCalls)(this._pendingCalls,Wn),this._pendingCalls.add(B),fe.changed&&z.raf.batchedUpdates(()=>{var nr;fe.changed=!Re,Kr?.(Wn,this),Re?S(pe.onRest,Wn):(nr=fe.onStart)==null||nr.call(fe,Wn,this)})}Re&&this._set($e),xe?B(De(T.to,T,this._state,this)):Mt?this._start():Pn(this)&&!Ve?this._pendingCalls.add(B):B(Fe($e))}_focus(M){let T=this.animation;M!==T.to&&((0,z.getFluidObservers)(this)&&this._detach(),T.to=M,(0,z.getFluidObservers)(this)&&this._attach())}_attach(){let M=0,{to:T}=this.animation;(0,z.hasFluidValue)(T)&&((0,z.addFluidObserver)(T,this),Jt(T)&&(M=T.priority+1)),this.priority=M}_detach(){let{to:M}=this.animation;(0,z.hasFluidValue)(M)&&(0,z.removeFluidObserver)(M,this)}_set(M,T=!0){let B=(0,z.getFluidValue)(M);if(!z.is.und(B)){let V=(0,ee.getAnimated)(this);if(!V||!(0,z.isEqual)(B,V.getValue())){let X=(0,ee.getAnimatedType)(B);!V||V.constructor!=X?(0,ee.setAnimated)(this,X.create(B)):V.setValue(B),V&&z.raf.batchedUpdates(()=>{this._onChange(B,T)})}}return(0,ee.getAnimated)(this)}_onStart(){let M=this.animation;M.changed||(M.changed=!0,lo(this,"onStart",Ye(this,Ra(this,M.to)),this))}_onChange(M,T){T||(this._onStart(),S(this.animation.onChange,M,this)),S(this.defaultProps.onChange,M,this),super._onChange(M,T)}_start(){let M=this.animation;(0,ee.getAnimated)(this).reset((0,z.getFluidValue)(M.to)),M.immediate||(M.fromValues=M.values.map(T=>T.lastPosition)),Pn(this)||(es(this,!0),Oa(this)||this._resume())}_resume(){z.Globals.skipAnimation?this.finish():z.frameLoop.start(this)}_stop(M,T){if(Pn(this)){es(this,!1);let B=this.animation;(0,z.each)(B.values,X=>{X.done=!0}),B.toValues&&(B.onChange=B.onPause=B.onResume=void 0),(0,z.callFluidObservers)(this,{type:"idle",parent:this});let V=T?it(this.get()):Ye(this.get(),Ra(this,M??B.to));(0,z.flushCalls)(this._pendingCalls,V),B.changed&&(B.changed=!1,lo(this,"onRest",V,this))}}};function Ra(M,T){let B=A(T),V=A(M.get());return(0,z.isEqual)(V,B)}function ts(M,T=M.loop,B=M.to){let V=S(T);if(V){let X=V!==!0&&R(V),ae=(X||M).reverse,pe=!X||X.reset;return ca({...M,loop:T,default:!1,pause:void 0,to:!ae||U(B)?B:void 0,from:pe?M.from:void 0,reset:pe,...X})}}function ca(M){let{to:T,from:B}=M=R(M),V=new Set;return z.is.obj(T)&&tn(T,V),z.is.obj(B)&&tn(B,V),M.keys=V.size?Array.from(V):null,M}function Sl(M){let T=ca(M);return z.is.und(T.default)&&(T.default=C(T)),T}function tn(M,T){(0,z.eachProp)(M,(B,V)=>B!=null&&T.add(V))}var Cl=["onStart","onRest","onChange","onPause","onResume"];function wc(M,T,B){M.animation[B]=T[B]!==k(T,B)?x(T[B],M.key):void 0}function lo(M,T,...B){var V,X,ae,pe;(X=(V=M.animation)[T])==null||X.call(V,...B),(pe=(ae=M.defaultProps)[T])==null||pe.call(ae,...B)}var at=ct,kc=["onStart","onChange","onRest"],xc=1,_l=class{constructor(M,T){this.id=xc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),T&&(this._flush=T),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){let M={};return this.each((T,B)=>M[B]=T.get()),M}set(M){for(let T in M){let B=M[T];at.is.und(B)||this.springs[T].set(B)}}update(M){return M&&this.queue.push(ca(M)),this}start(M){let{queue:T}=this;return M?T=(0,at.toArray)(M).map(ca):this.queue=[],this._flush?this._flush(this,T):(Pl(this,T),uo(this,T))}stop(M,T){if(M!==!!M&&(T=M),T){let B=this.springs;(0,at.each)((0,at.toArray)(T),V=>B[V].stop(!!M))}else Wt(this._state,this._lastAsyncId),this.each(B=>B.stop(!!M));return this}pause(M){if(at.is.und(M))this.start({pause:!0});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].pause())}return this}resume(M){if(at.is.und(M))this.start({pause:!1});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].resume())}return this}each(M){(0,at.eachProp)(this.springs,M)}_onFrame(){let{onStart:M,onChange:T,onRest:B}=this._events,V=this._active.size>0,X=this._changed.size>0;(V&&!this._started||X&&!this._started)&&(this._started=!0,(0,at.flush)(M,([fe,ce])=>{ce.value=this.get(),fe(ce,this,this._item)}));let ae=!V&&this._started,pe=X||ae&&B.size?this.get():null;X&&T.size&&(0,at.flush)(T,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}),ae&&(this._started=!1,(0,at.flush)(B,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}))}eventObserved(M){if(M.type=="change")this._changed.add(M.parent),M.idle||this._active.add(M.parent);else if(M.type=="idle")this._active.delete(M.parent);else return;at.raf.onFrame(this._onFrame)}};function uo(M,T){return Promise.all(T.map(B=>El(M,B))).then(B=>Oe(M,B))}async function El(M,T,B){let{keys:V,to:X,from:ae,loop:pe,onRest:fe,onResolve:ce}=T,ye=at.is.obj(T.default)&&T.default;pe&&(T.loop=!1),X===!1&&(T.to=null),ae===!1&&(T.from=null);let Be=at.is.arr(X)||at.is.fun(X)?X:void 0;Be?(T.to=void 0,T.onRest=void 0,ye&&(ye.onRest=void 0)):(0,at.each)(kc,Te=>{let je=T[Te];if(at.is.fun(je)){let Pe=M._events[Te];T[Te]=({finished:Ge,cancelled:Re})=>{let $e=Pe.get(je);$e?(Ge||($e.finished=!1),Re&&($e.cancelled=!0)):Pe.set(je,{value:null,finished:Ge||!1,cancelled:Re||!1})},ye&&(ye[Te]=T[Te])}});let Ee=M._state;T.pause===!Ee.paused?(Ee.paused=T.pause,(0,at.flushCalls)(T.pause?Ee.pauseQueue:Ee.resumeQueue)):Ee.paused&&(T.pause=!0);let Qe=(V||Object.keys(M.springs)).map(Te=>M.springs[Te].start(T)),Ve=T.cancel===!0||k(T,"cancel")===!0;(Be||Ve&&Ee.asyncId)&&Qe.push(le(++M._lastAsyncId,{props:T,state:Ee,actions:{pause:at.noop,resume:at.noop,start(Te,je){Ve?(Wt(Ee,M._lastAsyncId),je(it(M))):(Te.onRest=fe,je(De(Be,Te,Ee,M)))}}})),Ee.paused&&await new Promise(Te=>{Ee.resumeQueue.add(Te)});let xe=Oe(M,await Promise.all(Qe));if(pe&&xe.finished&&!(B&&xe.noop)){let Te=ts(T,pe,X);if(Te)return Pl(M,[Te]),El(M,Te,!0)}return ce&&at.raf.batchedUpdates(()=>ce(xe,M,M.item)),xe}function rs(M,T){let B={...M.springs};return T&&(0,at.each)((0,at.toArray)(T),V=>{at.is.und(V.keys)&&(V=ca(V)),at.is.obj(V.to)||(V={...V,to:void 0}),_c(B,V,X=>Cc(X))}),Sc(M,B),B}function Sc(M,T){(0,at.eachProp)(T,(B,V)=>{M.springs[V]||(M.springs[V]=B,(0,at.addFluidObserver)(B,M))})}function Cc(M,T){let B=new Ht;return B.key=M,T&&(0,at.addFluidObserver)(B,T),B}function _c(M,T,B){T.keys&&(0,at.each)(T.keys,V=>{(M[V]||(M[V]=B(V)))._prepareNode(T)})}function Pl(M,T){(0,at.each)(T,B=>{_c(M.springs,B,V=>Cc(V,M))})}var ns=f(I),Np=I,Op=ct,Gn=({children:M,...T})=>{let B=(0,Np.useContext)(as),V=T.pause||!!B.pause,X=T.immediate||!!B.immediate;T=(0,Op.useMemoOne)(()=>({pause:V,immediate:X}),[V,X]);let{Provider:ae}=as;return ns.createElement(ae,{value:T},M)},as=Rp(Gn,{});Gn.Provider=as.Provider,Gn.Consumer=as.Consumer;function Rp(M,T){return Object.assign(M,ns.createContext(T)),M.Provider._context=M,M.Consumer._context=M,M}var rn=ct,is=()=>{let M=[],T=function(V){(0,rn.deprecateDirectCall)();let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=B(V,ae,pe);fe&&X.push(ae.start(fe))}}),X};T.current=M,T.add=function(V){M.includes(V)||M.push(V)},T.delete=function(V){let X=M.indexOf(V);~X&&M.splice(X,1)},T.pause=function(){return(0,rn.each)(M,V=>V.pause(...arguments)),this},T.resume=function(){return(0,rn.each)(M,V=>V.resume(...arguments)),this},T.set=function(V){(0,rn.each)(M,(X,ae)=>{let pe=rn.is.fun(V)?V(ae,X):V;pe&&X.set(pe)})},T.start=function(V){let X=[];return(0,rn.each)(M,(ae,pe)=>{if(rn.is.und(V))X.push(ae.start());else{let fe=this._getProps(V,ae,pe);fe&&X.push(ae.start(fe))}}),X},T.stop=function(){return(0,rn.each)(M,V=>V.stop(...arguments)),this},T.update=function(V){return(0,rn.each)(M,(X,ae)=>X.update(this._getProps(V,X,ae))),this};let B=function(V,X,ae){return rn.is.fun(V)?V(ae,X):V};return T._getProps=B,T};function Ml(M,T,B){let V=K.is.fun(T)&&T;V&&!B&&(B=[]);let X=(0,se.useMemo)(()=>V||arguments.length==3?is():void 0,[]),ae=(0,se.useRef)(0),pe=(0,K.useForceUpdate)(),fe=(0,se.useMemo)(()=>({ctrls:[],queue:[],flush(Pe,Ge){let Re=rs(Pe,Ge);return ae.current>0&&!fe.queue.length&&!Object.keys(Re).some($e=>!Pe.springs[$e])?uo(Pe,Ge):new Promise($e=>{Sc(Pe,Re),fe.queue.push(()=>{$e(uo(Pe,Ge))}),pe()})}}),[]),ce=(0,se.useRef)([...fe.ctrls]),ye=[],Be=(0,K.usePrev)(M)||0;(0,se.useMemo)(()=>{(0,K.each)(ce.current.slice(M,Be),Pe=>{H(Pe,X),Pe.stop(!0)}),ce.current.length=M,Ee(Be,M)},[M]),(0,se.useMemo)(()=>{Ee(0,Math.min(Be,M))},B);function Ee(Pe,Ge){for(let Re=Pe;Rers(Pe,ye[Ge])),Ve=(0,se.useContext)(Gn),xe=(0,K.usePrev)(Ve),Te=Ve!==xe&&F(Ve);(0,K.useIsomorphicLayoutEffect)(()=>{ae.current++,fe.ctrls=ce.current;let{queue:Pe}=fe;Pe.length&&(fe.queue=[],(0,K.each)(Pe,Ge=>Ge())),(0,K.each)(ce.current,(Ge,Re)=>{X?.add(Ge),Te&&Ge.start({default:Ve});let $e=ye[Re];$e&&(q(Ge,$e.ref),Ge.ref?Ge.queue.push($e):Ge.start($e))})}),(0,K.useOnce)(()=>()=>{(0,K.each)(fe.ctrls,Pe=>Pe.stop(!0))});let je=Qe.map(Pe=>({...Pe}));return X?[je,X]:je}function co(M,T){let B=ie.is.fun(M),[[V],X]=Ml(1,B?M:[M],B?T||[]:T);return B||arguments.length==2?[V,X]:V}var Tp=I,Lp=()=>is(),Fp=()=>(0,Tp.useState)(Lp)[0],Ec=ct,jp=(M,T)=>{let B=(0,Ec.useConstant)(()=>new Ht(M,T));return(0,Ec.useOnce)(()=>()=>{B.stop()}),B},os=ct;function Pc(M,T,B){let V=os.is.fun(T)&&T;V&&!B&&(B=[]);let X=!0,ae,pe=Ml(M,(fe,ce)=>{let ye=V?V(fe,ce):T;return ae=ye.ref,X=X&&ye.reverse,ye},B||[{}]);if((0,os.useIsomorphicLayoutEffect)(()=>{(0,os.each)(pe[1].current,(fe,ce)=>{let ye=pe[1].current[ce+(X?1:-1)];if(q(fe,ae),fe.ref){ye&&fe.update({to:ye.springs});return}ye?fe.start({to:ye.springs}):fe.start()})},B),V||arguments.length==3){let fe=ae??pe[1];return fe._getProps=(ce,ye,Be)=>{let Ee=os.is.fun(ce)?ce(Be,ye):ce;if(Ee){let Qe=fe.current[Be+(Ee.reverse?1:-1)];return Qe&&(Ee.to=Qe.springs),Ee}},pe}return pe[0]}var Il=f(I),Ta=I,ot=ct;function ss(M,T,B){let V=ot.is.fun(T)&&T,{reset:X,sort:ae,trail:pe=0,expires:fe=!0,exitBeforeEnter:ce=!1,onDestroyed:ye,ref:Be,config:Ee}=V?V():T,Qe=(0,Ta.useMemo)(()=>V||arguments.length==3?is():void 0,[]),Ve=(0,ot.toArray)(M),xe=[],Te=(0,Ta.useRef)(null),je=X?null:Te.current;(0,ot.useIsomorphicLayoutEffect)(()=>{Te.current=xe}),(0,ot.useOnce)(()=>((0,ot.each)(xe,Ae=>{Qe?.add(Ae.ctrl),Ae.ctrl.ref=Qe}),()=>{(0,ot.each)(Te.current,Ae=>{Ae.expired&&clearTimeout(Ae.expirationId),H(Ae.ctrl,Qe),Ae.ctrl.stop(!0)})}));let Pe=Ap(Ve,V?V():T,je),Ge=X&&Te.current||[];(0,ot.useIsomorphicLayoutEffect)(()=>(0,ot.each)(Ge,({ctrl:Ae,item:Ke,key:ar})=>{H(Ae,Qe),S(ye,Ke,ar)}));let Re=[];if(je&&(0,ot.each)(je,(Ae,Ke)=>{Ae.expired?(clearTimeout(Ae.expirationId),Ge.push(Ae)):(Ke=Re[Ke]=Pe.indexOf(Ae.key),~Ke&&(xe[Ke]=Ae))}),(0,ot.each)(Ve,(Ae,Ke)=>{xe[Ke]||(xe[Ke]={key:Pe[Ke],item:Ae,phase:"mount",ctrl:new _l},xe[Ke].ctrl.item=Ae)}),Re.length){let Ae=-1,{leave:Ke}=V?V():T;(0,ot.each)(Re,(ar,ir)=>{let vt=je[ir];~ar?(Ae=xe.indexOf(vt),xe[Ae]={...vt,item:Ve[ar]}):Ke&&xe.splice(++Ae,0,vt)})}ot.is.fun(ae)&&xe.sort((Ae,Ke)=>ae(Ae.item,Ke.item));let $e=-pe,Kt=(0,ot.useForceUpdate)(),nn=C(T),tt=new Map,Tt=(0,Ta.useRef)(new Map),Mt=(0,Ta.useRef)(!1);(0,ot.each)(xe,(Ae,Ke)=>{let ar=Ae.key,ir=Ae.phase,vt=V?V():T,Et,Sr,qn=S(vt.delay||0,ar);if(ir=="mount")Et=vt.enter,Sr="enter";else{let Yr=Pe.indexOf(ar)<0;if(ir!="leave")if(Yr)Et=vt.leave,Sr="leave";else if(Et=vt.update)Sr="update";else return;else if(!Yr)Et=vt.enter,Sr="enter";else return}if(Et=S(Et,Ae.item,Ke),Et=ot.is.obj(Et)?R(Et):{to:Et},!Et.config){let Yr=Ee||nn.config;Et.config=S(Yr,Ae.item,Ke,Sr)}$e+=pe;let Cr={...nn,delay:qn+$e,ref:Be,immediate:vt.immediate,reset:!1,...Et};if(Sr=="enter"&&ot.is.und(Cr.from)){let Yr=V?V():T,Da=ot.is.und(Yr.initial)||je?Yr.from:Yr.initial;Cr.from=S(Da,Ae.item,Ke)}let{onResolve:Aa}=Cr;Cr.onResolve=Yr=>{S(Aa,Yr);let Da=Te.current,Yt=Da.find(_r=>_r.key===ar);if(Yt&&!(Yr.cancelled&&Yt.phase!="update")&&Yt.ctrl.idle){let _r=Da.every(ft=>ft.ctrl.idle);if(Yt.phase=="leave"){let ft=S(fe,Yt.item);if(ft!==!1){let za=ft===!0?0:ft;if(Yt.expired=!0,!_r&&za>0){za<=2147483647&&(Yt.expirationId=setTimeout(Kt,za));return}}}_r&&Da.some(ft=>ft.expired)&&(Tt.current.delete(Yt),ce&&(Mt.current=!0),Kt())}};let Rl=rs(Ae.ctrl,Cr);Sr==="leave"&&ce?Tt.current.set(Ae,{phase:Sr,springs:Rl,payload:Cr}):tt.set(Ae,{phase:Sr,springs:Rl,payload:Cr})});let jr=(0,Ta.useContext)(Gn),Kr=(0,ot.usePrev)(jr),Wn=jr!==Kr&&F(jr);(0,ot.useIsomorphicLayoutEffect)(()=>{Wn&&(0,ot.each)(xe,Ae=>{Ae.ctrl.start({default:jr})})},[jr]),(0,ot.each)(tt,(Ae,Ke)=>{if(Tt.current.size){let ar=xe.findIndex(ir=>ir.key===Ke.key);xe.splice(ar,1)}}),(0,ot.useIsomorphicLayoutEffect)(()=>{(0,ot.each)(Tt.current.size?Tt.current:tt,({phase:Ae,payload:Ke},ar)=>{let{ctrl:ir}=ar;ar.phase=Ae,Qe?.add(ir),Wn&&Ae=="enter"&&ir.start({default:jr}),Ke&&(q(ir,Ke.ref),(ir.ref||Qe)&&!Mt.current?ir.update(Ke):(ir.start(Ke),Mt.current&&(Mt.current=!1)))})},X?void 0:B);let nr=Ae=>Il.createElement(Il.Fragment,null,xe.map((Ke,ar)=>{let{springs:ir}=tt.get(Ke)||Ke.ctrl,vt=Ae({...ir},Ke.item,Ke,ar);return vt&&vt.type?Il.createElement(vt.type,{...vt.props,key:ot.is.str(Ke.key)||ot.is.num(Ke.key)?Ke.key:Ke.ctrl.id,ref:vt.ref}):vt}));return Qe?[nr,Qe]:nr}var Nl=1;function Ap(M,{key:T,keys:B=T},V){if(B===null){let X=new Set;return M.map(ae=>{let pe=V&&V.find(fe=>fe.item===ae&&fe.phase!=="leave"&&!X.has(fe));return pe?(X.add(pe),pe.key):Nl++})}return ot.is.und(B)?M:ot.is.fun(B)?M.map(B):(0,ot.toArray)(B)}var ho=ct,di=({container:M,...T}={})=>{let[B,V]=co(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...T}),[]);return(0,ho.useIsomorphicLayoutEffect)(()=>{let X=(0,ho.onScroll)(({x:ae,y:pe})=>{V.start({scrollX:ae.current,scrollXProgress:ae.progress,scrollY:pe.current,scrollYProgress:pe.progress})},{container:M?.current||void 0});return()=>{(0,ho.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},Mn=ct,xt=({container:M,...T})=>{let[B,V]=co(()=>({width:0,height:0,...T}),[]);return(0,Mn.useIsomorphicLayoutEffect)(()=>{let X=(0,Mn.onResize)(({width:ae,height:pe})=>{V.start({width:ae,height:pe,immediate:B.width.get()===0||B.height.get()===0})},{container:M?.current||void 0});return()=>{(0,Mn.each)(Object.values(B),ae=>ae.stop()),X()}},[]),B},yt=I,In=ct,vr={any:0,all:1};function Lr(M,T){let[B,V]=(0,yt.useState)(!1),X=(0,yt.useRef)(),ae=In.is.fun(M)&&M,pe=ae?ae():{},{to:fe={},from:ce={},...ye}=pe,Be=ae?T:M,[Ee,Qe]=co(()=>({from:ce,...ye}),[]);return(0,In.useIsomorphicLayoutEffect)(()=>{let Ve=X.current,{root:xe,once:Te,amount:je="any",...Pe}=Be??{};if(!Ve||Te&&B||typeof IntersectionObserver>"u")return;let Ge=new WeakMap,Re=()=>(fe&&Qe.start(fe),V(!0),Te?void 0:()=>{ce&&Qe.start(ce),V(!1)}),$e=nn=>{nn.forEach(tt=>{let Tt=Ge.get(tt.target);if(tt.isIntersecting!==!!Tt)if(tt.isIntersecting){let Mt=Re();In.is.fun(Mt)?Ge.set(tt.target,Mt):Kt.unobserve(tt.target)}else Tt&&(Tt(),Ge.delete(tt.target))})},Kt=new IntersectionObserver($e,{root:xe&&xe.current||void 0,threshold:typeof je=="number"||Array.isArray(je)?je:vr[je],...Pe});return Kt.observe(Ve),()=>Kt.unobserve(Ve)},[Be]),ae?[X,Ee]:[X,B]}function La({children:M,...T}){return M(co(T))}var hi=ct;function Fr({items:M,children:T,...B}){let V=Pc(M.length,B);return M.map((X,ae)=>{let pe=T(X,ae);return hi.is.fun(pe)?pe(V[ae]):pe})}function ls({items:M,children:T,...B}){return ss(M,B)(T)}var Mc=ct,Rt=ct,da=gc,fo=class extends mr{constructor(M,T){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=(0,Rt.createInterpolator)(...T);let B=this._get(),V=(0,da.getAnimatedType)(B);(0,da.setAnimated)(this,V.create(B))}advance(M){let T=this._get(),B=this.get();(0,Rt.isEqual)(T,B)||((0,da.getAnimated)(this).setValue(T),this._onChange(T,this.idle)),!this.idle&&Ic(this._active)&&Ol(this)}_get(){let M=Rt.is.arr(this.source)?this.source.map(Rt.getFluidValue):(0,Rt.toArray)((0,Rt.getFluidValue)(this.source));return this.calc(...M)}_start(){this.idle&&!Ic(this._active)&&(this.idle=!1,(0,Rt.each)((0,da.getPayload)(this),M=>{M.done=!1}),Rt.Globals.skipAnimation?(Rt.raf.batchedUpdates(()=>this.advance()),Ol(this)):Rt.frameLoop.start(this))}_attach(){let M=1;(0,Rt.each)((0,Rt.toArray)(this.source),T=>{(0,Rt.hasFluidValue)(T)&&(0,Rt.addFluidObserver)(T,this),Jt(T)&&(T.idle||this._active.add(T),M=Math.max(M,T.priority+1))}),this.priority=M,this._start()}_detach(){(0,Rt.each)((0,Rt.toArray)(this.source),M=>{(0,Rt.hasFluidValue)(M)&&(0,Rt.removeFluidObserver)(M,this)}),this._active.clear(),Ol(this)}eventObserved(M){M.type=="change"?M.idle?this.advance():(this._active.add(M.parent),this._start()):M.type=="idle"?this._active.delete(M.parent):M.type=="priority"&&(this.priority=(0,Rt.toArray)(this.source).reduce((T,B)=>Math.max(T,(Jt(B)?B.priority:0)+1),0))}};function pn(M){return M.idle!==!1}function Ic(M){return!M.size||Array.from(M).every(pn)}function Ol(M){M.idle||(M.idle=!0,(0,Rt.each)((0,da.getPayload)(M),T=>{T.done=!0}),(0,Rt.callFluidObservers)(M,{type:"idle",parent:M}))}var Dp=(M,...T)=>new fo(M,T),us=(M,...T)=>((0,Mc.deprecateInterpolate)(),new fo(M,T)),Fa=ct;Fa.Globals.assign({createStringInterpolator:Fa.createStringInterpolator,to:(M,T)=>new fo(M,T)});var po=Fa.frameLoop.advance,ja=ct;d(v,Hj(),t.exports)})(D4);var Kj=D4.exports;A4.exports=Kj;var V8=A4.exports;(function(t){var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(K,z)=>{for(var ee in z)e(K,ee,{get:z[ee],enumerable:!0})},s=(K,z,ee,Q)=>{if(z&&typeof z=="object"||typeof z=="function")for(let oe of n(z))!a.call(K,oe)&&oe!==ee&&e(K,oe,{get:()=>z[oe],enumerable:!(Q=r(z,oe))||Q.enumerable});return K},u=(K,z,ee)=>(s(K,z,"default"),ee&&s(ee,z,"default")),c=K=>s(e({},"__esModule",{value:!0}),K),d={};i(d,{a:()=>se,animated:()=>se}),t.exports=c(d);var f=V8,m=Oh,v=ct,y=gc,b=/^--/;function S(K,z){return z==null||typeof z=="boolean"||z===""?"":typeof z=="number"&&z!==0&&!b.test(K)&&!(k.hasOwnProperty(K)&&k[K])?z+"px":(""+z).trim()}var E={};function x(K,z){if(!K.nodeType||!K.setAttribute)return!1;let ee=K.nodeName==="filter"||K.parentNode&&K.parentNode.nodeName==="filter",{style:Q,children:oe,scrollTop:he,scrollLeft:Ce,viewBox:ge,...Me}=z,Ne=Object.values(Me),$=Object.keys(Me).map(re=>ee||K.hasAttribute(re)?re:E[re]||(E[re]=re.replace(/([A-Z])/g,le=>"-"+le.toLowerCase())));oe!==void 0&&(K.textContent=oe);for(let re in Q)if(Q.hasOwnProperty(re)){let le=S(re,Q[re]);b.test(re)?K.style.setProperty(re,le):K.style[re]=le}$.forEach((re,le)=>{K.setAttribute(re,Ne[le])}),he!==void 0&&(K.scrollTop=he),Ce!==void 0&&(K.scrollLeft=Ce),ge!==void 0&&K.setAttribute("viewBox",ge)}var k={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=(K,z)=>K+z.charAt(0).toUpperCase()+z.substring(1),C=["Webkit","Ms","Moz","O"];k=Object.keys(k).reduce((K,z)=>(C.forEach(ee=>K[g(ee,z)]=K[z]),K),k);var N=gc,O=ct,D=/^(matrix|translate|scale|rotate|skew)/,R=/^(translate)/,A=/^(rotate|skew)/,F=(K,z)=>O.is.num(K)&&K!==0?K+z:K,U=(K,z)=>O.is.arr(K)?K.every(ee=>U(ee,z)):O.is.num(K)?K===z:parseFloat(K)===z,H=class extends N.AnimatedObject{constructor({x:K,y:z,z:ee,...Q}){let oe=[],he=[];(K||z||ee)&&(oe.push([K||0,z||0,ee||0]),he.push(Ce=>[`translate3d(${Ce.map(ge=>F(ge,"px")).join(",")})`,U(Ce,0)])),(0,O.eachProp)(Q,(Ce,ge)=>{if(ge==="transform")oe.push([Ce||""]),he.push(Me=>[Me,Me===""]);else if(D.test(ge)){if(delete Q[ge],O.is.und(Ce))return;let Me=R.test(ge)?"px":A.test(ge)?"deg":"";oe.push((0,O.toArray)(Ce)),he.push(ge==="rotate3d"?([Ne,$,re,le])=>[`rotate3d(${Ne},${$},${re},${F(le,Me)})`,U(le,0)]:Ne=>[`${ge}(${Ne.map($=>F($,Me)).join(",")})`,U(Ne,ge.startsWith("scale")?1:0)])}}),oe.length&&(Q.transform=new q(oe,he)),super(Q)}},q=class extends O.FluidValue{constructor(K,z){super(),this.inputs=K,this.transforms=z,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let K="",z=!0;return(0,O.each)(this.inputs,(ee,Q)=>{let oe=(0,O.getFluidValue)(ee[0]),[he,Ce]=this.transforms[Q](O.is.arr(oe)?oe:ee.map(O.getFluidValue));K+=" "+he,z=z&&Ce}),z?"none":K}observerAdded(K){K==1&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.addFluidObserver)(ee,this)))}observerRemoved(K){K==0&&(0,O.each)(this.inputs,z=>(0,O.each)(z,ee=>(0,O.hasFluidValue)(ee)&&(0,O.removeFluidObserver)(ee,this)))}eventObserved(K){K.type=="change"&&(this._value=null),(0,O.callFluidObservers)(this,K)}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];u(d,V8,t.exports),f.Globals.assign({batchedUpdates:m.unstable_batchedUpdates,createStringInterpolator:v.createStringInterpolator,colors:v.colors});var ie=(0,y.createHost)(ne,{applyAnimatedValues:x,createAnimatedStyle:K=>new H(K),getComponentProps:({scrollTop:K,scrollLeft:z,...ee})=>ee}),se=ie.animated})(j4);var Yj=j4.exports;F4.exports=Yj;var Qj=F4.exports;const{useState:Zj,useEffect:Xj}=I;function Jj(){const[t,e]=Zj({width:void 0,height:void 0});return Xj(()=>{function r(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),t}var eA=Jj;const wl=I,{useSpring:tA,animated:rA}=Qj,nA=eA,ao={maxTilt:25,rotationPower:50,swipeThreshold:.5},Cy={touchResponsive:{friction:50,tension:2e3},animateOut:{friction:30,tension:400},animateBack:{friction:10,tension:200}},G8=(t,e)=>Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),aA=t=>{const e=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2));return{x:t.x/e,y:t.y/e}},mc=async(t,e,r,n)=>{const a=G8(r,n),i=G8(t.x,t.y),s=a*t.x,u=a*t.y,c=t.x*45,d=a/i;return e.start({xyrot:[s,u,c],config:{duration:d}}),await new Promise(f=>setTimeout(()=>{f()},d))},W8=t=>new Promise(e=>{t.start({xyrot:[0,0,0],config:Cy.animateBack,onRest:e})}),q8=t=>{if(Math.abs(t.x)>Math.abs(t.y)){if(t.x>ao.swipeThreshold)return"right";if(t.x<-ao.swipeThreshold)return"left"}else{if(t.y>ao.swipeThreshold)return"down";if(t.y<-ao.swipeThreshold)return"up"}return"none"},iA=rA.div,oA=wl.forwardRef(({flickOnSwipe:t=!0,children:e,onSwipe:r,onCardLeftScreen:n,className:a,preventSwipe:i=[],swipeRequirementType:s="velocity",swipeThreshold:u=ao.swipeThreshold,onSwipeRequirementFulfilled:c,onSwipeRequirementUnfulfilled:d},f)=>{const{width:m,height:v}=nA(),[{xyrot:y},b]=tA(()=>({xyrot:[0,0,0],config:Cy.touchResponsive}));ao.swipeThreshold=u,wl.useImperativeHandle(f,()=>({async swipe(g="right"){r&&r(g);const C=1.3,N=(Math.random()-.5)/2;g==="right"?await mc({x:C,y:N},b,m,v):g==="left"?await mc({x:-C,y:N},b,m,v):g==="up"?await mc({x:N,y:-C},b,m,v):g==="down"&&await mc({x:N,y:C},b,m,v),n&&n(g)},async restoreCard(){await W8(b)}}));const S=wl.useCallback(async(g,C)=>{const N=q8({x:s==="velocity"?C.vx:C.dx,y:s==="velocity"?C.vy:C.dy});if(N!=="none"&&t&&!i.includes(N)){r&&r(N),await mc(s==="velocity"?{x:C.vx,y:C.vy}:aA({x:C.dx,y:C.dy}),g,m,v),n&&n(N);return}W8(g)},[s,t,i,r,n,m,v]);let E="none";const x=(g,C,N,O)=>{let D=O?g.touches[0].clientX-C.x:g.clientX-C.x,R=O?g.touches[0].clientY-C.y:g.clientY-C.y;C.x===0&&C.y===0&&(D=0,R=0);const A=-(D-N.dx)/(N.timeStamp-Date.now()),F=-(R-N.dy)/(N.timeStamp-Date.now());return{dx:D,dy:R,vx:A,vy:F,timeStamp:Date.now()}};wl.useLayoutEffect(()=>{let g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()},N=!1;const O=q=>{!q.srcElement.className.includes("pressable")&&q.cancelable&&q.preventDefault(),C=x(q,g,C,!0),g={x:q.touches[0].clientX,y:q.touches[0].clientY}};k.current.addEventListener("touchstart",O);const D=q=>{N=!0,C=x(q,g,C,!1),g={x:q.clientX,y:q.clientY}};k.current.addEventListener("mousedown",D);const R=q=>{if(c||d){const ie=q8({x:s==="velocity"?q.vx:q.dx,y:s==="velocity"?q.vy:q.dy});ie!==E&&(E=ie,E==="none"?d&&d():c&&c(ie))}let ne=q.vx*15;isNaN(ne)&&(ne=0),ne=Math.max(Math.min(ne,ao.maxTilt),-ao.maxTilt),b.start({xyrot:[q.dx,q.dy,ne],config:Cy.touchResponsive})},A=q=>{if(!N)return;const ne=x(q,g,C,!1);C=ne,R(ne)};window.addEventListener("mousemove",A);const F=q=>{N&&(N=!1,S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()})};window.addEventListener("mouseup",F);const U=q=>{const ne=x(q,g,C,!0);C=ne,R(ne)};k.current.addEventListener("touchmove",U);const H=q=>{S(b,C),g={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()}};return k.current.addEventListener("touchend",H),()=>{k.current.removeEventListener("touchstart",O),k.current.removeEventListener("touchmove",U),k.current.removeEventListener("touchend",H),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",F),k.current.removeEventListener("mousedown",D)}},[S,b,c,d]);const k=wl.useRef();return wl.createElement(iA,{ref:k,className:a,style:{transform:y.to((g,C,N)=>`translate3d(${g}px, ${C}px, 0px) rotate(${N}deg)`)},children:e})});var sA=oA;const lA=Ga(sA);function _n(t){return e=>typeof e=="string"&&new RegExp(t.source,t.flags).test(e)}const uA=_n(/^[1-9][0-9]*$/),_y=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)$/),cA=_n(/^E[1-9][0-9]*$/),xp=_n(/^Q[1-9][0-9]*$/),Sp=_n(/^P[1-9][0-9]*$/),H8=_n(/^L[1-9][0-9]*$/),K8=_n(/^L[1-9][0-9]*-F[1-9][0-9]*$/),Y8=_n(/^L[1-9][0-9]*-S[1-9][0-9]*$/),dA=_n(/^M[1-9][0-9]*$/),hA=_n(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)\$[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),fA=_n(/^[0-9a-f]{40}$/),Q8=_n(/^\d+$/),Z8=_n(/^(Q|P|L|M)[1-9][0-9]*$/);function pA(t){if(typeof t!="string")return!1;const[e,r]=t.split("#");return _y(e)&&Sp(r)}function X8(t){return typeof t!="string"?!1:t.startsWith("Item:")?xp(t.substring(5)):t.startsWith("Lexeme:")?H8(t.substring(7)):t.startsWith("Property:")?Sp(t.substring(9)):xp(t)}function gA(t){if(!Z8(t))throw new Error(`invalid entity id: ${t}`);return t.replace(/^(Q|P|L|M)/,"")}function mA(t,e){let r=`https://commons.wikimedia.org/wiki/Special:FilePath/${t}`;return typeof e=="number"&&(r+=`?width=${e}`),r}function vA(t){const e=t.split(/[$-]/);if(e.length===6)return e[0].toUpperCase();if(e.length===7)return e.slice(0,2).join("-").toUpperCase();throw new Error(`invalid guid: ${t}`)}const yA=Object.freeze(Object.defineProperty({__proto__:null,getEntityIdFromGuid:vA,getImageUrl:mA,getNumericId:gA,isEntityId:_y,isEntityPageTitle:X8,isEntitySchemaId:cA,isFormId:K8,isGuid:hA,isHash:fA,isItemId:xp,isLexemeId:H8,isMediaInfoId:dA,isNonNestedEntityId:Z8,isNumericId:uA,isPropertyClaimsId:pA,isPropertyId:Sp,isRevisionId:Q8,isSenseId:Y8},Symbol.toStringTag,{value:"Module"}));function Pa(t){return typeof t=="string"?[t]:Array.isArray(t)?[...t]:[]}function J8(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}const e6=t=>encodeURIComponent(t).replace(/[!'()*]/g,kA),bA=t=>t.replace(/\s/g,"_");function wA(t){return Array.from(new Set(t))}const kA=t=>"%"+t.charCodeAt(0).toString(16);function io(t){if(t.length!==1||!J8(t[0]))throw new Error(`Since wikibase-sdk v9.0.0, this function expects arguments to be passed in an object - See https://github.com/maxlath/wikibase-sdk/blob/main/CHANGELOG.md`)}function vc(t,e){return typeof e=="string"&&t.includes(e)}function Ey(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Py(t){return Object.entries(t)}function My(t){typeof t=="object"&&(t=t.time);const e=t[0];let[r,n]=t.slice(1).split("T");r=r.replace(/-00/g,"-01");const a=`${r}T${n}`;return xA(e,a)}const xA=(t,e)=>{const r=e.split("-")[0];return t==="-"||r.length>4?SA(t,e,r):new Date(e)},SA=(t,e,r)=>{let n;return r.length===4?n=`${t}00${e}`:r.length===5?n=`${t}0${e}`:n=t+e,new Date(n)};function Iy(t){return e=>{try{return t(e)}catch{e=typeof e=="string"?e:e.time;const r=e[0];let[n,a]=e.slice(1).split("T");if(!r||!n||!a)throw new Error("TimeInput is invalid: "+JSON.stringify(e));return n=n.replace(/-00/g,"-01"),`${r}${n}T${a}`}}}const CA=t=>My(t).getTime(),_A=t=>My(t).toISOString(),EA=t=>{if(typeof t=="object"){const{time:e,precision:r}=t;r===9?t=e.replace("-01-01T","-00-00T"):r===10?t=e.replace("-01T","-00T"):t=e}return t.split("T")[0].replace(/^\+/,"").replace(/^(-?)0+/,"$1").replace(/-00$/,"").replace(/-00$/,"")},t6=Iy(CA),r6=Iy(_A),n6=Iy(EA),PA=Object.freeze(Object.defineProperty({__proto__:null,wikibaseTimeToDateObject:My,wikibaseTimeToEpochTime:t6,wikibaseTimeToISOString:r6,wikibaseTimeToSimpleDay:n6},Symbol.toStringTag,{value:"Module"})),oo=t=>t.value,MA=(t,e)=>e.keepRichValues?t.value:t.value.text,kl=(t,e)=>NA(t,e.entityPrefix),IA={item:"Q",lexeme:"L",property:"P"},NA=(t,e)=>{const{value:r}=t,n=r.id||IA[r["entity-type"]]+r["numeric-id"];return typeof e=="string"?`${e}:${n}`:n},OA=(t,e)=>{const{value:r}=t,n=parseFloat(r.amount);if(e.keepRichValues){const a={amount:parseFloat(r.amount),unit:r.unit.replace(/^https?:\/\/.*\/entity\//,"")};return r.upperBound!=null&&(a.upperBound=parseFloat(r.upperBound)),r.lowerBound!=null&&(a.lowerBound=parseFloat(r.lowerBound)),a}else return n},RA=(t,e)=>e.keepRichValues?t.value:[t.value.latitude,t.value.longitude],TA=(t,e)=>{let r;if(typeof e.timeConverter=="function"?r=e.timeConverter(t.value):r=LA(e.timeConverter)(t.value),e.keepRichValues){const{timezone:n,before:a,after:i,precision:s,calendarmodel:u}=t.value;return{time:r,timezone:n,before:a,after:i,precision:s,calendarmodel:u}}else return r},LA=(t="iso")=>{const e=FA[t];if(!e)throw new Error(`invalid converter key: ${JSON.stringify(t).substring(0,100)}`);return e},FA={iso:r6,epoch:t6,"simple-day":n6,none:t=>typeof t=="string"?t:t.time},jA={commonsMedia:oo,"external-id":oo,"geo-shape":oo,"globe-coordinate":RA,math:oo,monolingualtext:MA,"musical-notation":oo,quantity:OA,string:oo,"tabular-data":oo,time:TA,url:oo,"wikibase-entityid":kl,"wikibase-form":kl,"wikibase-item":kl,"wikibase-lexeme":kl,"wikibase-property":kl,"wikibase-sense":kl},a6=t=>t.toLowerCase().replace(/[\s-]/g,""),i6={};for(const[t,e]of Object.entries(jA))i6[a6(t)]=e;function AA(t,e,r,n){t=t||e.type;try{const a=i6[a6(t)];return a(e,r)}catch(a){throw a.message==="parsers[datatype] is not a function"&&(a.message=`${t} claim parser isn't implemented - Claim id: ${n} - Please report to https://github.com/maxlath/wikibase-sdk/issues`),a}}function Ny(t){const e={};for(const r of t){const{rank:n}=r;e[n]=e[n]||[],e[n].push(r)}return e.preferred||e.normal||[]}function o6(t){return t.filter(e=>e.rank!=="deprecated")}function DA(t){const e={};for(const[r,n]of Py(t))e[r]=Ny(n);return e}const zA=Object.freeze(Object.defineProperty({__proto__:null,nonDeprecatedPropertyClaims:o6,truthyClaims:DA,truthyPropertyClaims:Ny},Symbol.toStringTag,{value:"Module"}));function Oy(t,e){const{propertyPrefix:r}=e,n={};for(let a in t){const i=t[a];r&&(a=r+":"+a),n[a]=Ry(i,e)}return n}function Ry(t,e){if(t==null||t.length===0)return[];const{keepNonTruthy:r,keepNonDeprecated:n,areSubSnaks:a}=d6(e);return n?t=o6(t):r||a||(t=Ny(t)),t=t.map(i=>Ty(i,e)).filter(i=>i!==void 0),t[0]&&typeof t[0]!="object"?wA(t):t}function s6(t,e){const{keepQualifiers:r,keepReferences:n,keepIds:a,keepHashes:i,keepTypes:s,keepSnaktypes:u,keepRanks:c}=d6(e),{mainsnak:d,rank:f}=t;let m,v,y,b,S,E;if(d?(v=d.datatype,y=d.datavalue,b=d.snaktype):(y=t.datavalue,v=t.datatype,b=t.snaktype,t.hash?S=!0:E=!0),y)m=AA(v,y,e,t.id);else if(b==="somevalue")m=e.somevalueValue;else if(b==="novalue")m=e.novalueValue;else throw new Error("no datavalue or special snaktype found");if(S){if(!(i||s||u))return m;const g={value:m};return i&&(g.hash=t.hash),s&&(g.type=v),u&&(g.snaktype=b),g}if(E)return s?{type:v,value:m}:m;if(!(r||n||a||s||u||c))return m;const x={value:m};s&&(x.type=v),u&&(x.snaktype=b),c&&(x.rank=f);const k=Cp(e);return k.keepHashes=i,r&&(x.qualifiers=u6(t.qualifiers,k)),n&&(t.references=t.references||[],x.references=c6(t.references,k)),a&&(x.id=t.id),x}function xl(t,e={}){return Oy(t,e)}function l6(t,e={}){return Ry(t,e)}function Ty(t,e={}){return s6(t,e)}function u6(t,e={}){return Oy(t,Cp(e))}function BA(t,e={}){return Ry(t,Cp(e))}function UA(t,e={}){return s6(t,e)}function c6(t,e={}){return t.map(r=>$A(r,e))}function $A(t,e={}){const r=Cp(e),n=Oy(t.snaks,r);return r.keepHashes?{snaks:n,hash:t.hash}:n}const Cp=(t={})=>t.areSubSnaks?t:Object.assign({},t,{areSubSnaks:!0}),VA=["keepQualifiers","keepReferences","keepIds","keepHashes","keepTypes","keepSnaktypes","keepRanks","keepRichValues"],d6=(t={})=>(t.keepAll&&VA.forEach(e=>{t[e]==null&&(t[e]=!0)}),t);function yc(t){const e={};for(const[r,n]of Py(t))e[r]=n!=null?n.value:null;return e}function GA(t){const e={};for(const[r,n]of Py(t))e[r]=n!=null?n.map(a=>a.value):[];return e}function h6(t){return yc(t)}function f6(t){return yc(t)}function p6(t){return GA(t)}function g6(t){return yc(t)}function m6(t){return yc(t)}function v6(t){return yc(t)}const y6=(t,e={})=>{const{id:r,representations:n,grammaticalFeatures:a,claims:i}=t;if(!K8(r))throw new Error("invalid form object");return{id:r,representations:m6(n),grammaticalFeatures:a,claims:xl(i,e)}},b6=(t,e={})=>t.map(r=>y6(r,e)),w6=(t,e={})=>{const{id:r,glosses:n,claims:a}=t;if(!Y8(r))throw new Error("invalid sense object");return{id:r,glosses:v6(n),claims:xl(a,e)}};function k6(t,e={}){return t.map(r=>w6(r,e))}const Ly={commonswiki:"commons",foundationwiki:"foundation",mediawikiwiki:"mediawiki",metawiki:"meta",outreachwiki:"outreach",sourceswiki:"sources",specieswiki:"species",wikidatawiki:"wikidata",wikifunctionswiki:"wikifunctions",wikimaniawiki:"wikimania"},Fy=["aawiki","aawikibooks","aawiktionary","abwiki","abwiktionary","acewiki","adywiki","afwiki","afwikibooks","afwikiquote","afwiktionary","akwiki","akwikibooks","akwiktionary","alswiki","alswikibooks","alswikiquote","alswiktionary","altwiki","amiwiki","amwiki","amwikiquote","amwiktionary","angwiki","angwikibooks","angwikiquote","angwikisource","angwiktionary","anpwiki","anwiki","anwiktionary","arcwiki","arwiki","arwikibooks","arwikinews","arwikiquote","arwikisource","arwikiversity","arwiktionary","arywiki","arzwiki","astwiki","astwikibooks","astwikiquote","astwiktionary","aswiki","aswikibooks","aswikiquote","aswikisource","aswiktionary","atjwiki","avkwiki","avwiki","avwiktionary","awawiki","aywiki","aywikibooks","aywiktionary","azbwiki","azwiki","azwikibooks","azwikiquote","azwikisource","azwiktionary","banwiki","banwikisource","barwiki","bat_smgwiki","bawiki","bawikibooks","bbcwiki","bclwiki","bclwikiquote","bclwiktionary","be_x_oldwiki","bewiki","bewikibooks","bewikiquote","bewikisource","bewiktionary","bgwiki","bgwikibooks","bgwikinews","bgwikiquote","bgwikisource","bgwiktionary","bhwiki","bhwiktionary","biwiki","biwikibooks","biwiktionary","bjnwiki","bjnwikiquote","bjnwiktionary","blkwiki","blkwiktionary","bmwiki","bmwikibooks","bmwikiquote","bmwiktionary","bnwiki","bnwikibooks","bnwikiquote","bnwikisource","bnwikivoyage","bnwiktionary","bowiki","bowikibooks","bowiktionary","bpywiki","brwiki","brwikiquote","brwikisource","brwiktionary","bswiki","bswikibooks","bswikinews","bswikiquote","bswikisource","bswiktionary","btmwiktionary","bugwiki","bxrwiki","cawiki","cawikibooks","cawikinews","cawikiquote","cawikisource","cawiktionary","cbk_zamwiki","cdowiki","cebwiki","cewiki","chowiki","chrwiki","chrwiktionary","chwiki","chwikibooks","chwiktionary","chywiki","ckbwiki","ckbwiktionary","commonswiki","cowiki","cowikibooks","cowikiquote","cowiktionary","crhwiki","crwiki","crwikiquote","crwiktionary","csbwiki","csbwiktionary","cswiki","cswikibooks","cswikinews","cswikiquote","cswikisource","cswikiversity","cswiktionary","cuwiki","cvwiki","cvwikibooks","cywiki","cywikibooks","cywikiquote","cywikisource","cywiktionary","dagwiki","dawiki","dawikibooks","dawikiquote","dawikisource","dawiktionary","dewiki","dewikibooks","dewikinews","dewikiquote","dewikisource","dewikiversity","dewikivoyage","dewiktionary","dgawiki","dinwiki","diqwiki","diqwiktionary","dsbwiki","dtywiki","dvwiki","dvwiktionary","dzwiki","dzwiktionary","eewiki","elwiki","elwikibooks","elwikinews","elwikiquote","elwikisource","elwikiversity","elwikivoyage","elwiktionary","emlwiki","enwiki","enwikibooks","enwikinews","enwikiquote","enwikisource","enwikiversity","enwikivoyage","enwiktionary","eowiki","eowikibooks","eowikinews","eowikiquote","eowikisource","eowikivoyage","eowiktionary","eswiki","eswikibooks","eswikinews","eswikiquote","eswikisource","eswikiversity","eswikivoyage","eswiktionary","etwiki","etwikibooks","etwikiquote","etwikisource","etwiktionary","euwiki","euwikibooks","euwikiquote","euwikisource","euwiktionary","extwiki","fatwiki","fawiki","fawikibooks","fawikinews","fawikiquote","fawikisource","fawikivoyage","fawiktionary","ffwiki","fiu_vrowiki","fiwiki","fiwikibooks","fiwikinews","fiwikiquote","fiwikisource","fiwikiversity","fiwikivoyage","fiwiktionary","fjwiki","fjwiktionary","fonwiki","foundationwiki","fowiki","fowikisource","fowiktionary","frpwiki","frrwiki","frwiki","frwikibooks","frwikinews","frwikiquote","frwikisource","frwikiversity","frwikivoyage","frwiktionary","furwiki","fywiki","fywikibooks","fywiktionary","gagwiki","ganwiki","gawiki","gawikibooks","gawikiquote","gawiktionary","gcrwiki","gdwiki","gdwiktionary","glkwiki","glwiki","glwikibooks","glwikiquote","glwikisource","glwiktionary","gnwiki","gnwikibooks","gnwiktionary","gomwiki","gomwiktionary","gorwiki","gorwiktionary","gotwiki","gotwikibooks","gpewiki","gucwiki","gurwiki","guwiki","guwikibooks","guwikiquote","guwikisource","guwiktionary","guwwiki","guwwikinews","guwwikiquote","guwwiktionary","gvwiki","gvwiktionary","hakwiki","hawiki","hawiktionary","hawwiki","hewiki","hewikibooks","hewikinews","hewikiquote","hewikisource","hewikivoyage","hewiktionary","hifwiki","hifwiktionary","hiwiki","hiwikibooks","hiwikiquote","hiwikisource","hiwikiversity","hiwikivoyage","hiwiktionary","howiki","hrwiki","hrwikibooks","hrwikiquote","hrwikisource","hrwiktionary","hsbwiki","hsbwiktionary","htwiki","htwikisource","huwiki","huwikibooks","huwikinews","huwikiquote","huwikisource","huwiktionary","hywiki","hywikibooks","hywikiquote","hywikisource","hywiktionary","hywwiki","hzwiki","iawiki","iawikibooks","iawiktionary","idwiki","idwikibooks","idwikiquote","idwikisource","idwiktionary","iewiki","iewikibooks","iewiktionary","igwiki","igwikiquote","igwiktionary","iiwiki","ikwiki","ikwiktionary","ilowiki","inhwiki","iowiki","iowiktionary","iswiki","iswikibooks","iswikiquote","iswikisource","iswiktionary","itwiki","itwikibooks","itwikinews","itwikiquote","itwikisource","itwikiversity","itwikivoyage","itwiktionary","iuwiki","iuwiktionary","jamwiki","jawiki","jawikibooks","jawikinews","jawikiquote","jawikisource","jawikiversity","jawikivoyage","jawiktionary","jbowiki","jbowiktionary","jvwiki","jvwikisource","jvwiktionary","kaawiki","kabwiki","kawiki","kawikibooks","kawikiquote","kawiktionary","kbdwiki","kbdwiktionary","kbpwiki","kcgwiki","kcgwiktionary","kgwiki","kiwiki","kjwiki","kkwiki","kkwikibooks","kkwikiquote","kkwiktionary","klwiki","klwiktionary","kmwiki","kmwikibooks","kmwiktionary","knwiki","knwikibooks","knwikiquote","knwikisource","knwiktionary","koiwiki","kowiki","kowikibooks","kowikinews","kowikiquote","kowikisource","kowikiversity","kowiktionary","krcwiki","krwiki","krwikiquote","kshwiki","kswiki","kswikibooks","kswikiquote","kswiktionary","kuwiki","kuwikibooks","kuwikiquote","kuwiktionary","kvwiki","kwwiki","kwwikiquote","kwwiktionary","kywiki","kywikibooks","kywikiquote","kywiktionary","ladwiki","lawiki","lawikibooks","lawikiquote","lawikisource","lawiktionary","lbewiki","lbwiki","lbwikibooks","lbwikiquote","lbwiktionary","lezwiki","lfnwiki","lgwiki","lijwiki","lijwikisource","liwiki","liwikibooks","liwikinews","liwikiquote","liwikisource","liwiktionary","lldwiki","lmowiki","lmowiktionary","lnwiki","lnwikibooks","lnwiktionary","lowiki","lowiktionary","lrcwiki","ltgwiki","ltwiki","ltwikibooks","ltwikiquote","ltwikisource","ltwiktionary","lvwiki","lvwikibooks","lvwiktionary","madwiki","maiwiki","map_bmswiki","mdfwiki","mediawikiwiki","metawiki","mgwiki","mgwikibooks","mgwiktionary","mhrwiki","mhwiki","mhwiktionary","minwiki","minwiktionary","miwiki","miwikibooks","miwiktionary","mkwiki","mkwikibooks","mkwikisource","mkwiktionary","mlwiki","mlwikibooks","mlwikiquote","mlwikisource","mlwiktionary","mniwiki","mniwiktionary","mnwiki","mnwikibooks","mnwiktionary","mnwwiki","mnwwiktionary","mowiki","mowiktionary","mrjwiki","mrwiki","mrwikibooks","mrwikiquote","mrwikisource","mrwiktionary","mswiki","mswikibooks","mswiktionary","mtwiki","mtwiktionary","muswiki","mwlwiki","myvwiki","mywiki","mywikibooks","mywiktionary","mznwiki","nahwiki","nahwikibooks","nahwiktionary","napwiki","napwikisource","nawiki","nawikibooks","nawikiquote","nawiktionary","nds_nlwiki","ndswiki","ndswikibooks","ndswikiquote","ndswiktionary","newiki","newikibooks","newiktionary","newwiki","ngwiki","niawiki","niawiktionary","nlwiki","nlwikibooks","nlwikinews","nlwikiquote","nlwikisource","nlwikivoyage","nlwiktionary","nnwiki","nnwikiquote","nnwiktionary","novwiki","nowiki","nowikibooks","nowikinews","nowikiquote","nowikisource","nowiktionary","nqowiki","nrmwiki","nsowiki","nvwiki","nywiki","ocwiki","ocwikibooks","ocwiktionary","olowiki","omwiki","omwiktionary","orwiki","orwikisource","orwiktionary","oswiki","outreachwiki","pagwiki","pamwiki","papwiki","pawiki","pawikibooks","pawikisource","pawiktionary","pcdwiki","pcmwiki","pdcwiki","pflwiki","pihwiki","piwiki","piwiktionary","plwiki","plwikibooks","plwikinews","plwikiquote","plwikisource","plwikivoyage","plwiktionary","pmswiki","pmswikisource","pnbwiki","pnbwiktionary","pntwiki","pswiki","pswikibooks","pswikivoyage","pswiktionary","ptwiki","ptwikibooks","ptwikinews","ptwikiquote","ptwikisource","ptwikiversity","ptwikivoyage","ptwiktionary","pwnwiki","quwiki","quwikibooks","quwikiquote","quwiktionary","rmwiki","rmwikibooks","rmwiktionary","rmywiki","rnwiki","rnwiktionary","roa_rupwiki","roa_rupwiktionary","roa_tarawiki","rowiki","rowikibooks","rowikinews","rowikiquote","rowikisource","rowikivoyage","rowiktionary","ruewiki","ruwiki","ruwikibooks","ruwikinews","ruwikiquote","ruwikisource","ruwikiversity","ruwikivoyage","ruwiktionary","rwwiki","rwwiktionary","sahwiki","sahwikiquote","sahwikisource","satwiki","sawiki","sawikibooks","sawikiquote","sawikisource","sawiktionary","scnwiki","scnwiktionary","scowiki","scwiki","scwiktionary","sdwiki","sdwikinews","sdwiktionary","sewiki","sewikibooks","sgwiki","sgwiktionary","shiwiki","shnwiki","shnwikibooks","shnwikivoyage","shnwiktionary","shwiki","shwiktionary","shywiktionary","simplewiki","simplewikibooks","simplewikiquote","simplewiktionary","siwiki","siwikibooks","siwiktionary","skrwiki","skrwiktionary","skwiki","skwikibooks","skwikiquote","skwikisource","skwiktionary","slwiki","slwikibooks","slwikiquote","slwikisource","slwikiversity","slwiktionary","smnwiki","smwiki","smwiktionary","snwiki","snwiktionary","sourceswiki","sowiki","sowiktionary","specieswiki","sqwiki","sqwikibooks","sqwikinews","sqwikiquote","sqwiktionary","srnwiki","srwiki","srwikibooks","srwikinews","srwikiquote","srwikisource","srwiktionary","sswiki","sswiktionary","stqwiki","stwiki","stwiktionary","suwiki","suwikibooks","suwikiquote","suwikisource","suwiktionary","svwiki","svwikibooks","svwikinews","svwikiquote","svwikisource","svwikiversity","svwikivoyage","svwiktionary","swwiki","swwikibooks","swwiktionary","szlwiki","szywiki","tawiki","tawikibooks","tawikinews","tawikiquote","tawikisource","tawiktionary","taywiki","tcywiki","tetwiki","tewiki","tewikibooks","tewikiquote","tewikisource","tewiktionary","tgwiki","tgwikibooks","tgwiktionary","thwiki","thwikibooks","thwikinews","thwikiquote","thwikisource","thwiktionary","tiwiki","tiwiktionary","tkwiki","tkwikibooks","tkwikiquote","tkwiktionary","tlwiki","tlwikibooks","tlwikiquote","tlwiktionary","tlywiki","tnwiki","tnwiktionary","towiki","towiktionary","tpiwiki","tpiwiktionary","trvwiki","trwiki","trwikibooks","trwikinews","trwikiquote","trwikisource","trwikivoyage","trwiktionary","tswiki","tswiktionary","ttwiki","ttwikibooks","ttwikiquote","ttwiktionary","tumwiki","twwiki","twwiktionary","tyvwiki","tywiki","udmwiki","ugwiki","ugwikibooks","ugwikiquote","ugwiktionary","ukwiki","ukwikibooks","ukwikinews","ukwikiquote","ukwikisource","ukwikivoyage","ukwiktionary","urwiki","urwikibooks","urwikiquote","urwiktionary","uzwiki","uzwikibooks","uzwikiquote","uzwiktionary","vecwiki","vecwikisource","vecwiktionary","vepwiki","vewiki","viwiki","viwikibooks","viwikiquote","viwikisource","viwikivoyage","viwiktionary","vlswiki","vowiki","vowikibooks","vowikiquote","vowiktionary","warwiki","wawiki","wawikibooks","wawikisource","wawiktionary","wikidatawiki","wikifunctionswiki","wikimaniawiki","wowiki","wowikiquote","wowiktionary","wuuwiki","xalwiki","xhwiki","xhwikibooks","xhwiktionary","xmfwiki","yiwiki","yiwikisource","yiwiktionary","yowiki","yowikibooks","yowiktionary","yuewiktionary","zawiki","zawikibooks","zawikiquote","zawiktionary","zeawiki","zghwiki","zh_classicalwiki","zh_min_nanwiki","zh_min_nanwikibooks","zh_min_nanwikiquote","zh_min_nanwikisource","zh_min_nanwiktionary","zh_yuewiki","zhwiki","zhwikibooks","zhwikinews","zhwikiquote","zhwikisource","zhwikiversity","zhwikivoyage","zhwiktionary","zuwiki","zuwikibooks","zuwiktionary"],WA="https://www.wikidata.org/wiki/";function x6({site:t,title:e}){if(io(arguments),!t)throw new Error("missing a site");if(!e)throw new Error("missing a title");if(Ey(_p,t))return _p[t](e);const r=t.replace(/wiki$/,"");if(Ey(_p,r))return _p[r](e);const{lang:n,project:a}=S6(t);return e=e6(bA(e)),`https://${n}.${a}.org/wiki/${e}`}const Xo=t=>e=>`https://${t}.wikimedia.org/wiki/${e}`,_p={commons:Xo("commons"),foundation:Xo("foundation"),mediawiki:t=>`https://www.mediawiki.org/wiki/${t}`,meta:Xo("meta"),outreach:Xo("outreach"),sources:t=>`https://wikisource.org/wiki/${t}`,species:Xo("species"),wikidata:t=>{const e=qA[t[0]];let r=e?`${e}:${t}`:t;return r=r.replace("-","#"),`${WA}${r}`},wikifunctions:Xo("wikifunctions"),wikimania:Xo("wikimania")},qA={E:"EntitySchema",L:"Lexeme",P:"Property"},HA=/^https?:\/\/([\w-]{2,10})\.(\w+)\.org\/\w+\/(.*)/;function S6(t){if(t.startsWith("http")){const e=t,r=e.match(HA);if(!r)throw new Error(`invalid sitelink url: ${e}`);let[n,a,i]=r.slice(1);if(i=decodeURIComponent(i),n==="commons")return{lang:"en",project:"commons",key:"commons",title:i,url:e};if(!vc(YA,a))throw new Error(`project is unknown: ${a}`);if(n==="www")return{lang:"en",project:a,key:a,title:i,url:e};const s=`${n.replace(/-/g,"_")}${a}`.replace("wikipedia","wiki");return{lang:n,project:a,key:s,title:i,url:e}}else{if(Ey(Ly,t))return{lang:"en",project:Ly[t],key:t};if(!vc(Fy,t))throw new Error(`site not found: ${t}. Updating wikibase-sdk to a more recent version might fix the issue.`);let[e,r,n]=t.split("wik");if(n!=null)throw new Error(`invalid sitelink key: ${t}`);e=e.replace(/_/g,"-");const a=_6[r];if(!a)throw new Error(`sitelink project not found: ${a}`);return{lang:e,project:a,key:t}}}const C6=t=>vc(Fy,t),KA=C6,_6={i:"wikipedia",isource:"wikisource",iquote:"wikiquote",tionary:"wiktionary",ibooks:"wikibooks",iversity:"wikiversity",ivoyage:"wikivoyage",inews:"wikinews"},YA=[...Object.values(_6),...Object.values(Ly)],QA=Object.freeze(Object.defineProperty({__proto__:null,getSitelinkData:S6,getSitelinkUrl:x6,isSite:C6,isSitelinkKey:KA},Symbol.toStringTag,{value:"Module"}));function E6(t,e={}){let{addUrl:r,keepBadges:n,keepAll:a}=e;return n=n||a,Object.keys(t).reduce(ZA({sitelinks:t,addUrl:r,keepBadges:n}),{})}const ZA=({sitelinks:t,addUrl:e,keepBadges:r})=>(n,a)=>{if(t[a]==null)return n[a]=t[a],n;const{title:i,badges:s}=t[a];return e||r?(n[a]={title:i},e&&(n[a].url=x6({site:a,title:i})),r&&(n[a].badges=s)):n[a]=i,n},XA={labels:h6,descriptions:f6,aliases:p6,claims:xl,statements:xl,sitelinks:E6,lemmas:g6,forms:b6,senses:k6},P6=(t,e={})=>{const{type:r}=t,n={id:t.id,type:r,modified:t.modified};return r==="item"?(Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"aliases"),Hr(t,n,"claims",e),Hr(t,n,"sitelinks",e)):r==="property"?(n.datatype=t.datatype,Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"aliases"),Hr(t,n,"claims",e)):r==="lexeme"?(Hr(t,n,"lemmas"),n.lexicalCategory=t.lexicalCategory,n.language=t.language,Hr(t,n,"claims",e),Hr(t,n,"forms",e),Hr(t,n,"senses",e)):r==="mediainfo"&&(Hr(t,n,"labels"),Hr(t,n,"descriptions"),Hr(t,n,"statements",e)),n},Hr=(t,e,r,n)=>{t[r]!=null&&(e[r]=XA[r](t[r],n))},M6=(t,e={})=>{t.entities&&(t=t.entities);const{entityPrefix:r}=e,n={};for(const[a,i]of Object.entries(t)){const s=r?`${r}:${a}`:a;n[s]=P6(i,e)}return n};function JA(t){t=t.body||t;const{entities:e}=t;return M6(e)}function eD(t){return t=t.body||t,t.query.search.map(e=>e.title)}const tD=Object.freeze(Object.defineProperty({__proto__:null,entities:JA,pagesTitles:eD},Symbol.toStringTag,{value:"Module"}));function rD(t,e={}){typeof t=="string"&&(t=JSON.parse(t));const{vars:r}=t.head,n=t.results.bindings;if(r.length===1&&e.minimize){const u=r[0];return n.map(c=>jy(c[u])).filter(c=>c!=null)}const{richVars:a,associatedVars:i,standaloneVars:s}=iD(r);return n.map(u=>oD(a,i,s,u))}function jy(t){if(!t||t.type==="bnode")return null;const{value:e}=t;if(t.type==="uri")return nD(e);const r=(t.datatype||"").replace("http://www.w3.org/2001/XMLSchema#","");return r==="decimal"||r==="integer"||r==="float"||r==="double"?parseFloat(e):r==="boolean"?e==="true":e}function nD(t){return t.match(/http.*\/entity\/statement\//)?aD(t):t.replace(/^https?:\/\/.*\/entity\//,"").replace(/^https?:\/\/.*\/prop\/direct\//,"")}function aD(t){t=t.replace(/^https?:\/\/.*\/entity\/statement\//,"");const e=t.split("-");return e[0]+"$"+e.slice(1).join("-")}function iD(t){let e=t.filter(i=>{const s=new RegExp(`^${i}[A-Z]\\w+`);return t.some(u=>s.test(u))});e=e.filter(i=>!e.some(s=>i!==s&&i.startsWith(s)));const r=new RegExp(`^(${e.join("|")})[A-Z]`),n=t.filter(i=>r.test(i)),a=t.filter(i=>!e.includes(i)&&!r.test(i));return{richVars:e,associatedVars:n,standaloneVars:a}}function oD(t,e,r,n){const a={};for(const i of t){const s={},u=jy(n[i]);u!=null&&(s.value=u);for(const c of e)c.startsWith(i)&&sD(n,i,c,s);Object.keys(s).length>0&&(a[i]=s)}for(const i of r){const s=jy(n[i]);s!=null&&(a[i]=s)}return a}function sD(t,e,r,n){let a=r.split(e)[1];a=a[0].toLowerCase()+a.slice(1),a=a==="altLabel"?"aliases":a;const i=t[r];i!=null&&(n[a]=i.value)}const lD=Object.freeze(Object.defineProperty({__proto__:null,aliases:p6,claim:Ty,claims:xl,descriptions:f6,entities:M6,entity:P6,form:y6,forms:b6,glosses:v6,labels:h6,lemmas:g6,propertyClaims:l6,propertyQualifiers:BA,propertySnaks:l6,qualifier:UA,qualifiers:u6,references:c6,representations:m6,sense:w6,senses:k6,sitelinks:E6,snak:Ty,snaks:xl,sparqlResults:rD},Symbol.toStringTag,{value:"Module"})),uD=/^\d+[|\d]*$/;function cD(t){return function(e){io(arguments);for(const[y,b]of Object.entries(e))if(y.startsWith("sr")){const S=y.replace(/^sr/,"");if(e[S]!=null)throw new Error(`${S} and ${y} are the same`);e[S]=b}const{search:r,haswbstatement:n,format:a="json",limit:i,offset:s,profile:u,sort:c}=e;let{namespace:d,prop:f}=e;if(!(r||n))throw new Error('missing "search" or "haswbstatement" parameter');let m="";if(r&&(m+=r),n){const y=n instanceof Array?n:[n];for(const b of y)b[0]==="-"?m+=` -haswbstatement:${b.slice(1)}`:m+=` haswbstatement:${b}`}if(i!=null&&(typeof i!="number"||i<1))throw new Error(`invalid limit: ${i}`);if(s!=null&&(typeof s!="number"||s<0))throw new Error(`invalid offset: ${s}`);if(d instanceof Array?d=d.join("|"):typeof d=="number"&&(d=d.toString()),d&&!uD.test(d))throw new Error(`invalid namespace: ${d}`);if(u!=null&&typeof u!="string")throw new Error(`invalid profile: ${u} (${typeof u}, expected string)`);if(c!=null&&typeof c!="string")throw new Error(`invalid sort: ${c} (${typeof c}, expected string)`);let v;if(f!=null){if(f instanceof Array&&(f=f.join("|")),typeof f!="string")throw new Error(`invalid prop: ${f} (${typeof f}, expected string)`);v=f.toString()}return t({action:"query",list:"search",srsearch:m.trim(),format:a,srnamespace:d,srlimit:i,sroffset:s,srqiprofile:u,srsort:c,srprop:v})}}function Ep(t,e){return function(r){if(!e(r))throw new Error(`invalid ${t}: ${r} (type: ${pD(r)})`)}}const I6=Ep("entity id",_y),dD=Ep("property id",Sp),hD=Ep("entity page title",X8),fD=Ep("revision id",Q8);function pD(t){const e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Array)return"array";if(t instanceof Promise)return"promise"}return e==="number"&&Number.isNaN(t)?"NaN":e}function N6(t){return function({ids:e,languages:r,props:n,format:a="json",redirects:i}){if(io(arguments),!(e&&e.length>0))throw new Error("no id provided");e=Pa(e),e.forEach(u=>I6(u)),e.length>50&&console.warn(`getEntities accepts 50 ids max to match Wikidata API limitations: - this request won't get all the desired entities. - You can use getManyEntities instead to generate several request urls - to work around this limitation`);const s={action:"wbgetentities",ids:e.join("|"),format:a};return i===!1&&(s.redirects="no"),r&&(r=Pa(r),s.languages=r.join("|")),n&&n.length>0&&(s.props=Pa(n).join("|")),t(s)}}function gD(t){return function({titles:e,sites:r,languages:n,props:a,format:i="json",redirects:s}){if(io(arguments),!(e&&e.length>0))throw new Error("no titles provided");r&&r.length>0||(r=["enwiki"]),e=Pa(e),r=Pa(r).map(mD),a=Pa(a);const u={action:"wbgetentities",titles:e.join("|"),sites:r.join("|"),format:i};return r.length===1&&e.length===1&&(u.normalize=!0),n&&(n=Pa(n),u.languages=n.join("|")),a.length>0&&(u.props=a.join("|")),s===!1&&(u.redirects="no"),t(u)}}function mD(t){return vc(Fy,t)?t:t.replace(/-/g,"_")+"wiki"}function vD(t,e){return function({id:r,revision:n}){return io(arguments),I6(r),fD(n),`${t}/${e}/index.php?title=Special:EntityData/${r}.json&revision=${n}`}}function yD(t){const e=N6(t);return function({ids:r,languages:n,props:a,format:i,redirects:s}){if(io(arguments),!(r instanceof Array))throw new Error("getManyEntities expects an array of ids");return bD(r).map(u=>e({ids:u,languages:n,props:a,format:i,redirects:s}))}}function bD(t){const e=[];for(;t.length>0;){const r=t.slice(0,50);t=t.slice(50),e.push(r)}return e}function O6(t){return function(e){const r=e6(e);return`${t}?format=json&query=${r}`}}const wD="FILTER NOT EXISTS { ?subject rdf:type wikibase:Property . } ",kD=t=>{const e=O6(t);return function(r){let{properties:n}=r;const{values:a,limit:i,caseInsensitive:s,keepProperties:u}=r,c=s?CD:SD,d=u?"":wD;n=Pa(n),n.forEach(m=>dD(m));let f=`SELECT DISTINCT ?subject WHERE { ${xD(a,c,n,d)} }`;return i&&(f+=` LIMIT ${i}`),e(f)}},xD=(t,e,r,n)=>(r=r.map(_D).join("|"),t instanceof Array?"{ "+t.map(R6).map(a=>e(r,a,n)).join("} UNION {")+" }":e(r,R6(t),n)),R6=t=>(xp(t)?t=`wd:${t}`:typeof t=="string"&&(t=`'${t}'`),t),SD=(t,e,r)=>`?subject ${t} ${e} . - ${r}`,CD=(t,e,r)=>`?subject ${t} ?value . - FILTER (lcase(?value) = ${e.toLowerCase()}) - ${r}`,_D=t=>"wdt:"+t;function ED(t){return function({ids:e,format:r,limit:n,start:a,end:i,prop:s,user:u,excludeuser:c,tag:d}){io(arguments),e=Pa(e),e.forEach(v=>hD(v));const f=e.length===1,m={action:"query",prop:"revisions"};return m.titles=e.join("|"),m.format=r||"json",f&&(m.rvlimit=n||"max"),f&&a&&(m.rvstart=T6(a)),f&&i&&(m.rvend=T6(i)),s?m.rvprop=Pa(s).join("|"):m.rvprop="ids|flags|timestamp|user|userid|size|slotsize|sha1|slotsha1|contentmodel|comment|parsedcomment|content|tags|roles|oresscores",m.rvslots="*",u&&(m.rvuser=u),c&&(m.rvexcludeuser=c),d&&(m.rvtag=d),t(m)}}const T6=t=>typeof t=="number"&&tfunction({search:e,language:r="en",uselang:n,limit:a="20",continue:i="0",format:s="json",type:u="item"}){if(io(arguments),n=n||r,!(e&&e.length>0))throw new Error("search can't be empty");if(!vc(MD,u))throw new Error(`invalid type: ${u}`);return t({action:"wbsearchentities",search:e,language:r,limit:a,continue:i,format:s,uselang:n,type:u})},ND=typeof location<"u"&&typeof document<"u";function OD(t){return e=>{ND&&(e=Object.assign(Object.assign({},e),{origin:"*"}));const r=Object.entries(e).filter(([,a])=>a!=null).map(([a,i])=>[a,String(i)]),n=new URLSearchParams(r).toString();return t+"?"+n}}const RD=`Tip: if you just want to access functions that don't need an instance or a sparqlEndpoint, -those are also exposed directly on the module object. Exemple: -import { isItemId, simplify } from 'wikibase-sdk'`,TD=Object.assign(Object.assign(Object.assign(Object.assign({simplify:lD,parse:tD},yA),QA),zA),PA);function LD(t){if(!J8(t))throw new Error("invalid config");const{instance:e,sparqlEndpoint:r}=t;let{wgScriptPath:n="w"}=t;if(n=n.replace(/^\//,""),!(e||r))throw new Error(`one of instance or sparqlEndpoint should be set at initialization. -${RD}`);let a,i,s;if(e){L6("instance",e),i=e.replace(/\/$/,"").replace(`/${n}/api.php`,""),s=`${i}/${n}/api.php`;const c=OD(s);a={searchEntities:ID(c),cirrusSearchPages:cD(c),getEntities:N6(c),getManyEntities:yD(c),getRevisions:ED(c),getEntityRevision:vD(e,n),getEntitiesFromSitelinks:gD(c)}}else a={searchEntities:Jo("searchEntities"),cirrusSearchPages:Jo("cirrusSearchPages"),getEntities:Jo("getEntities"),getManyEntities:Jo("getManyEntities"),getRevisions:Jo("getRevisions"),getEntityRevision:Jo("getEntityRevision"),getEntitiesFromSitelinks:Jo("getEntitiesFromSitelinks")};let u;return r?(L6("sparqlEndpoint",r),u={sparqlQuery:O6(r),getReverseClaims:kD(r)}):u={sparqlQuery:j6("sparqlQuery"),getReverseClaims:j6("getReverseClaims")},Object.assign(Object.assign(Object.assign({instance:{root:i,apiEndpoint:s}},TD),a),u)}const L6=(t,e)=>{if(!(typeof e=="string"&&e.startsWith("http")))throw new Error(`invalid ${t}: ${e}`)},F6=t=>e=>()=>{throw new Error(`${e} requires ${t} to be set at initialization`)},j6=F6("a sparqlEndpoint"),Jo=F6("an instance"),FD={sparqlQuery:()=>{const t=LD({instance:"https://www.wikidata.org",sparqlEndpoint:"https://query.wikidata.org/sparql"}),e="wd:Q3305213, wd:Q1964917, wd:Q18761202, wd:Q93184, wd:Q11060274, wd:Q860861, wd:Q125191",r="wd:Q31, wd:Q213, wd:Q35, wd:Q142, wd:Q36, wd:Q39, wd:Q32, wd:Q40, wd:Q55, wd:Q183",n=` - SELECT ?item ?itemLabel ?artworkLabel ?countryLabel ?genreLabel ?year ?locationLabel ?creatorLabel ?materialLabel ?depictsLabel ?collectionLabel ?copyrightLabel ?iiifManifest - WITH { - SELECT ?item (SAMPLE(?artwork) as ?artwork) (SAMPLE(?country) as ?country) (SAMPLE(?genre) as ?genre) (SAMPLE(YEAR(?inception)) as ?year) (SAMPLE(?location) as ?location) (SAMPLE(?creator) as ?creator) (SAMPLE(?material) as ?material) (SAMPLE(?depicts) as ?depicts) (SAMPLE(?collection) as ?collection) (SAMPLE(?copyright) as ?copyright) (SAMPLE(?iiifManifest) as ?iiifManifest) - WHERE { - ?item (wdt:P31/(wdt:P279*)) ?artwork; - wdt:P195 ?collection. - # Filter countries that share a border with Germany including Germany - OPTIONAL { - ?item wdt:P495 ?countryOfOrigin. - FILTER(?countryOfOrigin IN ( ${r} ) ) - } - OPTIONAL { - ?collection wdt:P17 ?country. - FILTER(?country IN ( ${r} ) ) - } - BIND(COALESCE(?countryOfOrigin, ?country) AS ?country) - FILTER(BOUND(?country)) - ?item wdt:P6108 ?iiifManifest. # Has IIIF manifest - OPTIONAL { ?item wdt:P136 ?genre. } - OPTIONAL { ?item wdt:P571 ?inception. } - OPTIONAL { ?item wdt:P276 ?location. } - OPTIONAL { ?item wdt:P170 ?creator. } - OPTIONAL { ?item wdt:P186 ?material. } - OPTIONAL { ?item wdt:P180 ?depicts. } - OPTIONAL { ?item wdt:P6216 ?copyright. } - FILTER(?artwork IN ( ${e} ) ) - } - GROUP BY ?item - LIMIT 10 - } AS %result - WHERE { - INCLUDE %result - SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } - } ORDER BY ?itemLabel - `;return t.sparqlQuery(n)}},jD=()=>{const[t,e]=I.useState([]),[r,n]=I.useState(!0),[a,i]=I.useState(null);return I.useEffect(()=>{(async()=>{try{const s=await fetch(FD.sparqlQuery());if(!s.ok)throw new Error(`Error: ${s.status} - ${s.statusText}`);const u=await s.json();e(u.results.bindings)}catch(s){i(s.message)}finally{n(!1)}})()},[]),{data:t,loading:r,error:a}},A6=({onClick:t,materialIcon:e})=>J.jsx(Wr,{className:"p-4 text-xl text-black",onClick:t,rounded:!0,inline:!0,children:J.jsx(xn,{material:e})});function AD(){const{t}=Bu(),[e,r]=I.useState(0),{addToImageList:n,imageList:a}=ui(),{data:i}=jD(),s=ui(E=>E.likeImage),u=I.useRef(e),c=I.useRef(null),d=I.useCallback(async E=>{if(!E)return;const x=async g=>{try{return await L4.fetchIIIFIdentifier(g)}catch(C){return console.error("Error:",C),null}},k=(await Promise.all(E.map(async g=>{var C,N,O,D,R;try{const A=await x(g.iiifManifest.value);return A!==null?{id:g.item.value,name:g.itemLabel.value||"",year:((C=g.year)==null?void 0:C.value)||"",country:(N=g.countryLabel)==null?void 0:N.value,location:((O=g?.locationLabel)==null?void 0:O.value)||"",creator:((D=g.creatorLabel)==null?void 0:D.value)||"",url:(R=g.iiifManifest)==null?void 0:R.value,identifier:A,image:`${A}/full/400,/0/default.jpg`,thumbnail:`${A}/full/100,100/0/default.jpg`}:null}catch(A){return console.error("Error processing image:",A),null}}))).filter(g=>g!==null);n(k)},[]);I.useEffect(()=>{i.length>0&&d(i)},[i,d]);const f=E=>{r(E),u.current=E},m=e>=0,v=(E,x)=>{E==="right"&&s(S),f(x+1)},y=E=>{var x;u.current>=E&&((x=c.current)==null||x.restoreCard())},b=async E=>{var x;m&&ev(E,e),onCardLeftScreen:()=>y(e),preventSwipe:["up","down"],children:J.jsx("img",{alt:S.name,src:S.image})},S.id),J.jsxs("div",{className:"flex justify-between",children:[J.jsx(A6,{onClick:()=>b("left"),materialIcon:J.jsx(Y_,{className:"w-6 h-6"})}),J.jsx(A6,{onClick:()=>b("right"),materialIcon:J.jsx(X_,{className:"w-6 h-6"})})]})]})})}),J.jsxs("div",{className:"mb-8 p-4 bg-white rounded h-1/3 opacity-90 max-w-lg w-2/3 text-center mx-auto shadow-md shadow-[#BC13FE]/90",children:[J.jsx("h2",{className:"text-2xl font-bold mb-4 text-black",children:S?.name}),J.jsxs("p",{className:"text-gray-600",children:[t("selectionYear")," ",S?.year!==""?S?.year:t("selectionUnknown")]}),J.jsxs("p",{className:"text-gray-600",children:[t("selectionCreator")," ",S?.creator!==""?S?.creator:t("selectionUnknown")]}),J.jsxs("p",{className:"text-gray-600",children:[t("selectionLocation")," ",S?.location!==""?S?.location:t("selectionUnknown")]})]})]})}const DD="/collage.webp",zD="/logo_animated.svg",BD=()=>J.jsx("img",{src:zD,alt:"Logo GLAMorous Europe",className:"w-96 m-auto"}),UD=()=>J.jsx("img",{src:DD,alt:"Collage GLAMorous Europe",className:"w-96 m-auto",decoding:"async"});function $D(){const{t}=Bu(),{imageLikeList:e,resetState:r}=ui(),[n,a]=I.useState(!1),i=()=>{e.length>0?a(!0):window.location.href="/selection"},s=()=>{a(!1)},u=()=>{a(!1),r()};return J.jsxs(ti,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[J.jsx(BD,{}),J.jsx("h1",{className:"text-3xl",children:t("startTitle")}),J.jsx("h2",{className:"text-xl",children:t("startSubtitle")}),J.jsx(UD,{}),J.jsx("p",{className:"text-xl",children:t("startText")}),J.jsx(Wr,{large:!0,className:"text-4xl w-1/2 mx-auto h-16",rounded:!0,inline:!0,onClick:i,children:t("startButtonText")}),n&&J.jsx(I5,{opened:n,onBackdropClick:()=>a(!1),children:J.jsxs(G1,{children:[J.jsx(P5,{title:t("discardModalTitle"),right:J.jsx(Dh,{to:"/",onClick:s,children:t("discardModalCancel")})}),J.jsxs(ti,{className:"space-y-4",children:[J.jsx("p",{children:t("discardModalMessage")}),J.jsx(Wr,{className:"p-4 rounded-full text-xl bg-red-500 text-white",children:J.jsx(Dh,{to:"/selection",onClick:u,children:t("discardModalConfirm")})}),J.jsx(Wr,{className:"p-4 rounded-full text-xl bg-red-500 text-white",onClick:s,children:t("discardModalNotConfirm")})]})]})})]})}function VD(){return J.jsx(y_,{children:J.jsxs(tl,{path:"/",element:J.jsx(SF,{}),children:[J.jsx(tl,{index:!0,element:J.jsx($D,{})}),J.jsx(tl,{path:"selection",element:J.jsx(AD,{})}),J.jsx(tl,{path:"collection",element:J.jsx(xF,{})}),J.jsx(tl,{path:"creation",element:J.jsx(KL,{})})]})})}const GD={artwork:"Meine Leinwand",artworkEmpty:"F\xFCge deine pers\xF6nlichen Favoriten hinzu",artworkTitle:"Gestalte mit einzelnen Bildelementen dein ganz eigenes europ\xE4isches Kunstwerk und teile es mit anderen.",chooseLanguage:"Sprache w\xE4hlen:",collection:"Meine Sammlung",collectionAddText:"Ausschnitt meiner Leinwand hinzuf\xFCgen",collectionClose:"Schlie\xDFen",collectionLoading:"Lade...",collectionTitle:"Hier ist deine Auswahl der Favoriten. W\xE4hle einen Auschnitt aus den Bildern f\xFCr deine Leinwand.",discardModalCancel:"Abbrechen",discardModalConfirm:"Ja",discardModalMessage:"M\xF6chtest du die bestehende Auswahl verwerfen?",discardModalNotConfirm:"Nein",discardModalTitle:"Meine Auswahl bereits vorhanden",selection:"Meine Auswahl",selectionCreator:"Urheber:in:",selectionLocation:"Ort:",selectionTitle:"W\xE4hle deine pers\xF6nlichen Favoriten aus.",selectionUnknown:"Unbekannt",selectionYear:"Jahr:",start:"Start",startButtonText:"Los geht's!",startSubtitle:"Entdecke hier die sch\xF6nsten Sammlungsobjekte aus Museen, Galerien, Bibliotheken und Archiven verschiedener L\xE4nder Europas.",startText:"Lass dich von der k\xFCnstlerischen Vielfalt Europas inspirieren!",startTitle:"Herzlich willkommen in der schillernden Welt von GLAMorous Europe!"},WD={translation:GD},qD={artwork:"My Artwork",artworkEmpty:"Add your personal favourites.",artworkTitle:"Use individual picture elements to create your very own European work of art and share it with others.",chooseLanguage:"Choose Language:",collection:"My Collection",collectionAddText:"Add to my artwork",collectionClose:"Close",collectionLoading:"Loading...",collectionTitle:"Open the door to new paintings, sculptures and photographs that perfectly match your taste.",discardModalCancel:"Close",discardModalConfirm:"Yes",discardModalMessage:"Do you want to discard the existing selection?",discardModalNotConfirm:"No",discardModalTitle:"Current selection",selection:"My Selection",selectionCreator:"Creator:",selectionLocation:"Location:",selectionTitle:"Choose your personal favourites.",selectionUnknown:"Unknown",selectionYear:"Year:",start:"start",startButtonText:"Let's go!",startSubtitle:"Discover the most beautiful collection objects from museums, galleries, libraries and archives from various European countries.",startText:"Be inspired by the artistic diversity of Europe!",startTitle:"Welcome to the glittering world of GLAMorous Europe!"},HD={translation:qD};Mr.init({interpolation:{escapeValue:!1},lng:"auto",fallbackLng:"de",resources:{de:{...WD},en:{...HD}}}),qx(document.getElementById("root")).render(J.jsx(j.StrictMode,{children:J.jsx(EC,{i18n:Mr,children:J.jsx(E_,{children:J.jsx(VD,{})})})}));export{C2 as $,Oh as a,Ga as b,ki as c,dC as d,j as e,yS as g,I as r};function Pp(t){return Pp.viteFileDeps||(Pp.viteFileDeps=[]),t.map(e=>Pp.viteFileDeps[e])} diff --git a/index-FV6IdYrE.css b/index-FV6IdYrE.css new file mode 100644 index 0000000..7e09e7a --- /dev/null +++ b/index-FV6IdYrE.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--k-device-pixel-ratio:1;--k-hairline-color:#0003;--k-rtl-reverse:1;--k-color-ios-primary:188 19 254;--k-color-ios-primary-tint:200 60 254;--k-color-ios-primary-shade:167 1 231;--k-color-md-light-primary:152 0 208;--k-color-md-light-on-primary:255 255 255;--k-color-md-light-primary-container:248 216 255;--k-color-md-light-on-primary-container:50 0 71;--k-color-md-light-secondary:105 89 109;--k-color-md-light-on-secondary:255 255 255;--k-color-md-light-secondary-container:241 220 244;--k-color-md-light-on-secondary-container:35 23 40;--k-color-md-light-surface:255 251 255;--k-color-md-light-on-surface:30 27 30;--k-color-md-light-surface-variant:235 223 233;--k-color-md-light-on-surface-variant:76 68 77;--k-color-md-light-outline:125 116 125;--k-color-md-light-outline-variant:206 195 205;--k-color-md-light-surface-1:250 238 253;--k-color-md-light-surface-2:247 231 251;--k-color-md-light-surface-3:244 223 250;--k-color-md-light-surface-4:243 221 249;--k-color-md-light-surface-5:241 216 248;--k-color-md-dark-primary:235 178 255;--k-color-md-dark-on-primary:82 0 114;--k-color-md-dark-primary-container:116 0 159;--k-color-md-dark-on-primary-container:248 216 255;--k-color-md-dark-secondary:212 192 215;--k-color-md-dark-on-secondary:57 44 61;--k-color-md-dark-secondary-container:80 66 85;--k-color-md-dark-on-secondary-container:241 220 244;--k-color-md-dark-surface:30 27 30;--k-color-md-dark-on-surface:232 224 229;--k-color-md-dark-surface-variant:76 68 77;--k-color-md-dark-on-surface-variant:206 195 205;--k-color-md-dark-outline:151 142 151;--k-color-md-dark-outline-variant:76 68 77;--k-color-md-dark-surface-1:40 35 41;--k-color-md-dark-surface-2:46 39 48;--k-color-md-dark-surface-3:53 44 55;--k-color-md-dark-surface-4:55 45 57;--k-color-md-dark-surface-5:59 48 62;--k-color-primary:188 19 254;--k-color-brand-secondary:105 192 176;--k-color-brand-tertiary:237 236 234;--k-color-brand-background:43 40 41;--k-color-brand-text:255 255 255}[dir=rtl]{--k-rtl-reverse:-1}.dark{--k-hairline-color:#ffffff26;color:#fff;background-color:#000}@media (-webkit-min-device-pixel-ratio:1.25),(min-resolution:1.25dppx){:root{--k-device-pixel-ratio:1.25}}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){:root{--k-device-pixel-ratio:1.5}}@media (-webkit-min-device-pixel-ratio:1.75),(min-resolution:1.75dppx){:root{--k-device-pixel-ratio:1.75}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){:root{--k-device-pixel-ratio:2}}@media (-webkit-min-device-pixel-ratio:2.25),(min-resolution:2.25dppx){:root{--k-device-pixel-ratio:2.25}}@media (-webkit-min-device-pixel-ratio:2.5),(min-resolution:2.5dppx){:root{--k-device-pixel-ratio:2.5}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:3dppx){:root{--k-device-pixel-ratio:3}}*{-webkit-tap-highlight-color:#0000;-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.k-ios,.ios{font-family:-apple-system,SF Pro Text,SF UI Text,system-ui,Helvetica Neue,Helvetica,Arial,sans-serif}.k-material,.md{font-family:Roboto,system-ui,Noto,Helvetica,Arial,sans-serif}:root{--k-touch-ripple-opacity:.15;--k-touch-ripple-black:rgba(0,0,0,var(--k-touch-ripple-opacity));--k-touch-ripple-white:rgba(255,255,255,var(--k-touch-ripple-opacity));--k-touch-ripple-color:var(--k-touch-ripple-black)}.k-touch-ripple-wave{pointer-events:none;z-index:-1;background-color:var(--k-touch-ripple-color);border-radius:50%;margin:0;padding:0;font-size:0;animation:.2s forwards k-touch-ripple-in;top:0;left:0;transform:matrix(0,0,0,0,0,0);display:block!important;position:absolute!important}.k-touch-ripple-wave.k-touch-ripple-wave-out{transform:var(--k-ripple-transform);animation:.3s forwards k-touch-ripple-out}@keyframes k-touch-ripple-in{0%{transform:matrix(0,0,0,0,0,0)}to{transform:var(--k-ripple-transform)}}@keyframes k-touch-ripple-out{0%{opacity:1}to{opacity:0}}:root{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}@supports (left:env(safe-area-inset-left)){.safe-areas{--k-safe-area-left:env(safe-area-inset-left);--k-safe-area-right:env(safe-area-inset-right);--k-safe-area-top:env(safe-area-inset-top);--k-safe-area-bottom:env(safe-area-inset-bottom)}}*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.k-ios-preloader>span{animation:1s steps(8,end) infinite k-ios-preloader-spin}.k-material-preloader>span{animation:1.4s linear infinite k-material-preloader-rotate}.k-material-preloader circle{stroke-dasharray:100;stroke-dashoffset:80px;stroke-width:4px;transform-origin:18px 18px;animation:5.6s ease-in-out infinite k-material-preloader-circle-rotate;transform:rotate(-90deg)}@keyframes k-ios-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes k-material-preloader-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes k-material-preloader-circle-rotate{0%{stroke-dashoffset:100px;transform:rotate(-90deg)}12.5%{stroke-dashoffset:25px;transform:rotate(-90deg)}25%{stroke-dashoffset:100px;transform:rotate(180deg)}25.1%{stroke-dashoffset:100px;transform:rotate(-180deg)}37.5%{stroke-dashoffset:25px;transform:rotate(-180deg)}50%{stroke-dashoffset:100px;transform:rotate(90deg)}50.1%{stroke-dashoffset:100px;transform:rotate(90deg)}62.5%{stroke-dashoffset:25px;transform:rotate(90deg)}75%{stroke-dashoffset:100px;transform:rotate(360deg)}75.1%{stroke-dashoffset:100px;transform:rotate(0)}87.5%{stroke-dashoffset:25px;transform:rotate(0)}to{stroke-dashoffset:100px;transform:rotate(270deg)}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-1\/2{inset:50%}.inset-y-0{top:0;bottom:0}.-end-1{inset-inline-end:-.25rem}.-end-1\.5{inset-inline-end:-.375rem}.-left-4{left:-1rem}.-left-4\.75{left:-1.1875rem}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-2{top:-.5rem}.-top-4{top:-1rem}.-top-4\.75{top:-1.1875rem}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.bottom-full{bottom:100%}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-4\.75{left:1.1875rem}.left-full{left:100%}.right-full{right:100%}.start-0{inset-inline-start:0}.start-0\.5{inset-inline-start:.125rem}.start-2{inset-inline-start:.5rem}.start-4{inset-inline-start:1rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-4\.75{top:1.1875rem}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-0{margin:0}.-m-0\.5{margin:-.125rem}.-m-1{margin:-.25rem}.m-0{margin:0}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.\!ms-0{margin-inline-start:0!important}.-mb-2{margin-bottom:-.5rem}.-mb-2\.5{margin-bottom:-.625rem}.-mb-6{margin-bottom:-1.5rem}.-me-2{margin-inline-end:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-ms-2{margin-inline-start:-.5rem}.-ms-3{margin-inline-start:-.75rem}.-mt-2{margin-top:-.5rem}.-mt-2\.5{margin-top:-.625rem}.-mt-4{margin-top:-1rem}.-mt-6{margin-top:-1.5rem}.-mt-px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.me-1{margin-inline-end:.25rem}.me-1\.5{margin-inline-end:.375rem}.me-2{margin-inline-end:.5rem}.me-3{margin-inline-end:.75rem}.me-4{margin-inline-end:1rem}.ml-10{margin-left:2.5rem}.ml-4{margin-left:1rem}.mr-4{margin-right:1rem}.ms-1{margin-inline-start:.25rem}.ms-2{margin-inline-start:.5rem}.ms-3{margin-inline-start:.75rem}.ms-4{margin-inline-start:1rem}.ms-auto{margin-inline-start:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.\!h-auto{height:auto!important}.h-0{height:0}.h-0\.25{height:.0625rem}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\/3{height:33.3333%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-12\.5{height:3.125rem}.h-13{height:3.25rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-1em{height:1em}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-2\/3{height:66.6667%}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-4\.5{height:1.125rem}.h-5{height:1.25rem}.h-5\.5{height:1.375rem}.h-6{height:1.5rem}.h-6\.5{height:1.625rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[1em\]{height:1em}.h-\[5\.5rem\]{height:5.5rem}.h-\[calc\(100\%_-_128px\)\]{height:calc(100% - 128px)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-12{max-height:3rem}.max-h-full{max-height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.min-h-\[3\.5rem\]{min-height:3.5rem}.min-h-\[56px\]{min-height:56px}.min-h-screen{min-height:100vh}.w-0{width:0}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-13{width:3.25rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-1em{width:1em}.w-2\/3{width:66.6667%}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-4\.5{width:1.125rem}.w-5{width:1.25rem}.w-5\.5{width:1.375rem}.w-6{width:1.5rem}.w-6\.5{width:1.625rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-96{width:24rem}.w-\[16\.875rem\]{width:16.875rem}.w-\[19\.5rem\]{width:19.5rem}.w-\[calc\(100\%\+32px\)\]{width:calc(100% + 32px)}.w-full{width:100%}.w-screen{width:100vw}.min-w-12{min-width:3rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.max-w-\[66\%\]{max-width:66%}.max-w-\[70\%\]{max-width:70%}.max-w-\[90\%\]{max-width:90%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:0 100%}.origin-bottom-right{transform-origin:100% 100%}.origin-left{transform-origin:0}.origin-right{transform-origin:100%}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:-.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-3{--tw-translate-y:.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-6{--tw-translate-y:1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-8{--tw-translate-y:2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-133{--tw-scale-x:1.33333;--tw-scale-y:1.33333;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-\[0\.666\]{--tw-scale-x:.666;--tw-scale-y:.666;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-\[0\.85\]{--tw-scale-x:.85;--tw-scale-y:.85;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-x-90{--tw-scale-x:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-x-\[0\.5\]{--tw-scale-x:.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-y-75{--tw-scale-y:.75;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-y-\[2\]{--tw-scale-y:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0)rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-pointer{cursor:pointer}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x)var(--tw-pan-y)var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;appearance:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0px*var(--tw-space-x-reverse));margin-left:calc(0px*calc(1 - var(--tw-space-x-reverse)))}.space-x-0\.75>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.1875rem*var(--tw-space-x-reverse));margin-left:calc(.1875rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem*var(--tw-space-x-reverse));margin-left:calc(.75rem*calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(2px*var(--tw-divide-x-reverse));border-left-width:calc(2px*calc(1 - var(--tw-divide-x-reverse)))}.divide-black>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(0 0 0/var(--tw-divide-opacity))}.divide-md-light-outline>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-md-light-outline)/var(--tw-divide-opacity))}.divide-primary>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-primary)/var(--tw-divide-opacity))}.divide-opacity-10>:not([hidden])~:not([hidden]){--tw-divide-opacity:.1}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\!rounded{border-radius:.25rem!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[1\.75rem\]{border-radius:1.75rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-e-full{border-start-end-radius:9999px;border-end-end-radius:9999px}.rounded-e-lg{border-start-end-radius:.5rem;border-end-end-radius:.5rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-r-2xl{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-s-full{border-start-start-radius:9999px;border-end-start-radius:9999px}.rounded-s-lg{border-start-start-radius:.5rem;border-end-start-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\[\#c8c8cd\]{--tw-border-opacity:1;border-color:rgb(200 200 205/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-md-dark-outline{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-border-opacity))}.border-md-light-on-surface{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-on-surface)/var(--tw-border-opacity))}.border-md-light-outline{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-outline)/var(--tw-border-opacity))}.border-md-light-primary{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-primary)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--k-color-primary)/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-opacity-10{--tw-border-opacity:.1}.border-opacity-20{--tw-border-opacity:.2}.border-opacity-30{--tw-border-opacity:.3}.bg-\[\#e5e5ea\]{--tw-bg-opacity:1;background-color:rgb(229 229 234/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/10{background-color:#0000001a}.bg-current{background-color:currentColor}.bg-ios-light-surface{--tw-bg-opacity:1;background-color:rgb(239 239 244/var(--tw-bg-opacity))}.bg-ios-light-surface-1{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-ios-light-surface-2{--tw-bg-opacity:1;background-color:rgb(247 247 248/var(--tw-bg-opacity))}.bg-ios-light-surface-3{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-ios-light-surface-variant{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-md-light-on-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-on-primary)/var(--tw-bg-opacity))}.bg-md-light-outline{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-outline)/var(--tw-bg-opacity))}.bg-md-light-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary)/var(--tw-bg-opacity))}.bg-md-light-primary-container{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary-container)/var(--tw-bg-opacity))}.bg-md-light-secondary-container{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-secondary-container)/var(--tw-bg-opacity))}.bg-md-light-surface{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface)/var(--tw-bg-opacity))}.bg-md-light-surface-1{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-1)/var(--tw-bg-opacity))}.bg-md-light-surface-2{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-2)/var(--tw-bg-opacity))}.bg-md-light-surface-3{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-3)/var(--tw-bg-opacity))}.bg-md-light-surface-5{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-5)/var(--tw-bg-opacity))}.bg-md-light-surface-variant{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-variant)/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:#0000}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-10{--tw-bg-opacity:.1}.bg-opacity-15{--tw-bg-opacity:.15}.bg-opacity-20{--tw-bg-opacity:.2}.bg-opacity-30{--tw-bg-opacity:.3}.bg-opacity-5{--tw-bg-opacity:.05}.bg-opacity-50{--tw-bg-opacity:.5}.bg-cover{background-size:cover}.fill-black{fill:#000}.fill-primary{fill:rgb(var(--k-color-primary)/1)}.fill-stone-400{fill:#a8a29e}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.pl-7{padding-left:1.75rem}.pr-7{padding-right:1.75rem}.ps-1{padding-inline-start:.25rem}.ps-12{padding-inline-start:3rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-2xs{font-size:.625rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.875rem\]{font-size:.875rem}.text-\[1\.125rem\]{font-size:1.125rem}.text-\[1\.375rem\]{font-size:1.375rem}.text-\[1\.5rem\]{font-size:1.5rem}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[1rem\]{font-size:1rem}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[28px\]{font-size:28px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-icon-ios{font-size:28px}.text-icon-material{font-size:24px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-black\/45{color:#00000073}.text-current{color:currentColor}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-md-light-on-primary{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-primary)/var(--tw-text-opacity))}.text-md-light-on-primary-container{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-primary-container)/var(--tw-text-opacity))}.text-md-light-on-secondary-container{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-secondary-container)/var(--tw-text-opacity))}.text-md-light-on-surface{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-surface)/var(--tw-text-opacity))}.text-md-light-on-surface-variant{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-text-opacity))}.text-md-light-primary{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-primary)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--k-color-primary)/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-opacity-30{--tw-text-opacity:.3}.text-opacity-40{--tw-text-opacity:.4}.text-opacity-45{--tw-text-opacity:.45}.text-opacity-55{--tw-text-opacity:.55}.text-opacity-75{--tw-text-opacity:.75}.text-opacity-90{--tw-text-opacity:.9}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(0 0 0/var(--tw-placeholder-opacity))}.placeholder-md-light-on-surface-variant::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-placeholder-opacity))}.placeholder-transparent::placeholder{color:#0000}.placeholder-opacity-30::placeholder{--tw-placeholder-opacity:.3}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-35{opacity:.35}.opacity-45{opacity:.45}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-ios-toggle{--tw-shadow:0 2px 4px #0000004d;--tw-shadow-colored:0 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[\#BC13FE\]\/90{--tw-shadow-color:#bc13fee6;--tw-shadow:var(--tw-shadow-colored)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.outline-offset-0{outline-offset:0px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.filter{filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform-opacity{transition-property:transform,opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.duration-500{transition-duration:.5s}.duration-\[600ms\]{transition-duration:.6s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-material-in{transition-timing-function:cubic-bezier(0,.8,.34,1)}.ease-material-in-popup{transition-timing-function:cubic-bezier(0,1,.2,1)}.hairline-t:before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:top;transform:scaleY(calc(1/var(--k-device-pixel-ratio,1)));width:100%;height:1px;position:absolute;top:0;left:0}.hairline-t-none:before,.hairline-t-none :not(.hairline-l):before{display:none}.hairline-t-scale:before{transform:scaleY(2)}.hairline-l:before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:0;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;left:0}.hairline-l-none:before,.hairline-l-none :not(.hairline-l):before{display:none}.hairline-l-scale:before{transform:scaleX(2)}.hairline-b:after{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:bottom;transform:scaleY(calc(1/var(--k-device-pixel-ratio,1)));width:100%;height:1px;position:absolute;bottom:0;left:0}.hairline-b-scale:after{transform:scaleY(2)}.hairline-b-none:after,.hairline-b-none :not(.hairline-b):after,.hairline-b-none>*>:after,.last-child-hairline-b-none>:last-child:after,.last-child-hairline-b-none>:last-child :not(.hairline-b):after,.last-child-hairline-b-none>:last-child>*>:after,.last-child-hairline-b-none>:last-child>:after,.last-child-hairline-r-none>:last-child:after,.last-child-hairline-r-none>:last-child :not(.hairline-b):after,.last-child-hairline-r-none>:last-child>*>:after,.last-child-hairline-r-none>:last-child>:after,.first-child-hairline-r-none>:first-child:after,.first-child-hairline-r-none>:first-child :not(.hairline-b):after,.first-child-hairline-r-none>:first-child>*>:after,.first-child-hairline-r-none>:first-child>:after{display:none}.hairline-r:after{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:100%;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;right:0}.hairline-r-none:after,.hairline-r-none :not(.hairline-r):after{display:none}.hairline-r-scale:after{transform:scaleX(2)}.touch-ripple-current{--k-touch-ripple-color:currentColor}.touch-ripple-black{--k-touch-ripple-color:var(--k-touch-ripple-black)}.touch-ripple-white{--k-touch-ripple-color:var(--k-touch-ripple-white)}.touch-ripple-primary{--k-touch-ripple-color:rgb(var(--k-color-primary)/var(--k-touch-ripple-opacity))}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.no-safe-areas{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}.no-safe-areas-top{--k-safe-area-top:0px}.no-safe-areas-left{--k-safe-area-left:0px}.no-safe-areas-right{--k-safe-area-right:0px}.no-safe-areas-bottom{--k-safe-area-bottom:0px}.pt-safe{padding-top:var(--k-safe-area-top)}.top-2-safe{top:calc(var(--k-safe-area-top) + .5rem)}.top-11-safe{top:calc(var(--k-safe-area-top) + 2.75rem)}.top-16-safe{top:calc(var(--k-safe-area-top) + 4rem)}.pr-safe{padding-right:var(--k-safe-area-right)}.pr-2-safe{padding-right:calc(var(--k-safe-area-right) + .5rem)}.mr-2-safe{margin-right:calc(var(--k-safe-area-right) + .5rem)}.pr-4-safe{padding-right:calc(var(--k-safe-area-right) + 1rem)}.mr-4-safe{margin-right:calc(var(--k-safe-area-right) + 1rem)}.pr-6-safe{padding-right:calc(var(--k-safe-area-right) + 1.5rem)}.pr-8-safe{padding-right:calc(var(--k-safe-area-right) + 2rem)}.pb-safe{padding-bottom:var(--k-safe-area-bottom)}.pb-2-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .5rem)}.bottom-2-safe{bottom:calc(var(--k-safe-area-bottom) + .5rem)}.pb-3-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .75rem)}.pb-3\.5-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .875rem)}.pl-safe{padding-left:var(--k-safe-area-left)}.pl-2-safe{padding-left:calc(var(--k-safe-area-left) + .5rem)}.ml-2-safe{margin-left:calc(var(--k-safe-area-left) + .5rem)}.pl-4-safe{padding-left:calc(var(--k-safe-area-left) + 1rem)}.ml-4-safe{margin-left:calc(var(--k-safe-area-left) + 1rem)}.pl-6-safe{padding-left:calc(var(--k-safe-area-left) + 1.5rem)}.pl-8-safe{padding-left:calc(var(--k-safe-area-left) + 2rem)}.ps-4-safe{padding-inline-start:calc(var(--k-safe-area-left) + 1rem)}.pe-4-safe{padding-inline-end:calc(var(--k-safe-area-right) + 1rem)}@supports ((-webkit-backdrop-filter:blur(20px))) or ((-webkit-backdrop-filter:blur(20px)) or (backdrop-filter:blur(20px))){.translucent{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);--tw-bg-opacity:.8!important}}.touch-pan-y{touch-action:pan-y}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{opacity:0;display:none}@font-face{font-family:Neucha;src:url(./fonts/Neucha.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:AverageSans-Regular;src:url(./fonts/AverageSans-Regular.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}body,.k-material{font-family:AverageSans-Regular,sans-serif}a>span>.text-xs,button{text-transform:uppercase;font-family:Neucha,sans-serif;font-size:1.1rem;line-height:1.5}.tabbar-inner{height:8rem}.before\:me-1:before{content:var(--tw-content);margin-inline-end:.25rem}.before\:inline-block:before{content:var(--tw-content);display:inline-block}.before\:h-0:before{content:var(--tw-content);height:0}.before\:h-0\.75:before{content:var(--tw-content);height:.1875rem}.before\:w-0:before{content:var(--tw-content);width:0}.before\:w-0\.75:before{content:var(--tw-content);width:.1875rem}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-md-light-on-surface-variant:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-bg-opacity))}.before\:align-middle:before{content:var(--tw-content);vertical-align:middle}.first\:mx-2:first-child{margin-left:.5rem;margin-right:.5rem}.first\:mx-4:first-child{margin-left:1rem;margin-right:1rem}.first\:mt-0:first-child{margin-top:0}.first\:mt-2:first-child{margin-top:.5rem}.first\:rounded-s:first-child{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.first\:rounded-t-xl:first-child{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.first\:rounded-bl-xl:first-child{border-bottom-left-radius:.75rem}.first\:border-r:first-child{border-right-width:1px}.first\:border-r-0:first-child{border-right-width:0}.first\:px-6:first-child{padding-left:1.5rem;padding-right:1.5rem}.last\:rounded-b-xl:last-child{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.last\:rounded-e:last-child{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.last\:rounded-br-xl:last-child{border-bottom-right-radius:.75rem}.last\:border-l:last-child{border-left-width:1px}.last\:hairline-transparent:last-child{--k-hairline-color:transparent}.hover\:bg-black\/5:hover{background-color:#0000000d}.hover\:bg-md-light-secondary-container:hover{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-secondary-container)/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.active\:bg-black:active{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.active\:bg-ios-primary-shade:active{--tw-bg-opacity:1;background-color:rgb(var(--k-color-ios-primary-shade)/var(--tw-bg-opacity))}.active\:bg-neutral-200:active{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity))}.active\:bg-primary:active{--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}.active\:bg-opacity-10:active{--tw-bg-opacity:.1}.active\:bg-opacity-15:active{--tw-bg-opacity:.15}.active\:bg-opacity-25:active{--tw-bg-opacity:.25}.active\:fill-stone-200:active{fill:#e7e5e4}.active\:opacity-100:active{opacity:1}.active\:opacity-20:active{opacity:.2}.active\:opacity-30:active{opacity:.3}.active\:opacity-55:active{opacity:.55}.active\:shadow-lg:active{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.active\:duration-0:active{transition-duration:0s}.active\:hairline-transparent:active{--k-hairline-color:transparent}.group:active .group-active\:scale-\[1\.1\]{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-thumb\:relative::-webkit-slider-thumb{position:relative}.range-thumb\:-mt-1::-webkit-slider-thumb{margin-top:-.25rem}.range-thumb\:-mt-1\.5::-webkit-slider-thumb{margin-top:-.375rem}.range-thumb\:-mt-3::-webkit-slider-thumb{margin-top:-.75rem}.range-thumb\:-mt-3\.5::-webkit-slider-thumb{margin-top:-.875rem}.range-thumb\:h-3::-webkit-slider-thumb{height:.75rem}.range-thumb\:h-7::-webkit-slider-thumb{height:1.75rem}.range-thumb\:w-3::-webkit-slider-thumb{width:.75rem}.range-thumb\:w-7::-webkit-slider-thumb{width:1.75rem}.range-thumb\:transform::-webkit-slider-thumb{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-thumb\:appearance-none::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}.range-thumb\:rounded-full::-webkit-slider-thumb{border-radius:9999px}.range-thumb\:border-none::-webkit-slider-thumb{border-style:none}.range-thumb\:bg-md-light-primary::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary)/var(--tw-bg-opacity))}.range-thumb\:bg-white::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.range-thumb\:shadow-ios-toggle::-webkit-slider-thumb{--tw-shadow:0 2px 4px #0000004d;--tw-shadow-colored:0 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.range-thumb\:duration-200::-webkit-slider-thumb{transition-duration:.2s}.active\:range-thumb\:scale-150::-webkit-slider-thumb:active{--tw-scale-x:1.5;--tw-scale-y:1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-track\:h-px::-webkit-slider-runnable-track{height:1px}.range-track\:appearance-none::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none}:is(.dark .dark\:divide-md-dark-outline)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-divide-opacity))}:is(.dark .dark\:border-md-dark-on-surface){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-on-surface)/var(--tw-border-opacity))}:is(.dark .dark\:border-md-dark-outline){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-border-opacity))}:is(.dark .dark\:border-md-dark-primary){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-primary)/var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:border-opacity-10){--tw-border-opacity:.1}:is(.dark .dark\:border-opacity-15){--tw-border-opacity:.15}:is(.dark .dark\:border-opacity-20){--tw-border-opacity:.2}:is(.dark .dark\:border-opacity-30){--tw-border-opacity:.3}:is(.dark .dark\:bg-\[\#1e1e1e\]){--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#252525\]){--tw-bg-opacity:1;background-color:rgb(37 37 37/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#323234\]){--tw-bg-opacity:1;background-color:rgb(50 50 52/var(--tw-bg-opacity))}:is(.dark .dark\:bg-black),:is(.dark .dark\:bg-ios-dark-surface){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-1){--tw-bg-opacity:1;background-color:rgb(28 28 29/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-2){--tw-bg-opacity:1;background-color:rgb(18 18 18/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-3){--tw-bg-opacity:1;background-color:rgb(28 28 29/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-variant){--tw-bg-opacity:1;background-color:rgb(35 35 35/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-on-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-on-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-outline){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-outline)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-primary-container){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-secondary-container){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-secondary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-1){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-1)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-2){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-2)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-3){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-3)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-5){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-5)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-variant){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-variant)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-neutral-800){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:#0000}:is(.dark .dark\:bg-white){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}:is(.dark .dark\:bg-white\/10){background-color:#ffffff1a}:is(.dark .dark\:bg-opacity-0){--tw-bg-opacity:0}:is(.dark .dark\:bg-opacity-10){--tw-bg-opacity:.1}:is(.dark .dark\:bg-opacity-15){--tw-bg-opacity:.15}:is(.dark .dark\:bg-opacity-20){--tw-bg-opacity:.2}:is(.dark .dark\:bg-opacity-30){--tw-bg-opacity:.3}:is(.dark .dark\:fill-md-dark-primary){fill:rgb(var(--k-color-md-dark-primary)/1)}:is(.dark .dark\:fill-stone-500){fill:#78716c}:is(.dark .dark\:text-black){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-primary){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-primary)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-primary-container){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-primary-container)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-secondary-container){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-secondary-container)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-surface){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-surface)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-surface-variant){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-primary){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-primary)/var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\:text-white\/55){color:#ffffff8c}:is(.dark .dark\:text-opacity-30){--tw-text-opacity:.3}:is(.dark .dark\:text-opacity-45){--tw-text-opacity:.45}:is(.dark .dark\:text-opacity-55){--tw-text-opacity:.55}:is(.dark .dark\:text-opacity-75){--tw-text-opacity:.75}:is(.dark .dark\:text-opacity-90){--tw-text-opacity:.9}:is(.dark .dark\:placeholder-md-dark-on-surface-variant)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-md-dark-on-surface-variant)::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-white)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-white)::placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-opacity-30)::-moz-placeholder{--tw-placeholder-opacity:.3}:is(.dark .dark\:placeholder-opacity-30)::placeholder{--tw-placeholder-opacity:.3}:is(.dark .dark\:placeholder-opacity-40)::-moz-placeholder{--tw-placeholder-opacity:.4}:is(.dark .dark\:placeholder-opacity-40)::placeholder{--tw-placeholder-opacity:.4}:is(.dark .dark\:touch-ripple-white){--k-touch-ripple-color:var(--k-touch-ripple-white)}:is(.dark .dark\:touch-ripple-primary){--k-touch-ripple-color:rgb(var(--k-color-primary)/var(--k-touch-ripple-opacity))}:is(.dark .before\:dark\:bg-md-dark-on-surface-variant):before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-md-dark-secondary-container:hover){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-secondary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-white\/10:hover){background-color:#ffffff1a}:is(.dark .dark\:active\:bg-neutral-700:active){--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity))}:is(.dark .dark\:active\:bg-white:active){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}:is(.dark .dark\:active\:bg-opacity-10:active){--tw-bg-opacity:.1}:is(.dark .dark\:active\:bg-opacity-5:active){--tw-bg-opacity:.05}:is(.dark .dark\:active\:fill-stone-700:active){fill:#44403c}:is(.dark .dark\:range-thumb\:bg-md-dark-primary)::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary)/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:left-1\/2{left:50%}.sm\:start-auto{inset-inline-start:auto}.sm\:w-auto{width:auto}.sm\:max-w-lg{max-width:32rem}.sm\:-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.sm\:rounded-2xl{border-radius:1rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\:py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.sm\:bottom-4-safe{bottom:calc(var(--k-safe-area-bottom) + 1rem)}.sm\:start-4-safe{inset-inline-start:calc(var(--k-safe-area-left) + 1rem)}.sm\:end-4-safe{inset-inline-end:calc(var(--k-safe-area-right) + 1rem)}}@media (min-width:768px){.md\:end-auto{inset-inline-end:auto}.md\:start-1\/2{inset-inline-start:50%}.md\:-ms-\[256px\]{margin-inline-start:-256px}.md\:h-160{height:40rem}.md\:w-160{width:40rem}.md\:w-\[568px\]{width:568px}.md\:rounded-\[1\.75rem\]{border-radius:1.75rem}.md\:rounded-lg{border-radius:.5rem}.md\:no-safe-areas{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}}.rtl\:origin-right:where([dir=rtl],[dir=rtl] *){transform-origin:100%}.rtl\:\!-translate-x-5:where([dir=rtl],[dir=rtl] *){--tw-translate-x:-1.25rem!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))!important}.rtl\:translate-x-1\/2:where([dir=rtl],[dir=rtl] *){--tw-translate-x:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rtl\:rotate-180:where([dir=rtl],[dir=rtl] *){--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rtl\:\!space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1!important}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.rtl\:divide-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:1}.rtl\:hairline-l:where([dir=rtl],[dir=rtl] *):before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:0;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;left:0}.rtl\:first\:rounded-bl-none:first-child:where([dir=rtl],[dir=rtl] *){border-bottom-left-radius:0}.rtl\:first\:rounded-br-xl:first-child:where([dir=rtl],[dir=rtl] *){border-bottom-right-radius:.75rem}.rtl\:first\:border-l:first-child:where([dir=rtl],[dir=rtl] *){border-left-width:1px}.rtl\:first\:border-r:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:1px}.rtl\:first\:border-r-0:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:0}.rtl\:first\:border-r-2:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:2px}.rtl\:last\:rounded-bl-xl:last-child:where([dir=rtl],[dir=rtl] *){border-bottom-left-radius:.75rem}.rtl\:last\:rounded-br-none:last-child:where([dir=rtl],[dir=rtl] *){border-bottom-right-radius:0}.rtl\:last\:border-l-0:last-child:where([dir=rtl],[dir=rtl] *){border-left-width:0}.rtl\:last\:border-r-0:last-child:where([dir=rtl],[dir=rtl] *){border-right-width:0}.\[\&\:nth-child\(2\)\]\:-mt-12:nth-child(2){margin-top:-3rem} \ No newline at end of file diff --git a/index-kb1q0BGh.js b/index-S9-2WBXx.js similarity index 99% rename from index-kb1q0BGh.js rename to index-S9-2WBXx.js index 9003d16..9dd7efa 100644 --- a/index-kb1q0BGh.js +++ b/index-S9-2WBXx.js @@ -1,4 +1,4 @@ -var ns=Object.defineProperty;var ss=(ie,Z,ee)=>Z in ie?ns(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee;var Vi=(ie,Z,ee)=>(ss(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);import{r as reactExports,a as reactDomExports,$ as $2AODx$react,e as e$1,c as commonjsGlobal,g as getAugmentedNamespace,b as getDefaultExportFromCjs$1,d as $7SXl2$reactdom}from"./index-8QsdpE8Q.js";var __defProp=Object.defineProperty,__defNormalProp=(ie,Z,ee)=>Z in ie?__defProp(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee,__publicField=(ie,Z,ee)=>(__defNormalProp(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);const EMPTY=[];Object.freeze(EMPTY);const emptyAnnotationPage={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:EMPTY,motivation:null,label:null,thumbnail:EMPTY,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,provider:EMPTY,items:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,rendering:EMPTY,service:EMPTY},emptyCanvas={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,duration:0,height:0,width:0},emptyCollection={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,services:EMPTY},emptyManifest={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:EMPTY,behavior:EMPTY,homepage:EMPTY,items:EMPTY,label:null,logo:EMPTY,metadata:EMPTY,motivation:null,navDate:null,provider:EMPTY,partOf:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:EMPTY,requiredStatement:null,rights:null,seeAlso:EMPTY,service:EMPTY,services:EMPTY,start:null,structures:EMPTY,summary:null,thumbnail:EMPTY,viewingDirection:"left-to-right"},emptyRange={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,start:null,supplementary:null,viewingDirection:"left-to-right"},emptyAgent={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:EMPTY,seeAlso:EMPTY,homepage:EMPTY};function ensureArray$1(ie){return Array.isArray(ie)?ie:[ie]}const types$1=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function identifyResource$1(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie.type=="string"){const Z=types$1.indexOf(ie.type);if(Z!==-1)return types$1[Z]}if(ie.profile)return"Service";throw new Error("Resource type is not known")}class Traverse$1{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[],...Z},this.options={allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse$1({collection:[Z],manifest:[Z],canvas:[Z],annotationCollection:[Z],annotationPage:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z]})}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=Z.thumbnail.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.provider&&(Z.provider=Z.provider.map(ee=>this.traverseAgent(ee))),Z}traverseLinking(Z){return Z.seeAlso&&(Z.seeAlso=Z.seeAlso.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.service&&(Z.service=ensureArray$1(Z.service).map(ee=>this.traverseType(ee,this.traversals.service))),Z.services&&(Z.services=Z.services.map(ee=>this.traverseType(ee,this.traversals.service))),Z.logo&&(Z.logo=Z.logo.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.homepage&&(Z.homepage=Z.homepage.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.partOf&&(Z.partOf=Z.partOf.map(ee=>typeof ee=="string"||!ee.type?this.traverseType(ee,this.traversals.contentResource):ee.type==="Canvas"?this.traverseType(ee,this.traversals.canvas):ee.type==="AnnotationCollection"?this.traverseType(ee,this.traversals.annotationCollection):ee.type==="Collection"?this.traverseType(ee,this.traversals.collection):this.traverseType(ee,this.traversals.contentResource))),Z.start&&(Z.start=Z.start?this.traverseType(Z.start,this.traversals.canvas):null),Z.rendering&&(Z.rendering=Z.rendering.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.supplementary&&(Z.supplementary=Z.supplementary.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z}traverseCollectionItems(Z){return Z.items&&Z.items.map(ee=>ee.type==="Collection"?this.traverseCollection(ee):this.traverseManifest(ee)),Z}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(Z))))),this.traversals.collection)}traverseManifestItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseCanvas(ee))),Z}traverseManifestStructures(Z){return Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z)))))),this.traversals.manifest)}traverseCanvasItems(Z){return Z.items=(Z.items||[]).map(ee=>this.traverseAnnotationPage(ee)),Z}traverseInlineAnnotationPages(Z){return typeof Z=="string"||!Z||Z.annotations&&(Z.annotations=Z.annotations.map(ee=>this.traverseAnnotationPage(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))))),this.traversals.canvas)}traverseAnnotationPageItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotationPage(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(Z))),this.traversals.annotationPage)}traverseAnnotationBody(Z){return Array.isArray(Z.body)?Z.body=Z.body.map(ee=>this.traverseContentResource(ee)):Z.body&&(Z.body=this.traverseContentResource(Z.body)),Z}traversePosterCanvas(Z){return Z.posterCanvas&&(Z.posterCanvas=this.traverseCanvas(Z.posterCanvas)),Z.placeholderCanvas&&(Z.placeholderCanvas=this.traverseCanvas(Z.placeholderCanvas)),Z.accompanyingCanvas&&(Z.accompanyingCanvas=this.traverseCanvas(Z.accompanyingCanvas)),Z}traverseAnnotation(Z){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(Z)),this.traversals.annotation)}traverseContentResourceLinking(Z){return typeof Z=="string"||!Z||Z&&Z.service&&(Z.service=ensureArray$1(Z.service||[]).map(ee=>this.traverseType(ee,this.traversals.service))),Z}traverseContentResource(Z){return Z.type==="Choice"&&(Z.items=Z.items.map(ee=>this.traverseContentResource(ee))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(Z)),this.traversals.contentResource)}traverseRangeRanges(Z){return Z.items&&(Z.items=Z.items.map(ee=>typeof ee=="string"?this.traverseCanvas({id:ee,type:"Canvas"}):ee.type==="Manifest"?this.traverseManifest(ee):this.traverseRange(ee))),Z}traverseRange(Z){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(Z)))),this.traversals.range)}traverseAgent(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.agent)}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}traverseService(Z){return this.traverseType(Z,this.traversals.service)}traverseUnknown(Z){const ee=identifyResource$1(Z);switch(ee){case"Collection":return this.traverseCollection(Z);case"Manifest":return this.traverseManifest(Z);case"Canvas":return this.traverseCanvas(Z);case"AnnotationPage":return this.traverseAnnotationPage(Z);case"Annotation":return this.traverseAnnotation(Z);case"ContentResource":return this.traverseContentResource(Z);case"Range":return this.traverseRange(Z);case"Service":return this.traverseService(Z);case"Agent":return this.traverseAgent(Z);default:throw new Error(`Unknown or unsupported resource type of ${ee}`)}}}const types=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function identifyResource(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie["@type"]=="string"){const Z=types.indexOf(ie["@type"]);if(Z!==-1)return types[Z]}if(ie.profile)return"Service";if(ie.format||ie["@type"])return"ContentResource";throw new Error("Resource type is not known")}class Traverse{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[],...Z},this.options={convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse({collection:[Z],manifest:[Z],canvas:[Z],annotationList:[Z],sequence:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z],layer:[Z]})}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(Z))),this.traversals.collection)}traverseCollectionItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.manifests||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Manifest"}:ae),...(Z.collections||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Collection"}:ae),...Z.members||[]];delete Z.collections,delete Z.manifests,Z.members=ee}return Z.manifests&&(Z.manifests=Z.manifests.map(ee=>this.traverseManifest(typeof ee=="string"?{"@id":ee,"@type":"sc:Manifest"}:ee))),Z.collections&&(Z.collections=Z.collections.map(ee=>this.traverseCollection(typeof ee=="string"?{"@id":ee,"@type":"sc:Collection"}:ee))),Z.members&&(Z.members=Z.members.map(ee=>typeof ee=="string"?ee:this.traverseUnknown(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z))),this.traversals.manifest)}traverseManifestItems(Z){return Z.sequences&&(Z.sequences=Z.sequences.map(ee=>this.traverseSequence(ee))),Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseSequence(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(Z))),this.traversals.sequence)}traverseSequenceItems(Z){return Z.canvases&&(Z.canvases=Z.canvases.map(ee=>this.traverseCanvas(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))),this.traversals.canvas)}traverseCanvasItems(Z){return Z.images&&(Z.images=Z.images.map(ee=>this.traverseAnnotation(ee))),Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseRange(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(Z))),this.traversals.range)}traverseRangeItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.ranges||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Range"}:ae),...(Z.canvases||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Canvas"}:ae),...Z.members||[]];delete Z.ranges,delete Z.canvases,Z.members=ee.length?ee.map(ae=>this.traverseUnknown(ae)):void 0}return Z}traverseAnnotationList(Z){const ee=typeof Z=="string"?{"@id":Z,"@type":"sc:AnnotationList"}:Z;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(ee)),this.traversals.annotationList)}traverseAnnotationListItems(Z){return Z.resources&&(Z.resources=Z.resources.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotation(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(Z))),this.traversals.annotation)}traverseAnnotationItems(Z){return Z.resource&&(Array.isArray(Z.resource)?Z.resource=Z.resource.map(ee=>this.traverseContentResource(ee)):Z.resource=this.traverseContentResource(Z.resource)),Z.on,Z}traverseLayer(Z){return this.traverseType(this.traverseLinking(this.traverseLayerItems(Z)),this.traversals.layer)}traverseLayerItems(Z){return Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseChoice(Z){return this.traverseType(this.traverseChoiceItems(Z),this.traversals.choice)}traverseChoiceItems(Z){return Z.default&&Z.default!=="rdf:nil"&&(Z.default=this.traverseContentResource(Z.default)),Z.item&&Z.item!=="rdf:nil"&&(Z.item=Z.item.map(ee=>this.traverseContentResource(ee))),Z}traverseService(Z){return this.traverseType(this.traverseLinking(Z),this.traversals.service)}traverseContentResource(Z){return Z["@type"]==="oa:Choice"?this.traverseChoice(Z):this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.contentResource)}traverseUnknown(Z){if(!Z["@type"]||typeof Z=="string")return Z;switch(identifyResource(Z)){case"sc:Collection":return this.traverseCollection(Z);case"sc:Manifest":return this.traverseManifest(Z);case"sc:Canvas":return this.traverseCanvas(Z);case"sc:Sequence":return this.traverseSequence(Z);case"sc:Range":return this.traverseRange(Z);case"oa:Annotation":return this.traverseAnnotation(Z);case"sc:AnnotationList":return this.traverseAnnotationList(Z);case"sc:Layer":return this.traverseLayer(Z);case"Service":return this.traverseService(Z);case"oa:Choice":return this.traverseChoice(Z);case"ContentResource":return this.traverseContentResource(Z)}return Z.profile?this.traverseService(Z):Z}traverseImageResource(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)typeof ye=="string"?ve.push(this.traverseContentResource({"@id":ye,"@type":"dctypes:Image"})):ve.push(this.traverseContentResource(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=this.traverseImageResource(Z.thumbnail)),Z.logo&&(Z.logo=this.traverseImageResource(Z.logo)),Z}traverseOneOrMoreServices(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)ve.push(this.traverseService(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseLinking(Z){return Z.related&&(Z.related=this.traverseOneOrManyType(Z.related,this.traversals.contentResource)),Z.rendering&&(Z.rendering=this.traverseOneOrManyType(Z.rendering,this.traversals.contentResource)),Z.service&&(Z.service=this.traverseOneOrMoreServices(Z.service)),Z.seeAlso&&(Z.seeAlso=this.traverseOneOrManyType(Z.seeAlso,this.traversals.contentResource)),Z.within&&(typeof Z.within=="string"||(Z.within=this.traverseOneOrManyType(Z.within,this.traversals.contentResource))),Z.startCanvas&&(typeof Z.startCanvas=="string"?Z.startCanvas=this.traverseType({"@id":Z.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):Z.startCanvas&&this.traverseType(Z.startCanvas,this.traversals.canvas)),Z.contentLayer&&(typeof Z.contentLayer=="string"?Z.contentLayer=this.traverseLayer({"@id":Z.contentLayer,"@type":"sc:Layer"}):Z.contentLayer=this.traverseLayer(Z.contentLayer)),Z}traverseOneOrManyType(Z,ee){if(!Array.isArray(Z))if(this.options.convertPropsToArray)Z=[Z];else return this.traverseType(Z,ee);return Z.map(ae=>this.traverseType(ae,ee))}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}}const STANFORD_IIIF_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",STANFORD_IIIF_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",STANFORD_IIIF_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",STANFORD_IIIF_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",STANFORD_IIIF_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",STANFORD_IIIF_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",STANFORD_IIIF_1_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",STANFORD_IIIF_1_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",STANFORD_IIIF_1_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",STANFORD_IIIF_1_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",STANFORD_IIIF_1_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",STANFORD_IIIF_1_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",IIIF_1_IMAGE_LEVEL_0="http://iiif.io/api/image/1/level0.json",IIIF_1_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/1/profiles/level0.json",IIIF_1_IMAGE_LEVEL_1="http://iiif.io/api/image/1/level1.json",IIIF_1_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/1/profiles/level1.json",IIIF_1_IMAGE_LEVEL_2="http://iiif.io/api/image/1/level2.json",IIIF_1_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/1/profiles/level2.json",IIIF_2_IMAGE_LEVEL_0="http://iiif.io/api/image/2/level0.json",IIIF_2_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/2/profiles/level0.json",IIIF_2_IMAGE_LEVEL_1="http://iiif.io/api/image/2/level1.json",IIIF_2_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/2/profiles/level1.json",IIIF_2_IMAGE_LEVEL_2="http://iiif.io/api/image/2/level2.json",IIIF_2_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/2/profiles/level2.json",IIIF_3_IMAGE_LEVEL_0="level0",IIIF_3_IMAGE_LEVEL_1="level1",IIIF_3_IMAGE_LEVEL_2="level2",IIIF_2_IMAGE_LEVEL_0_NO_JSON="http://iiif.io/api/image/2/level0",IIIF_2_IMAGE_LEVEL_1_NO_JSON="http://iiif.io/api/image/2/level1",IIIF_2_IMAGE_LEVEL_2_NO_JSON="http://iiif.io/api/image/2/level2",level1Support=[IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],imageServiceProfiles=[IIIF_2_IMAGE_LEVEL_0_NO_JSON,IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_0,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_0,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_0,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_0,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_0,IIIF_1_IMAGE_LEVEL_0_PROFILE,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_0,IIIF_2_IMAGE_LEVEL_0_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_0,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],configuration={attributionLabel:"Attribution",lang:"none",providerId:"http://example.org/provider",providerName:"Unknown"};function convertLanguageMapping(ie,Z="none"){if(!ie)return{};const ee=Array.isArray(ie)?ie:[ie],ae={};for(const ve of ee){if(typeof ve=="string"){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve||"");continue}if(!ve["@language"]){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve["@value"]||"");continue}const ye=ve["@language"];ae[ye]=ae[ye]?ae[ye]:[],ae[ye].push(ve["@value"]||"")}return ae}function getProfile(ie){if(Array.isArray(ie))return getProfile(ie.find(Z=>typeof Z=="string"));if(imageServiceProfiles.indexOf(ie)!==-1)return"level2";if(level1Support.indexOf(ie)!==-1)return"level1";if(typeof ie=="string")return ie}function getTypeFromContext(ie){const Z=Array.isArray(ie)?ie:[ie];for(const ee of Z)switch(ee){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function getTypeFromProfile(ie){switch(ie){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function removePrefix(ie){for(const Z of["sc","oa","dcterms","dctypes","iiif"])if(ie.startsWith(`${Z}:`))return ie.slice(Z.length+1);return ie}const knownTypes=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function getNewType(ie){const Z=ie["@id"]||ie.id;let ee=ie["@type"]||ie.type;const ae=ie.profile||void 0,ve=ie["@context"]||void 0;if(ae){const ye=getTypeFromProfile(ae);if(ye)return ye}if(ve){const ye=getTypeFromContext(ve);if(ye)return ye}if(ee){if(Array.isArray(ee)){if(ee.indexOf("oa:CssStylesheet")!==-1)return"CssStylesheet";if(ee.indexOf("cnt:ContentAsText")!==-1)return"TextualBody";ee=ee[0]}for(const ye of["sc","oa","dcterms","dctypes","iiif"])if(ee.startsWith(`${ye}:`)){ee=ee.slice(ye.length+1);break}switch(ee){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(ee&&knownTypes.indexOf(ee)!==-1)return ee;if(ie.format){if(ie.format.startsWith("image/"))return"Image";if(ie.format.startsWith("text/")||ie.format==="application/pdf")return"Text";if(ie.format.startsWith("application/"))return"Dataset"}return Z&&(Z.endsWith(".jpg")||Z.endsWith(".png")||Z.endsWith(".jpeg"))?"Image":ee||"unknown"}const licenseRegex=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function extractLicense(ie){const Z=ie.match(licenseRegex);return Z?Z[0]:ie}function fixLicense(ie,Z="Rights/License",ee="none"){let ae=null;const ve=[],ye=Array.isArray(ie)?ie:[ie];for(const be of ye){const Ke=be?extractLicense(be):void 0;if(Ke&&(Ke.indexOf("creativecommons.org")!==-1||Ke.indexOf("rightsstatements.org")!==-1)){Ke.startsWith("https://")?ae=`http://${Ke.slice(8)}`:ae=Ke;continue}Ke&&ve.push({label:{[ee]:[Z]},value:{[ee]:[Ke]}})}return[ae,ve]}const removeContexts=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function fixContext(ie){if(ie){const Z=Array.isArray(ie)?ie:[ie],ee=[];for(const ae of Z)ae==="http://iiif.io/api/presentation/2/context.json"&&ee.push("http://iiif.io/api/presentation/3/context.json"),removeContexts.indexOf(ae)===-1&&ee.push(ae);if(Z.length)return ee.length===1?ee[0]:ee}}function convertMetadata(ie){return ie?ie.map(Z=>({label:convertLanguageMapping(Z.label),value:convertLanguageMapping(Z.value)})):[]}function removeUndefinedProperties(ie){for(const Z in ie)(typeof ie[Z]>"u"||ie[Z]===null)&&delete ie[Z];return ie}let mintedIdCounter=0;function mintNewIdFromResource(ie,Z){const ee=encodeURI(ie.id||ie["@id"]||"").trim();return ee&&Z?`${ee}/${Z}`:ee||(mintedIdCounter++,`http://example.org/${ie["@type"]}${Z?`/${Z}`:""}/${mintedIdCounter}`)}function technicalProperties$2(ie){const Z=[...ie.behavior||[]];ie.viewingHint&&Z.push(ie.viewingHint);let ee;return Array.isArray(ie.motivation)?ee=ie.motivation.map(removePrefix):ie.motivation&&(ee=removePrefix(ie.motivation)),{"@context":ie["@context"]?fixContext(ie["@context"]):void 0,id:(ie["@id"]||mintNewIdFromResource(ie)).trim(),type:getNewType(ie),behavior:Z.length?Z:void 0,height:ie.height?ie.height:void 0,width:ie.width?ie.width:void 0,motivation:ee,viewingDirection:ie.viewingDirection,profile:ie.profile,format:ie.format?ie.format:void 0,duration:void 0,timeMode:void 0}}function descriptiveProperties$2(ie){const[Z,ee]=fixLicense(ie.license),ae=[...ie.metadata?convertMetadata(ie.metadata):[],...ee];return{rights:Z,metadata:ae.length?ae:void 0,label:ie.label?convertLanguageMapping(ie.label):void 0,requiredStatement:ie.attribution?{label:convertLanguageMapping(configuration.attributionLabel),value:convertLanguageMapping(ie.attribution)}:void 0,navDate:ie.navDate,summary:ie.description?convertLanguageMapping(ie.description):void 0,thumbnail:ie.thumbnail}}function parseWithin(ie){if(!ie.within)return;const Z=Array.isArray(ie.within)?ie.within:[ie.within],ee=[];for(const ae of Z)if(typeof ae=="string"){if(ae)switch(ie["@type"]){case"sc:Manifest":ee.push({id:ae,type:"Collection"});break}}else ae["@id"]&&ee.push({id:ae["@id"],type:getNewType(ae)});return ee.length?ee:void 0}function linkingProperties$2(ie){const Z=ie.related?Array.isArray(ie.related)?ie.related:[ie.related]:[],ee=ie.contentLayer;return{provider:ie.logo||Z.length?[{id:configuration.providerId,type:"Agent",homepage:Z.length?[Z[0]]:void 0,logo:ie.logo?Array.isArray(ie.logo)?ie.logo:[ie.logo]:void 0,label:convertLanguageMapping(configuration.providerName)}]:void 0,partOf:parseWithin(ie),rendering:ie.rendering,seeAlso:ie.seeAlso,start:ie.startCanvas,service:ie.service?ensureArray$1(ie.service):void 0,supplementary:ee?[ee]:void 0}}function embeddedContentProperties(ie){return{chars:ie.chars,format:ie.format?ie.format:void 0,language:ie.language}}function upgradeCollection(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeManifest(ie){const Z=[],ee=[];for(const ve of ie.sequences||[])ve.canvases.length&&Z.push(...ve.canvases),ve.behavior&&ee.push(...ve.behavior);const ae=technicalProperties$2(ie);return ee.length&&(ae.behavior?ae.behavior.push(...ee):ae.behavior=ee),removeUndefinedProperties({...ae,...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:Z,structures:ie.structures})}function upgradeCanvas(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),annotations:ie.otherContent&&ie.otherContent.length?ie.otherContent:void 0,items:ie.images&&ie.images.length?[{id:mintNewIdFromResource(ie,"annotation-page"),type:"AnnotationPage",items:ie.images}]:void 0})}function upgradeAnnotationList(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.resources&&ie.resources.length?ie.resources:void 0})}function upgradeSequence(ie){return!ie.canvases||ie.canvases.length===0?{canvases:[],behavior:[]}:{canvases:ie.canvases,behavior:ie.viewingHint?[ie.viewingHint]:[]}}function upgradeAnnotation(ie){function Z(ee){if(Array.isArray(ee)){if(ee.length>1)return{type:"List",items:ee.map(Z)};ee=ee[0]}if(typeof ee=="string")return encodeURI(ee).trim();if("@type"in ee){let ae;if(typeof ee.full=="string")ae=ee.full;else if(ee.full["@type"]==="dctypes:Image")ae={id:ee.full["@id"],type:"Image"};else if(ee.full["@type"]==="sc:Canvas")ae={id:ee.full["@id"],type:"Canvas"};else throw new Error(`Unsupported source type on annotation: ${ee.full["@type"]}`);return{type:"SpecificResource",source:ae,selector:upgradeSelector(ee.selector)}}else return encodeURI(ee["@id"]).trim()}return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),target:Z(ie.on),body:Array.isArray(ie.resource)?ie.resource.map(upgradeContentResource):upgradeContentResource(ie.resource)})}function upgradeContentResource(ie){const Z=ie;return removeUndefinedProperties({...technicalProperties$2(Z),...descriptiveProperties$2(Z),...linkingProperties$2(Z),...embeddedContentProperties(Z)})}function upgradeChoice(ie){const Z=[];return ie.default&&ie.default!=="rdf:nil"&&Z.push(ie.default),ie.item&&ie.item!=="rdf:nil"&&Z.push(...ie.item),{...technicalProperties$2(ie),...descriptiveProperties$2(ie),items:Z}}function upgradeRange(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeService(ie){const{"@id":Z,"@type":ee,"@context":ae,profile:ve,...ye}=ie,be={};return Z&&(be["@id"]=Z),be["@type"]=getNewType(ie),be["@type"]==="unknown"&&(ae&&ae.length&&(be["@context"]=ae),be["@type"]="Service"),ve&&(be.profile=getProfile(ve)),removeUndefinedProperties({...be,...ye})}function upgradeLayer(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie)})}const presentation2to3=new Traverse({collection:[upgradeCollection],manifest:[upgradeManifest],canvas:[upgradeCanvas],annotationList:[upgradeAnnotationList],sequence:[upgradeSequence],annotation:[upgradeAnnotation],contentResource:[upgradeContentResource],choice:[upgradeChoice],range:[upgradeRange],service:[upgradeService],layer:[upgradeLayer]});function convertPresentation2(ie){return ie&&ie["@context"]&&(ie["@context"]==="http://iiif.io/api/presentation/2/context.json"||ie["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")!==-1||ie["@context"]==="http://www.shared-canvas.org/ns/context.json")||ie["@context"]==="http://iiif.io/api/image/2/context.json"?presentation2to3.traverseUnknown(ie):ie}function upgradeSelector(ie){if((Array.isArray(ie["@type"])&&ie["@type"].includes("oa:SvgSelector")||ie["@type"]=="oa:SvgSelector")&&("chars"in ie||"value"in ie))return{type:"SvgSelector",value:"chars"in ie?ie.chars:ie.value};if(ie["@type"]==="oa:FragmentSelector")return{type:"FragmentSelector",value:ie.value};if(ie["@type"]==="oa:Choice")return[upgradeSelector(ie.default),...(Array.isArray(ie.item)?ie.item:[ie.item]).map(upgradeSelector)];if(ie["@type"]=="iiif:ImageApiSelector")return{type:"ImageApiSelector",region:"region"in ie?ie.region:void 0,rotation:"rotation"in ie?ie.rotation:void 0};throw new Error(`Unsupported selector type: ${ie["@type"]}`)}function getDefaultEntities$1(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function getResource(ie,Z){if(typeof ie=="string")return{id:ie,type:Z};if(!ie.id)throw new Error(`Invalid resource does not have an ID (${Z})`);return ie}function mapToEntities(ie){return(Z,ee)=>{const ae=ie[Z]?ie[Z]:{};return ve=>{const ye=getResource(ve,ee||Z);return ye&&ye.id&&Z?(ae[ye.id]=ae[ye.id]?mergeEntities(ae[ye.id],ye):Object.assign({},ye),{id:ye.id,type:Z==="ContentResource"?Z:ye.type}):ye}}}function merge(ie,Z){if(!Z)return ie;if(Array.isArray(ie)){if(!Array.isArray(Z))throw new Error("Cannot merge array with non-array");const ee=[...ie];for(const ae of Z)if(ae!=null)if(Array.isArray(ae))ee.push(ae);else if(typeof ae=="object"&&ae.id&&ae.type){const ve=ee.findIndex(ye=>ye.id===ae.id&&ye.type===ae.type);ve>=0&&(ee[ve]=merge(ee[ve],ae))}else ie.indexOf(ae)===-1&&ee.push(ae);return ee}else if(typeof ie=="object"){if(Array.isArray(Z)||typeof Z!="object")throw new Error("Cannot merge object with non-object");const ee={...ie};for(const[ae,ve]of Object.entries(Z)){const ye=ee[ae];ye===EMPTY||!ye?ee[ae]=ve:ee[ae]=merge(ye,ve)}return ee}else if(ie)return ie;return Z}function mergeEntities(ie,Z){if(typeof ie=="string")return ie;if(Z.id!==ie.id||Z.type!==ie.type)throw new Error("Can only merge entities with identical identifiers and type!");return merge({...ie},Z)}function recordTypeInMapping(ie){return(Z,ee)=>ae=>{const{id:ve,type:ye}=getResource(ae,ee||Z);if(typeof ve>"u")throw new Error("Found invalid entity without an ID.");return Z==="ContentResource"?ie[ve]=Z:ie[ve]=ye,ae}}function hash$1(ie){const Z=JSON.stringify(ie);let ee=5381,ae=Z.length;for(;ae;)ee=ee*33^Z.charCodeAt(--ae);const ye=(ee>>>0).toString(16);return ye.length%2?"0"+ye:ye}function addMissingIdToContentResource(ie){return Z=>typeof Z=="string"?{id:Z,type:ie}:Z.id?Z.type?Z:{type:ie,...Z}:{id:`vault://${hash$1(Z)}`,type:ie,...Z}}function ensureDefaultFields(ie){return Z=>({...ie,...Z})}function ensureArray(ie){return Array.isArray(ie)?ie:[ie]}function ensureArrayOnAnnotation(ie){return ie.body&&(ie.body=ensureArray(ie.body)),ie.seeAlso&&(ie.seeAlso=ensureArray(ie.seeAlso)),ie.body&&(ie.body=ensureArray(ie.body)),ie.audience&&(ie.audience=ensureArray(ie.audience)),ie.accessibility&&(ie.accessibility=ensureArray(ie.accessibility)),ie.motivation&&(ie.motivation=ensureArray(ie.motivation)),ie}function normalize(ie){const Z=convertPresentation2(ie),ee=getDefaultEntities$1(),ae={},ve=mapToEntities(ee),ye=recordTypeInMapping(ae),Ke=new Traverse$1({collection:[ensureDefaultFields(emptyCollection),ye("Collection"),ve("Collection")],manifest:[ensureDefaultFields(emptyManifest),ye("Manifest"),ve("Manifest")],canvas:[ensureDefaultFields(emptyCanvas),ye("Canvas"),ve("Canvas")],annotationPage:[addMissingIdToContentResource("AnnotationPage"),ensureDefaultFields(emptyAnnotationPage),ye("AnnotationPage"),ve("AnnotationPage")],annotation:[addMissingIdToContentResource("Annotation"),ensureArrayOnAnnotation,ye("Annotation"),ve("Annotation")],contentResource:[addMissingIdToContentResource("ContentResource"),ye("ContentResource"),ve("ContentResource")],range:[ensureDefaultFields(emptyRange),ye("Range","Canvas"),ve("Range","Canvas")],agent:[ensureDefaultFields(emptyAgent),ye("Agent"),ve("Agent")]}).traverseUnknown(Z);return{entities:ee,resource:Ke,mapping:ae}}const UNSET="__$UNSET$__",UNWRAP="__$UNWRAP$__";function resolveIfExists$1(ie,Z){const ee=ie.requests[Z],ae=ie.mapping[Z];if(!(!ae||ee&&ee.resourceUri&&!ie.entities[ae][ee.resourceUri]))return ie.entities[ae][ee?ee.resourceUri:Z]}function serializedFieldsToObject(ie){const Z={};for(const[ee,ae]of ie){if(ee===UNWRAP&&ae!==UNSET)return ae;ae!==UNSET&&typeof ae<"u"&&ae!==null&&(Z[ee]=ae)}return Z}function serialize(ie,Z,ee){if(!Z.type||!Z.id)throw new Error("Unknown entity");if(!ee[Z.type])throw new Error(`Serializer not found for ${Z.type}`);function ae(ve){const ye=ee[ve.type];if(!ye)return UNSET;const be=resolveIfExists$1(ie,ve.id)||(ve.id&&ve.type?ve:null);if(!be)return UNSET;const Ke=ye(be,ie,{isTopLevel:Z.id===ve.id});let Ye=Ke.next();for(;!Ye.done;){const Xe=Ye.value;let Qe=UNSET;if(Xe)if(Array.isArray(Xe)){const et=[];for(const Je of Xe)et.push(ae(Je));Qe=et}else Qe=ae(Xe);Ye=Ke.next(Qe)}return Ye.value===UNSET?UNSET:serializedFieldsToObject(Ye.value)}return ae(Z)}function languageString2to3(ie){if(!ie)return;const Z=Object.keys(ie);if(Z.length!==0){if(Z.length===1){const ee=Z[0];if(!ee)return"";const ae=(ie[ee]||[]).join("");return ee==="@none"||ee==="none"||ee==="en"?ae:{"@language":ee,"@value":ae}}return Z.map(ee=>({"@language":ee,"@value":(ie[ee]||[]).join("")}))}}function parseCanvasTarget(ie){return Array.isArray(ie)?ie.map(Z=>parseCanvasTarget(Z)):typeof ie=="string"?ie:ie.type&&ie.type==="Canvas"?ie.id:ie}function unNestArray(ie,Z=!1){if(ie)return ie.length>1&&!Z?ie:ie[0]||void 0}function convertService(ie){if(ie){if(typeof ie=="string")return{"@id":ie};if("@id"in ie){const Z={...ie};return delete Z["@type"],Z}return{"@context":"http://iiif.io/api/image/2/context.json","@id":ie.id,profile:`http://iiif.io/api/image/2/profiles/${ie.profile}.json`}}}function technicalProperties$1(ie,Z){return[["@id",ie.id],["@type",Z],["format",ie.format],["height",ie.height],["width",ie.width],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0]]}function*descriptiveProperties$1(ie){const Z=ie.provider?yield ie.provider[0]:void 0;return[["label",languageString2to3(ie.label)],["metadata",ie.metadata&&ie.metadata.length?ie.metadata.map(ee=>({label:languageString2to3(ee.label)||"",value:languageString2to3(ee.value)||""})):void 0],["description",languageString2to3(ie.summary)],["thumbnail",unNestArray(yield ie.thumbnail)],["navDate",ie.navDate],["logo",Z?unNestArray(Z.logo):void 0],["homepage",Z?Z.homepage:void 0],["attribution",ie.requiredStatement?languageString2to3(ie.requiredStatement.value):void 0]]}function*linkingProperties$1(ie){return[["seeAlso",unNestArray(yield ie.seeAlso)],["service",unNestArray((ie.service||[]).map(convertService))],["rendering",unNestArray(yield ie.rendering)],["startCanvas",ie.start?ie.start.id:void 0]]}const serializeConfigPresentation2={Manifest:function*(ie){return[...technicalProperties$1(ie,"sc:Manifest"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["sequences",[{"@id":`${ie.id}/sequence0`,"@type":"sc:Sequence",canvases:yield ie.items}]],["structures",yield ie.structures]]},Canvas:function*(ie){const ee=(yield ie.items)[0];return[...technicalProperties$1(ie,"sc:Canvas"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["images",ee?[ee.resources]:void 0],["annotations",ie.annotations&&ie.annotations.length?unNestArray(yield ie.annotations):void 0]]},AnnotationPage:function*(ie){return[...technicalProperties$1(ie,"sc:AnnotationList"),...yield*descriptiveProperties$1(ie),["resources",ie.items&&ie.items.length?unNestArray(yield ie.items):void 0]]},Annotation:function*(ie){return[["@id",ie.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",parseCanvasTarget(ie.target)],["resource",unNestArray(yield ie.body,!0)]]},ContentResource:function*(ie){switch(ie.type){case"Image":return[...technicalProperties$1(ie,"dctypes:Image"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie)];case"Text":case"Dataset":default:return[...technicalProperties$1(ie,void 0),...yield*descriptiveProperties$1(ie)]}},AnnotationCollection:function*(ie){return[["@id",ie.id],["@type","sc:Layer"],["label",languageString2to3(ie.label)]]},Collection:function*(ie){return[...technicalProperties$1(ie,"sc:Collection"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["members",yield*ie.items]]},Range:function*(ie){const Z=[],ee=[];if(ie.items)for(const ae of ie.items){const ve=yield ae;Z.push({"@id":ae.id,"@type":ae.type,label:ve?ve.label:void 0,within:ie.id}),ae.type==="Canvas"&&ee.push(ae.id)}return[...technicalProperties$1(ie,"sc:Range"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["canvases",ee.length===Z.length?ee:void 0],["members",ee.length!==Z.length?Z:void 0]]}};function technicalProperties(ie){var Z;return[["id",(Z=ie.id)!=null&&Z.startsWith("vault://")?void 0:ie.id],["type",ie.type],["format",ie.format],["profile",ie.profile],["height",ie.height],["width",ie.width],["duration",ie.duration||void 0],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0],["behavior",ie.behavior&&ie.behavior.length?ie.behavior:void 0],["timeMode",ie.timeMode],["motivation",Array.isArray(ie.motivation)?ie.motivation[0]:ie.motivation]]}function filterEmpty(ie){if(!(!ie||ie.length===0))return ie}function service2compat(ie){if(ie&&ie.type&&ie.type==="ImageService2"){const{id:Z,type:ee,profile:ae,...ve}=ie,ye=typeof ae=="string"?ae:Array.isArray(ae)?ae.find(be=>typeof be=="string"):"";return{"@id":Z,"@type":ee,profile:ye?ye.startsWith("http")?ye:`http://iiif.io/api/image/2/${ye}.json`:"http://iiif.io/api/image/2/level0.json",...ve}}return ie}function filterService2Compat(ie){if(!(!ie||ie.length===0))return ie.map(service2compat)}function*descriptiveProperties(ie){return[["label",ie.label],["metadata",filterEmpty(ie.metadata)],["summary",ie.summary],["requiredStatement",ie.requiredStatement],["rights",ie.rights],["navDate",ie.navDate],["language",ie.language],["thumbnail",filterEmpty(yield ie.thumbnail)],["placeholderCanvas",yield ie.placeholderCanvas],["accompanyingCanvas",yield ie.accompanyingCanvas],["provider",filterEmpty(yield ie.provider)]]}function*linkingProperties(ie){return[["seeAlso",filterEmpty(yield ie.seeAlso)],["service",filterService2Compat(ie.service)],["services",filterService2Compat(ie.services)],["rendering",filterEmpty(yield ie.rendering)],["supplementary",filterEmpty(yield ie.supplementary)],["homepage",filterEmpty(yield ie.homepage)],["logo",filterEmpty(yield ie.logo)],["partOf",filterEmpty(yield ie.partOf)],["start",ie.start]]}const serializeConfigPresentation3={Manifest:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["structures",filterEmpty(yield ie.structures)],["annotations",filterEmpty(yield ie.annotations)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Canvas:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["annotations",filterEmpty(yield ie.annotations)]]},Agent:function*(ie){return[["id",ie.id],["type","Agent"],["label",ie.label],...yield*linkingProperties(ie)]},AnnotationPage:function*(ie){return[...Object.entries(ie).map(([ee,ae])=>[ee,Array.isArray(ae)?filterEmpty(ae):ae]).filter(([ee,ae])=>ee!=="items"),...yield*linkingProperties(ie),["items",yield ie.items]]},Service:function*(ie){return[[UNWRAP,service2compat(ie)]]},Annotation:function*(ie){const Z=Object.entries(ie).map(([ae,ve])=>ae==="motivation"?[ae,Array.isArray(ve)?ve[0]:ve]:[ae,Array.isArray(ve)?filterEmpty(ve):ve]).filter(([ae])=>ae!=="body"),ee=yield ie.body;return[...Z,["body",ee.length===1?ee[0]:ee]]},ContentResource:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["annotations",filterEmpty(yield ie.annotations)],["items",filterEmpty(yield ie.items)]]},AnnotationCollection:function*(ie){return[["id",ie.id],["type","AnnotationCollection"],["label",ie.label]]},Collection:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",filterEmpty(yield ie.items)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Range:function*(ie){const Z=[];for(const ee of ie.items)ee.type==="Range"?Z.push(yield ee):Z.push(ee);return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",Z],["annotations",filterEmpty(yield ie.annotations)]]}};function n$1(ie){return ie==null}function t$1(ie){throw new Error("Argument "+ie+" is empty.")}function o$1(ie){return typeof ie=="string"||typeof ie=="symbol"}function u$1(ie){return!o$1(ie)}function a$1(ie){throw new Error("Argument "+ie+" is invalid, it should be an action type of type: string | symbol")}function s$1(ie,Z){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),Object.assign(function(){var ee=Z!=null?Z.apply(void 0,arguments):void 0;return Object.assign({type:ie},ee)},{getType:function(){return ie},toString:function(){return ie}})}function y$1(ie,Z,ee){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),function(){return s$1(ie,function(){var ae=arguments.length<=0?void 0:arguments[0],ve=arguments.length<=1?void 0:arguments[1];return Z==null&&ee==null||(ae=Z!=null?Z.apply(void 0,arguments):void 0,ve=ee!=null?ee.apply(void 0,arguments):void 0),Object.assign({},ae!==void 0&&{payload:ae},{},ve!==void 0&&{meta:ve})})}}function _typeof(ie){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},_typeof(ie)}function toPrimitive(ie,Z){if(_typeof(ie)!="object"||!ie)return ie;var ee=ie[Symbol.toPrimitive];if(ee!==void 0){var ae=ee.call(ie,Z||"default");if(_typeof(ae)!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(ie)}function toPropertyKey(ie){var Z=toPrimitive(ie,"string");return _typeof(Z)=="symbol"?Z:String(Z)}function _defineProperty$1(ie,Z,ee){return Z=toPropertyKey(Z),Z in ie?Object.defineProperty(ie,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ie[Z]=ee,ie}function ownKeys$1(ie,Z){var ee=Object.keys(ie);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ie);Z&&(ae=ae.filter(function(ve){return Object.getOwnPropertyDescriptor(ie,ve).enumerable})),ee.push.apply(ee,ae)}return ee}function _objectSpread2$1(ie){for(var Z=1;Z"u"&&(ee=Z,Z=void 0),typeof ee<"u"){if(typeof ee!="function")throw new Error(formatProdErrorMessage(1));return ee(createStore$1)(ie,Z)}if(typeof ie!="function")throw new Error(formatProdErrorMessage(2));var ve=ie,ye=Z,be=[],Ke=be,Ye=!1;function Xe(){Ke===be&&(Ke=be.slice())}function Qe(){if(Ye)throw new Error(formatProdErrorMessage(3));return ye}function et(nt){if(typeof nt!="function")throw new Error(formatProdErrorMessage(4));if(Ye)throw new Error(formatProdErrorMessage(5));var tt=!0;return Xe(),Ke.push(nt),function(){if(tt){if(Ye)throw new Error(formatProdErrorMessage(6));tt=!1,Xe();var ot=Ke.indexOf(nt);Ke.splice(ot,1),be=null}}}function Je(nt){if(!isPlainObject$3(nt))throw new Error(formatProdErrorMessage(7));if(typeof nt.type>"u")throw new Error(formatProdErrorMessage(8));if(Ye)throw new Error(formatProdErrorMessage(9));try{Ye=!0,ye=ve(ye,nt)}finally{Ye=!1}for(var tt=be=Ke,st=0;st"u")throw new Error(formatProdErrorMessage(12));if(typeof ee(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(ie){for(var Z=Object.keys(ie),ee={},ae=0;ae"u")throw Xe&&Xe.type,new Error(formatProdErrorMessage(14));et[rt]=tt,Qe=Qe||tt!==nt}return Qe=Qe||ye.length!==Object.keys(Ye).length,Qe?et:Ye}}function compose(){for(var ie=arguments.length,Z=new Array(ie),ee=0;ee{const{entities:ee,resource:ae,mapping:ve}=normalize(Z);if(ae.id===void 0)return[requestError({id:ie,message:"ID is not defined in resource."})];const ye=[importEntities({entities:ee}),addMappings({mapping:ve})];return ae.id!==ie&&(ye.push(addMapping({id:ie,type:ae.type})),ye.push(requestMismatch({requestId:ie,actualId:ae.id}))),ye.push(requestComplete({id:ie})),ye},safeIsNaN=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function isEqual(ie,Z){return!!(ie===Z||safeIsNaN(ie)&&safeIsNaN(Z))}function areInputsEqual(ie,Z){if(!Array.isArray(ie)||!Array.isArray(Z))return ie===Z;if(ie.length!==Z.length)return!1;for(let ee=0;ee{const ye=ie.getState(),be=ye.iiif.requests[ae];if(be)switch(be.loadingState){case RESOURCE_ERROR:break;case RESOURCE_LOADING:{let Ke,Ye=!1;try{const Xe=await Promise.race([new Promise((Qe,et)=>{Ye||(Ke=ie.subscribe(()=>{const Je=ie.getState();if(Je.iiif.requests[ae].loadingState===RESOURCE_ERROR){et();return}if(Je.iiif.requests[ae].loadingState===RESOURCE_READY){const rt=resolveIfExists(Je,ae);rt?Qe(rt):et()}}))}),new Promise((Qe,et)=>setTimeout(()=>{Ye=!0,et()},ee*60))]);if(Ke&&Ke(),Xe)return Xe}catch{Ke&&Ke();break}break}case RESOURCE_READY:{const Ke=resolveIfExists(ye,ae);if(Ke)return Ke;break}}ie.dispatch(requestResource({id:ae}));try{const Ke=await Z(ae,ve);!Ke.id&&!Ke["@id"]&&(Ke["@type"]&&(Ke["@id"]=ae),Ke.id=ae);const Ye=actionListFromResource(ae,Ke);return ie.dispatch(batchActions({actions:Ye})),resolveIfExists(ie.getState(),ae)}catch(Ke){throw ie.dispatch(requestError({id:ae,message:Ke.toString()})),Ke}}}function getDefaultEntities(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}const mappingReducer=(ie={},Z)=>{switch(Z.type){case ADD_MAPPING:return{...ie,[Z.payload.id]:Z.payload.type};case ADD_MAPPINGS:return{...ie,...Z.payload.mapping};default:return ie}};function isReferenceList(ie,Z,ee,ae){return!(!ie[ee]||!ie[ee][Z]||!ie[ee][Z][ae]||!Array.isArray(ie[ee][Z][ae]))}function quickMerge(ie,Z){const ee={},ae=[];for(const[ve,ye]of Object.entries(ie||{})){ae.push(ve);const be=(Z||{})[ve];if(!be||be.length===0){ee[ve]=ye;continue}ee[ve]=be}for(const[ve,ye]of Object.entries(Z||{}))ae.indexOf(ve)===-1&&(ee[ve]=ye);return ee}const entitiesReducer=(ie=getDefaultEntities(),Z)=>{var ee;switch(Z.type){case MODIFY_ENTITY_FIELD:{if(!ie[Z.payload.type]||!ie[Z.payload.type][Z.payload.id])return ie;const ae=ie[Z.payload.type][Z.payload.id];return typeof ae=="string"?ie:{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:Z.payload.value}}}}case REORDER_ENTITY_FIELD:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id];if(typeof ae=="string")return ie;const ve=Array.from(ae[Z.payload.key]),[ye]=ve.splice(Z.payload.startIndex,1);return ve.splice(Z.payload.endIndex,0,ye),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case IMPORT_ENTITIES:{const ae=Object.keys(Z.payload.entities),ve={...ie};for(const ye of ae){const be=Z.payload.entities[ye],Ke={...ie[ye]||{}};let Ye=!1;const Xe=Object.keys(be||{})||[];if(be&&Xe){for(const Qe of Xe)Ye=!0,Ke[Qe]=ie[ye][Qe]?quickMerge(ie[ye][Qe],be[Qe]):be[Qe];Ye&&(ve[ye]=Ke)}}return ve}case ADD_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]);return ve.splice(Z.payload.index||ve.length+1,0,Z.payload.reference),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case REMOVE_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]),ye=Z.payload.index||ve.findIndex(be=>be&&be.id===Z.payload.reference.id);return ye===-1||((ee=ve[ye])==null?void 0:ee.id)!==Z.payload.reference.id?ie:(ve.splice(ye,1),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}})}default:return ie}},requestReducer=(ie={},Z)=>{switch(Z.type){case REQUEST_RESOURCE:case REQUEST_OFFLINE_RESOURCE:return{...ie,[Z.payload.id]:{requestUri:Z.payload.id,loadingState:RESOURCE_LOADING,uriMismatch:!1,resourceUri:Z.payload.id}};case REQUEST_MISMATCH:return{...ie,[Z.payload.requestId]:{...ie[Z.payload.requestId]||{},uriMismatch:!0,resourceUri:Z.payload.actualId},[Z.payload.actualId]:{requestUri:Z.payload.requestId,loadingState:ie[Z.payload.requestId].loadingState,uriMismatch:!0,resourceUri:Z.payload.actualId}};case REQUEST_ERROR:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_ERROR,error:Z.payload.message}};case REQUEST_COMPLETE:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_READY,error:void 0}}}return ie},metaReducer=(ie={},Z)=>{const{id:ee,updateValue:ae,value:ve,meta:ye,key:be}=Z&&Z.payload||{};switch(Z.type){case SET_META_VALUE:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ve}}};case SET_META_VALUE_DYNAMIC:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ie[ee]&&ie[ee][ye]?ae(ie[ee][ye][be]):ae(void 0)}}};case UNSET_META_VALUE:return ie[ee]&&ie[ee][ye]&&ie[ee][ye][be]?{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:void 0}}}:ie;default:return ie}};function createBatchReducer(ie){return(Z,ee)=>ee&&ee.type===BATCH_ACTIONS?ee.payload.actions.reduce(ie,Z):ee&&ee.type===BATCH_IMPORT?ee.payload.state:ie(Z,ee)}const reducers=combineReducers({mapping:mappingReducer,entities:entitiesReducer,requests:requestReducer,meta:metaReducer}),composeEnhancers=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose;function createStore(ie={}){const{enableDevtools:Z=!0,iiifStoreName:ee="iiif",defaultState:ae={},extraMiddleware:ve=[],customReducers:ye={}}=ie,be=combineReducers({[ee]:reducers,...ye});return createStore$1(createBatchReducer(be),ae,Z?composeEnhancers(applyMiddleware(...ve)):compose(applyMiddleware(...ve)))}function mitt(ie){return{all:ie=ie||new Map,on:function(Z,ee){var ae=ie.get(Z);ae?ae.push(ee):ie.set(Z,[ee])},off:function(Z,ee){var ae=ie.get(Z);ae&&(ee?ae.splice(ae.indexOf(ee)>>>0,1):ie.set(Z,[]))},emit:function(Z,ee){var ae=ie.get(Z);ae&&ae.slice().map(function(ve){ve(ee)}),(ae=ie.get("*"))&&ae.slice().map(function(ve){ve(Z,ee)})}}}class Vault{constructor(Z,ee){Vi(this,"options");Vi(this,"store");Vi(this,"emitter");Vi(this,"isBatching",!1);Vi(this,"batchQueue",[]);Vi(this,"remoteFetcher");Vi(this,"staticFetcher");Vi(this,"defaultFetcher",Z=>fetch(Z).then(ee=>ee.json()));Vi(this,"middleware",Z=>ee=>ae=>{if(ae.type===BATCH_ACTIONS){for(const be of ae.payload.actions)this.emitter.emit(be.type,{realAction:be,state:Z.getState()});const ye=ee(ae);for(const be of ae.payload.actions)this.emitter.emit(`after:${ae.type}`,{action:ae,state:ye});return ye}this.emitter.emit(ae.type,{action:ae,state:Z.getState()});const ve=ee(ae);return this.emitter.emit(`after:${ae.type}`,{action:ae,state:ve}),ve});this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},Z||{}),this.store=ee||createStore({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=mitt(),this.remoteFetcher=createFetchHelper(this.store,this.options.customFetcher),this.staticFetcher=createFetchHelper(this.store,(ae,ve)=>ve)}batch(Z){this.isBatching=!0;try{Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}async asyncBatch(Z){this.isBatching=!0;try{await Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}modifyEntityField(Z,ee,ae){this.dispatch(entityActions.modifyEntityField({id:Z.id,type:Z.type,key:ee,value:ae}))}dispatch(Z){this.isBatching?this.batchQueue.push(Z):this.store.dispatch(Z)}serialize(Z,ee){return serialize(this.getState().iiif,Z,ee)}toPresentation2(Z){return this.serialize(Z,serializeConfigPresentation2)}toPresentation3(Z){return this.serialize(Z,serializeConfigPresentation3)}hydrate(Z,ee){return this.get(Z,ee,{skipSelfReturn:!1})}get(Z,ee,ae={}){typeof ee!="string"&&(ae=ee||{},ee=void 0);const{skipSelfReturn:ve=!0}=ae||{};if(Array.isArray(Z))return Z.map(Xe=>this.get(Xe,ae));const ye=this.getState();if(typeof Z=="string"){const Xe=ee||ye.iiif.mapping[Z];if(!Xe)return ve?null:{id:Z,type:"unknown"};Z={id:Z,type:Xe}}const be=ee||Z.type,Ke=Z.id,Ye=ye.iiif.entities[be];if(!Ye){const Xe=ye.iiif.requests[Ke];return Xe&&Xe.resourceUri!==Ke?this.get(Xe.resourceUri,ae):ve?null:Z}return Ye[Z.id]||(ve?null:Z)}select(Z){return Z(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}loadCollection(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}load(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return ee?this.staticFetcher(ae,ee):this.remoteFetcher(ae)}areInputsEqual(Z,ee){return areInputsEqual(Z,ee)}subscribe(Z,ee,ae){typeof ae>"u"&&(typeof ee>"u"||ee===!1||ee===!0)&&(ae=ee,ee=Z,Z=ye=>ye);let ve=ae?null:Z(this.store.getState());return ae||ee(ve,this),this.store.subscribe(()=>{const ye=this.store.getState(),be=Z(ye);ve!==be&&!areInputsEqual(ve,be)&&ee(be,this),ve=be})}async ensureLoaded(Z){const ee=typeof Z=="string"?Z:Z.id;this.requestStatus(ee)||await this.load(ee)}requestStatus(Z){return this.select(ee=>ee.iiif.requests[Z])}getResourceMeta(Z,ee){const ae=this.getState().iiif.meta[Z];if(ae)return ee?ae[ee]:ae}setMetaValue([Z,ee,ae],ve){this.dispatch(typeof ve=="function"?metaActions.setMetaValueDynamic({id:Z,meta:ee,key:ae,updateValue:ve}):metaActions.setMetaValue({id:Z,meta:ee,key:ae,value:ve}))}}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(ie){for(var Z=1;Zit,Object.values(it));return reactExports.createElement(nt.Provider,{value:tt},rt)}function Qe(et,Je){const rt=(Je==null?void 0:Je[ie][Ye])||Ke,it=reactExports.useContext(rt);if(it)return it;if(be!==void 0)return be;throw new Error(`\`${et}\` must be used within \`${ye}\``)}return Xe.displayName=ye+"Provider",[Xe,Qe]}const ve=()=>{const ye=ee.map(be=>reactExports.createContext(be));return function(Ke){const Ye=(Ke==null?void 0:Ke[ie])||ye;return reactExports.useMemo(()=>({[`__scope${ie}`]:{...Ke,[ie]:Ye}}),[Ke,Ye])}};return ve.scopeName=ie,[ae,$c512c27ab02ef895$var$composeContextScopes(ve,...Z)]}function $c512c27ab02ef895$var$composeContextScopes(...ie){const Z=ie[0];if(ie.length===1)return Z;const ee=()=>{const ae=ie.map(ve=>({useScope:ve(),scopeName:ve.scopeName}));return function(ye){const be=ae.reduce((Ke,{useScope:Ye,scopeName:Xe})=>{const et=Ye(ye)[`__scope${Xe}`];return{...Ke,...et}},{});return reactExports.useMemo(()=>({[`__scope${Z.scopeName}`]:be}),[be])}};return ee.scopeName=Z.scopeName,ee}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ie){const Z=reactExports.useRef(ie);return reactExports.useEffect(()=>{Z.current=ie}),reactExports.useMemo(()=>(...ee)=>{var ae;return(ae=Z.current)===null||ae===void 0?void 0:ae.call(Z,...ee)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:ie,defaultProp:Z,onChange:ee=()=>{}}){const[ae,ve]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:Z,onChange:ee}),ye=ie!==void 0,be=ye?ie:ae,Ke=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ee),Ye=reactExports.useCallback(Xe=>{if(ye){const et=typeof Xe=="function"?Xe(ie):Xe;et!==ie&&Ke(et)}else ve(Xe)},[ye,ie,ve,Ke]);return[be,Ye]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:ie,onChange:Z}){const ee=reactExports.useState(ie),[ae]=ee,ve=reactExports.useRef(ae),ye=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Z);return reactExports.useEffect(()=>{ve.current!==ae&&(ye(ae),ve.current=ae)},[ae,ve,ye]),ee}const $9f79659886946c16$export$e5c5a5f917a5871c=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:()=>{};function $6ed0406888f73fc4$var$setRef(ie,Z){typeof ie=="function"?ie(Z):ie!=null&&(ie.current=Z)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...ie){return Z=>ie.forEach(ee=>$6ed0406888f73fc4$var$setRef(ee,Z))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...ie){return reactExports.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...ie),ie)}const $5e63c961fc1ce211$export$8c6ed5c666ac1360=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie,ve=reactExports.Children.toArray(ee),ye=ve.find($5e63c961fc1ce211$var$isSlottable);if(ye){const be=ye.props.children,Ke=ve.map(Ye=>Ye===ye?reactExports.Children.count(be)>1?reactExports.Children.only(null):reactExports.isValidElement(be)?be.props.children:null:Ye);return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),reactExports.isValidElement(be)?reactExports.cloneElement(be,void 0,Ke):null)}return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),ee)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";const $5e63c961fc1ce211$var$SlotClone=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie;return reactExports.isValidElement(ee)?reactExports.cloneElement(ee,{...$5e63c961fc1ce211$var$mergeProps(ae,ee.props),ref:Z?$6ed0406888f73fc4$export$43e446d32b3d21af(Z,ee.ref):ee.ref}):reactExports.Children.count(ee)>1?reactExports.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:ie})=>reactExports.createElement(reactExports.Fragment,null,ie);function $5e63c961fc1ce211$var$isSlottable(ie){return reactExports.isValidElement(ie)&&ie.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(ie,Z){const ee={...Z};for(const ae in Z){const ve=ie[ae],ye=Z[ae];/^on[A-Z]/.test(ae)?ve&&ye?ee[ae]=(...Ke)=>{ye(...Ke),ve(...Ke)}:ve&&(ee[ae]=ve):ae==="style"?ee[ae]={...ve,...ye}:ae==="className"&&(ee[ae]=[ve,ye].filter(Boolean).join(" "))}return{...ie,...ee}}const $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((ie,Z)=>{const ee=reactExports.forwardRef((ae,ve)=>{const{asChild:ye,...be}=ae,Ke=ye?$5e63c961fc1ce211$export$8c6ed5c666ac1360:Z;return reactExports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),reactExports.createElement(Ke,_extends$1({},be,{ref:ve}))});return ee.displayName=`Primitive.${Z}`,{...ie,[Z]:ee}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(ie,Z){ie&&reactDomExports.flushSync(()=>ie.dispatchEvent(Z))}function $fe963b355347cc68$export$3e6543de14f8614f(ie,Z){return reactExports.useReducer((ee,ae)=>{const ve=Z[ee][ae];return ve??ee},ie)}const $921a889cee6df7e8$export$99c2b779aa4e8b8b=ie=>{const{present:Z,children:ee}=ie,ae=$921a889cee6df7e8$var$usePresence(Z),ve=typeof ee=="function"?ee({present:ae.isPresent}):reactExports.Children.only(ee),ye=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(ae.ref,ve.ref);return typeof ee=="function"||ae.isPresent?reactExports.cloneElement(ve,{ref:ye}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(ie){const[Z,ee]=reactExports.useState(),ae=reactExports.useRef({}),ve=reactExports.useRef(ie),ye=reactExports.useRef("none"),be=ie?"mounted":"unmounted",[Ke,Ye]=$fe963b355347cc68$export$3e6543de14f8614f(be,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports.useEffect(()=>{const Xe=$921a889cee6df7e8$var$getAnimationName(ae.current);ye.current=Ke==="mounted"?Xe:"none"},[Ke]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const Xe=ae.current,Qe=ve.current;if(Qe!==ie){const Je=ye.current,rt=$921a889cee6df7e8$var$getAnimationName(Xe);ie?Ye("MOUNT"):rt==="none"||(Xe==null?void 0:Xe.display)==="none"?Ye("UNMOUNT"):Ye(Qe&&Je!==rt?"ANIMATION_OUT":"UNMOUNT"),ve.current=ie}},[ie,Ye]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(Z){const Xe=et=>{const rt=$921a889cee6df7e8$var$getAnimationName(ae.current).includes(et.animationName);et.target===Z&&rt&&reactDomExports.flushSync(()=>Ye("ANIMATION_END"))},Qe=et=>{et.target===Z&&(ye.current=$921a889cee6df7e8$var$getAnimationName(ae.current))};return Z.addEventListener("animationstart",Qe),Z.addEventListener("animationcancel",Xe),Z.addEventListener("animationend",Xe),()=>{Z.removeEventListener("animationstart",Qe),Z.removeEventListener("animationcancel",Xe),Z.removeEventListener("animationend",Xe)}}else Ye("ANIMATION_END")},[Z,Ye]),{isPresent:["mounted","unmountSuspended"].includes(Ke),ref:reactExports.useCallback(Xe=>{Xe&&(ae.current=getComputedStyle(Xe)),ee(Xe)},[])}}function $921a889cee6df7e8$var$getAnimationName(ie){return(ie==null?void 0:ie.animationName)||"none"}const $1746a345f3d73bb7$var$useReactId=$2AODx$react.useId||(()=>{});let $1746a345f3d73bb7$var$count=0;function $1746a345f3d73bb7$export$f680877a34711e37(ie){const[Z,ee]=reactExports.useState($1746a345f3d73bb7$var$useReactId());return $9f79659886946c16$export$e5c5a5f917a5871c(()=>{ie||ee(ae=>ae??String($1746a345f3d73bb7$var$count++))},[ie]),ie||(Z?`radix-${Z}`:"")}const $409067139f391064$var$COLLAPSIBLE_NAME="Collapsible",[$409067139f391064$var$createCollapsibleContext,$409067139f391064$export$952b32dcbe73087a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME),[$409067139f391064$var$CollapsibleProvider,$409067139f391064$var$useCollapsibleContext]=$409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME),$409067139f391064$export$6eb0f7ddcda6131f=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,open:ae,defaultOpen:ve,disabled:ye,onOpenChange:be,...Ke}=ie,[Ye=!1,Xe]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,defaultProp:ve,onChange:be});return reactExports.createElement($409067139f391064$var$CollapsibleProvider,{scope:ee,disabled:ye,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:Ye,onOpenToggle:reactExports.useCallback(()=>Xe(Qe=>!Qe),[Xe])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(Ye),"data-disabled":ye?"":void 0},Ke,{ref:Z})))}),$409067139f391064$var$TRIGGER_NAME="CollapsibleTrigger",$409067139f391064$export$c135dce7b15bbbdc=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME,ee);return reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button","aria-controls":ve.contentId,"aria-expanded":ve.open||!1,"data-state":$409067139f391064$var$getState(ve.open),"data-disabled":ve.disabled?"":void 0,disabled:ve.disabled},ae,{ref:Z,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onClick,ve.onOpenToggle)}))}),$409067139f391064$var$CONTENT_NAME="CollapsibleContent",$409067139f391064$export$aadde00976f34151=reactExports.forwardRef((ie,Z)=>{const{forceMount:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ie.__scopeCollapsible);return reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ee||ve.open},({present:ye})=>reactExports.createElement($409067139f391064$var$CollapsibleContentImpl,_extends$1({},ae,{ref:Z,present:ye})))}),$409067139f391064$var$CollapsibleContentImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,present:ae,children:ve,...ye}=ie,be=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ee),[Ke,Ye]=reactExports.useState(ae),Xe=reactExports.useRef(null),Qe=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,Xe),et=reactExports.useRef(0),Je=et.current,rt=reactExports.useRef(0),it=rt.current,nt=be.open||Ke,tt=reactExports.useRef(nt),st=reactExports.useRef();return reactExports.useEffect(()=>{const ot=requestAnimationFrame(()=>tt.current=!1);return()=>cancelAnimationFrame(ot)},[]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const ot=Xe.current;if(ot){st.current=st.current||{transitionDuration:ot.style.transitionDuration,animationName:ot.style.animationName},ot.style.transitionDuration="0s",ot.style.animationName="none";const ut=ot.getBoundingClientRect();et.current=ut.height,rt.current=ut.width,tt.current||(ot.style.transitionDuration=st.current.transitionDuration,ot.style.animationName=st.current.animationName),Ye(ae)}},[be.open,ae]),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(be.open),"data-disabled":be.disabled?"":void 0,id:be.contentId,hidden:!nt},ye,{ref:Qe,style:{"--radix-collapsible-content-height":Je?`${Je}px`:void 0,"--radix-collapsible-content-width":it?`${it}px`:void 0,...ie.style}}),nt&&ve)});function $409067139f391064$var$getState(ie){return ie?"open":"closed"}const $409067139f391064$export$be92b6f5f03c0fe9=$409067139f391064$export$6eb0f7ddcda6131f,$409067139f391064$export$41fb9f06171c75f4=$409067139f391064$export$c135dce7b15bbbdc,$409067139f391064$export$7c6e2c02157bb7d2=$409067139f391064$export$aadde00976f34151,ErrorBoundaryContext=reactExports.createContext(null),initialState={didCatch:!1,error:null};class ErrorBoundary extends reactExports.Component{constructor(Z){super(Z),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=initialState}static getDerivedStateFromError(Z){return{didCatch:!0,error:Z}}resetErrorBoundary(){const{error:Z}=this.state;if(Z!==null){for(var ee,ae,ve=arguments.length,ye=new Array(ve),be=0;be0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ie.length!==Z.length||ie.some((ee,ae)=>!Object.is(ee,Z[ae]))}var e="colors",t="sizes",r="space",n={gap:r,gridGap:r,columnGap:r,gridColumnGap:r,rowGap:r,gridRowGap:r,inset:r,insetBlock:r,insetBlockEnd:r,insetBlockStart:r,insetInline:r,insetInlineEnd:r,insetInlineStart:r,margin:r,marginTop:r,marginRight:r,marginBottom:r,marginLeft:r,marginBlock:r,marginBlockEnd:r,marginBlockStart:r,marginInline:r,marginInlineEnd:r,marginInlineStart:r,padding:r,paddingTop:r,paddingRight:r,paddingBottom:r,paddingLeft:r,paddingBlock:r,paddingBlockEnd:r,paddingBlockStart:r,paddingInline:r,paddingInlineEnd:r,paddingInlineStart:r,top:r,right:r,bottom:r,left:r,scrollMargin:r,scrollMarginTop:r,scrollMarginRight:r,scrollMarginBottom:r,scrollMarginLeft:r,scrollMarginX:r,scrollMarginY:r,scrollMarginBlock:r,scrollMarginBlockEnd:r,scrollMarginBlockStart:r,scrollMarginInline:r,scrollMarginInlineEnd:r,scrollMarginInlineStart:r,scrollPadding:r,scrollPaddingTop:r,scrollPaddingRight:r,scrollPaddingBottom:r,scrollPaddingLeft:r,scrollPaddingX:r,scrollPaddingY:r,scrollPaddingBlock:r,scrollPaddingBlockEnd:r,scrollPaddingBlockStart:r,scrollPaddingInline:r,scrollPaddingInlineEnd:r,scrollPaddingInlineStart:r,fontSize:"fontSizes",background:e,backgroundColor:e,backgroundImage:e,borderImage:e,border:e,borderBlock:e,borderBlockEnd:e,borderBlockStart:e,borderBottom:e,borderBottomColor:e,borderColor:e,borderInline:e,borderInlineEnd:e,borderInlineStart:e,borderLeft:e,borderLeftColor:e,borderRight:e,borderRightColor:e,borderTop:e,borderTopColor:e,caretColor:e,color:e,columnRuleColor:e,fill:e,outline:e,outlineColor:e,stroke:e,textDecorationColor:e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:t,minBlockSize:t,maxBlockSize:t,inlineSize:t,minInlineSize:t,maxInlineSize:t,width:t,minWidth:t,maxWidth:t,height:t,minHeight:t,maxHeight:t,flexBasis:t,gridTemplateColumns:t,gridTemplateRows:t,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},i=(ie,Z)=>typeof Z=="function"?{"()":Function.prototype.toString.call(Z)}:Z,o=()=>{const ie=Object.create(null);return(Z,ee,...ae)=>{const ve=(ye=>JSON.stringify(ye,i))(Z);return ve in ie?ie[ve]:ie[ve]=ee(Z,...ae)}},l=Symbol.for("sxs.internal"),s=(ie,Z)=>Object.defineProperties(ie,Object.getOwnPropertyDescriptors(Z)),a=ie=>{for(const Z in ie)return!0;return!1},{hasOwnProperty:c}=Object.prototype,d=ie=>ie.includes("-")?ie:ie.replace(/[A-Z]/g,Z=>"-"+Z.toLowerCase()),g=/\s+(?![^()]*\))/,p=ie=>Z=>ie(...typeof Z=="string"?String(Z).split(g):[Z]),u={appearance:ie=>({WebkitAppearance:ie,appearance:ie}),backfaceVisibility:ie=>({WebkitBackfaceVisibility:ie,backfaceVisibility:ie}),backdropFilter:ie=>({WebkitBackdropFilter:ie,backdropFilter:ie}),backgroundClip:ie=>({WebkitBackgroundClip:ie,backgroundClip:ie}),boxDecorationBreak:ie=>({WebkitBoxDecorationBreak:ie,boxDecorationBreak:ie}),clipPath:ie=>({WebkitClipPath:ie,clipPath:ie}),content:ie=>({content:ie.includes('"')||ie.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(ie)?ie:`"${ie}"`}),hyphens:ie=>({WebkitHyphens:ie,hyphens:ie}),maskImage:ie=>({WebkitMaskImage:ie,maskImage:ie}),maskSize:ie=>({WebkitMaskSize:ie,maskSize:ie}),tabSize:ie=>({MozTabSize:ie,tabSize:ie}),textSizeAdjust:ie=>({WebkitTextSizeAdjust:ie,textSizeAdjust:ie}),userSelect:ie=>({WebkitUserSelect:ie,userSelect:ie}),marginBlock:p((ie,Z)=>({marginBlockStart:ie,marginBlockEnd:Z||ie})),marginInline:p((ie,Z)=>({marginInlineStart:ie,marginInlineEnd:Z||ie})),maxSize:p((ie,Z)=>({maxBlockSize:ie,maxInlineSize:Z||ie})),minSize:p((ie,Z)=>({minBlockSize:ie,minInlineSize:Z||ie})),paddingBlock:p((ie,Z)=>({paddingBlockStart:ie,paddingBlockEnd:Z||ie})),paddingInline:p((ie,Z)=>({paddingInlineStart:ie,paddingInlineEnd:Z||ie}))},h=/([\d.]+)([^]*)/,f=(ie,Z)=>ie.length?ie.reduce((ee,ae)=>(ee.push(...Z.map(ve=>ve.includes("&")?ve.replace(/&/g,/[ +>|~]/.test(ae)&&/&.*&/.test(ve)?`:is(${ae})`:ae):ae+" "+ve)),ee),[]):Z,m$1=(ie,Z)=>ie in b&&typeof Z=="string"?Z.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(ee,ae,ve,ye)=>ae+(ve==="stretch"?`-moz-available${ye};${d(ie)}:${ae}-webkit-fill-available`:`-moz-fit-content${ye};${d(ie)}:${ae}fit-content`)+ye):String(Z),b={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S$1=ie=>ie?ie+"-":"",k$1=(ie,Z,ee)=>ie.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(ae,ve,ye,be,Ke)=>be=="$"==!!ye?ae:(ve||be=="--"?"calc(":"")+"var(--"+(be==="$"?S$1(Z)+(Ke.includes("$")?"":S$1(ee))+Ke.replace(/\$/g,"-"):Ke)+")"+(ve||be=="--"?"*"+(ve||"")+(ye||"1")+")":"")),y=/\s*,\s*(?![^()]*\))/,B=Object.prototype.toString,$=(ie,Z,ee,ae,ve)=>{let ye,be,Ke;const Ye=(Xe,Qe,et)=>{let Je,rt;const it=nt=>{for(Je in nt){const ot=Je.charCodeAt(0)===64,ut=ot&&Array.isArray(nt[Je])?nt[Je]:[nt[Je]];for(rt of ut){const ft=/[A-Z]/.test(st=Je)?st:st.replace(/-[^]/g,Xr=>Xr[1].toUpperCase()),pt=typeof rt=="object"&&rt&&rt.toString===B&&(!ae.utils[ft]||!Qe.length);if(ft in ae.utils&&!pt){const Xr=ae.utils[ft];if(Xr!==be){be=Xr,it(Xr(rt)),be=null;continue}}else if(ft in u){const Xr=u[ft];if(Xr!==Ke){Ke=Xr,it(Xr(rt)),Ke=null;continue}}if(ot&&(tt=Je.slice(1)in ae.media?"@media "+ae.media[Je.slice(1)]:Je,Je=tt.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(Xr,mt,Yr,ri,Zr,_r)=>{const Kr=h.test(mt),si=.0625*(Kr?-1:1),[oi,Qr]=Kr?[ri,mt]:[mt,ri];return"("+(Yr[0]==="="?"":Yr[0]===">"===Kr?"max-":"min-")+oi+":"+(Yr[0]!=="="&&Yr.length===1?Qr.replace(h,(ii,ti,ni)=>Number(ti)+si*(Yr===">"?1:-1)+ni):Qr)+(Zr?") and ("+(Zr[0]===">"?"min-":"max-")+oi+":"+(Zr.length===1?_r.replace(h,(ii,ti,ni)=>Number(ti)+si*(Zr===">"?-1:1)+ni):_r):"")+")"})),pt){const Xr=ot?et.concat(Je):[...et],mt=ot?[...Qe]:f(Qe,Je.split(y));ye!==void 0&&ve(x$1(...ye)),ye=void 0,Ye(rt,mt,Xr)}else ye===void 0&&(ye=[[],Qe,et]),Je=ot||Je.charCodeAt(0)!==36?Je:`--${S$1(ae.prefix)}${Je.slice(1).replace(/\$/g,"-")}`,rt=pt?rt:typeof rt=="number"?rt&&ft in I?String(rt)+"px":String(rt):k$1(m$1(ft,rt??""),ae.prefix,ae.themeMap[ft]),ye[0].push(`${ot?`${Je} `:`${d(Je)}:`}${rt}`)}}var tt,st};it(Xe),ye!==void 0&&ve(x$1(...ye)),ye=void 0};Ye(ie,Z,ee)},x$1=(ie,Z,ee)=>`${ee.map(ae=>`${ae}{`).join("")}${Z.length?`${Z.join(",")}{`:""}${ie.join(";")}${Z.length?"}":""}${Array(ee.length?ee.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},R$1=ie=>String.fromCharCode(ie+(ie>25?39:97)),z$1=ie=>(Z=>{let ee,ae="";for(ee=Math.abs(Z);ee>52;ee=ee/52|0)ae=R$1(ee%52)+ae;return R$1(ee%52)+ae})(((Z,ee)=>{let ae=ee.length;for(;ae;)Z=33*Z^ee.charCodeAt(--ae);return Z})(5381,JSON.stringify(ie))>>>0),W$1=["themed","global","styled","onevar","resonevar","allvar","inline"],j$1=ie=>{if(ie.href&&!ie.href.startsWith(location.origin))return!1;try{return!!ie.cssRules}catch{return!1}},E=ie=>{let Z;const ee=()=>{const{cssRules:ve}=Z.sheet;return[].map.call(ve,(ye,be)=>{const{cssText:Ke}=ye;let Ye="";if(Ke.startsWith("--sxs"))return"";if(ve[be-1]&&(Ye=ve[be-1].cssText).startsWith("--sxs")){if(!ye.cssRules.length)return"";for(const Xe in Z.rules)if(Z.rules[Xe].group===ye)return`--sxs{--sxs:${[...Z.rules[Xe].cache].join(" ")}}${Ke}`;return ye.cssRules.length?`${Ye}${Ke}`:""}return Ke}).join("")},ae=()=>{if(Z){const{rules:Ke,sheet:Ye}=Z;if(!Ye.deleteRule){for(;Object(Object(Ye.cssRules)[0]).type===3;)Ye.cssRules.splice(0,1);Ye.cssRules=[]}for(const Xe in Ke)delete Ke[Xe]}const ve=Object(ie).styleSheets||[];for(const Ke of ve)if(j$1(Ke)){for(let Ye=0,Xe=Ke.cssRules;Xe[Ye];++Ye){const Qe=Object(Xe[Ye]);if(Qe.type!==1)continue;const et=Object(Xe[Ye+1]);if(et.type!==4)continue;++Ye;const{cssText:Je}=Qe;if(!Je.startsWith("--sxs"))continue;const rt=Je.slice(14,-3).trim().split(/\s+/),it=W$1[rt[0]];it&&(Z||(Z={sheet:Ke,reset:ae,rules:{},toString:ee}),Z.rules[it]={group:et,index:Ye,cache:new Set(rt)})}if(Z)break}if(!Z){const Ke=(Ye,Xe)=>({type:Xe,cssRules:[],insertRule(Qe,et){this.cssRules.splice(et,0,Ke(Qe,{import:3,undefined:1}[(Qe.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return Ye==="@media{}"?`@media{${[].map.call(this.cssRules,Qe=>Qe.cssText).join("")}}`:Ye}});Z={sheet:ie?(ie.head||ie).appendChild(document.createElement("style")).sheet:Ke("","text/css"),rules:{},reset:ae,toString:ee}}const{sheet:ye,rules:be}=Z;for(let Ke=W$1.length-1;Ke>=0;--Ke){const Ye=W$1[Ke];if(!be[Ye]){const Xe=W$1[Ke+1],Qe=be[Xe]?be[Xe].index:ye.cssRules.length;ye.insertRule("@media{}",Qe),ye.insertRule(`--sxs{--sxs:${Ke}}`,Qe),be[Ye]={group:ye.cssRules[Qe+1],index:Qe,cache:new Set([Ke])}}v(be[Ye])}};return ae(),Z},v=ie=>{const Z=ie.group;let ee=Z.cssRules.length;ie.apply=ae=>{try{Z.insertRule(ae,ee),++ee}catch{}}},T$1=Symbol(),w=o(),M=(ie,Z)=>w(ie,()=>(...ee)=>{let ae={type:null,composers:new Set};for(const ve of ee)if(ve!=null)if(ve[l]){ae.type==null&&(ae.type=ve[l].type);for(const ye of ve[l].composers)ae.composers.add(ye)}else ve.constructor!==Object||ve.$$typeof?ae.type==null&&(ae.type=ve):ae.composers.add(C(ve,ie));return ae.type==null&&(ae.type="span"),ae.composers.size||ae.composers.add(["PJLV",{},[],[],{},[]]),P(ie,ae,Z)}),C=({variants:ie,compoundVariants:Z,defaultVariants:ee,...ae},ve)=>{const ye=`${S$1(ve.prefix)}c-${z$1(ae)}`,be=[],Ke=[],Ye=Object.create(null),Xe=[];for(const Je in ee)Ye[Je]=String(ee[Je]);if(typeof ie=="object"&&ie)for(const Je in ie){Qe=Ye,et=Je,c.call(Qe,et)||(Ye[Je]="undefined");const rt=ie[Je];for(const it in rt){const nt={[Je]:String(it)};String(it)==="undefined"&&Xe.push(Je);const tt=rt[it],st=[nt,tt,!a(tt)];be.push(st)}}var Qe,et;if(typeof Z=="object"&&Z)for(const Je of Z){let{css:rt,...it}=Je;rt=typeof rt=="object"&&rt||{};for(const tt in it)it[tt]=String(it[tt]);const nt=[it,rt,!a(rt)];Ke.push(nt)}return[ye,ae,be,Ke,Ye,Xe]},P=(ie,Z,ee)=>{const[ae,ve,ye,be]=L$1(Z.composers),Ke=typeof Z.type=="function"||Z.type.$$typeof?(et=>{function Je(){for(let rt=0;rtJe.rules[rt]={apply:it=>Je[T$1].push([rt,it])}),Je})(ee):null,Ye=(Ke||ee).rules,Xe=`.${ae}${ve.length>1?`:where(.${ve.slice(1).join(".")})`:""}`,Qe=et=>{et=typeof et=="object"&&et||A;const{css:Je,...rt}=et,it={};for(const st in ye)if(delete rt[st],st in et){let ot=et[st];typeof ot=="object"&&ot?it[st]={"@initial":ye[st],...ot}:(ot=String(ot),it[st]=ot!=="undefined"||be.has(st)?ot:ye[st])}else it[st]=ye[st];const nt=new Set([...ve]);for(const[st,ot,ut,ft]of Z.composers){ee.rules.styled.cache.has(st)||(ee.rules.styled.cache.add(st),$(ot,[`.${st}`],[],ie,mt=>{Ye.styled.apply(mt)}));const pt=O$1(ut,it,ie.media),Xr=O$1(ft,it,ie.media,!0);for(const mt of pt)if(mt!==void 0)for(const[Yr,ri,Zr]of mt){const _r=`${st}-${z$1(ri)}-${Yr}`;nt.add(_r);const Kr=(Zr?ee.rules.resonevar:ee.rules.onevar).cache,si=Zr?Ye.resonevar:Ye.onevar;Kr.has(_r)||(Kr.add(_r),$(ri,[`.${_r}`],[],ie,oi=>{si.apply(oi)}))}for(const mt of Xr)if(mt!==void 0)for(const[Yr,ri]of mt){const Zr=`${st}-${z$1(ri)}-${Yr}`;nt.add(Zr),ee.rules.allvar.cache.has(Zr)||(ee.rules.allvar.cache.add(Zr),$(ri,[`.${Zr}`],[],ie,_r=>{Ye.allvar.apply(_r)}))}}if(typeof Je=="object"&&Je){const st=`${ae}-i${z$1(Je)}-css`;nt.add(st),ee.rules.inline.cache.has(st)||(ee.rules.inline.cache.add(st),$(Je,[`.${st}`],[],ie,ot=>{Ye.inline.apply(ot)}))}for(const st of String(et.className||"").trim().split(/\s+/))st&&nt.add(st);const tt=rt.className=[...nt].join(" ");return{type:Z.type,className:tt,selector:Xe,props:rt,toString:()=>tt,deferredInjector:Ke}};return s(Qe,{className:ae,selector:Xe,[l]:Z,toString:()=>(ee.rules.styled.cache.has(ae)||Qe(),ae)})},L$1=ie=>{let Z="";const ee=[],ae={},ve=[];for(const[ye,,,,be,Ke]of ie){Z===""&&(Z=ye),ee.push(ye),ve.push(...Ke);for(const Ye in be){const Xe=be[Ye];(ae[Ye]===void 0||Xe!=="undefined"||Ke.includes(Xe))&&(ae[Ye]=Xe)}}return[Z,ee,ae,new Set(ve)]},O$1=(ie,Z,ee,ae)=>{const ve=[];e:for(let[ye,be,Ke]of ie){if(Ke)continue;let Ye,Xe=0,Qe=!1;for(Ye in ye){const et=ye[Ye];let Je=Z[Ye];if(Je!==et){if(typeof Je!="object"||!Je)continue e;{let rt,it,nt=0;for(const tt in Je){if(et===String(Je[tt])){if(tt!=="@initial"){const st=tt.slice(1);(it=it||[]).push(st in ee?ee[st]:tt.replace(/^@media ?/,"")),Qe=!0}Xe+=nt,rt=!0}++nt}if(it&&it.length&&(be={["@media "+it.join(", ")]:be}),!rt)continue e}}}(ve[Xe]=ve[Xe]||[]).push([ae?"cv":`${Ye}-${ye[Ye]}`,be,Qe])}return ve},A={},N$1=o(),D$1=(ie,Z)=>N$1(ie,()=>(...ee)=>{const ae=()=>{for(let ve of ee){ve=typeof ve=="object"&&ve||{};let ye=z$1(ve);if(!Z.rules.global.cache.has(ye)){if(Z.rules.global.cache.add(ye),"@import"in ve){let be=[].indexOf.call(Z.sheet.cssRules,Z.rules.themed.group)-1;for(let Ke of[].concat(ve["@import"]))Ke=Ke.includes('"')||Ke.includes("'")?Ke:`"${Ke}"`,Z.sheet.insertRule(`@import ${Ke};`,be++);delete ve["@import"]}$(ve,[],[],ie,be=>{Z.rules.global.apply(be)})}}return""};return s(ae,{toString:ae})}),H=o(),V=(ie,Z)=>H(ie,()=>ee=>{const ae=`${S$1(ie.prefix)}k-${z$1(ee)}`,ve=()=>{if(!Z.rules.global.cache.has(ae)){Z.rules.global.cache.add(ae);const ye=[];$(ee,[],[],ie,Ke=>ye.push(Ke));const be=`@keyframes ${ae}{${ye.join("")}}`;Z.rules.global.apply(be)}return ae};return s(ve,{get name(){return ve()},toString:ve})}),G=class{constructor(ie,Z,ee,ae){this.token=ie==null?"":String(ie),this.value=Z==null?"":String(Z),this.scale=ee==null?"":String(ee),this.prefix=ae==null?"":String(ae)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S$1(this.prefix)+S$1(this.scale)+this.token}toString(){return this.computedValue}},F=o(),J$1=(ie,Z)=>F(ie,()=>(ee,ae)=>{ae=typeof ee=="object"&&ee||Object(ae);const ve=`.${ee=(ee=typeof ee=="string"?ee:"")||`${S$1(ie.prefix)}t-${z$1(ae)}`}`,ye={},be=[];for(const Ye in ae){ye[Ye]={};for(const Xe in ae[Ye]){const Qe=`--${S$1(ie.prefix)}${Ye}-${Xe}`,et=k$1(String(ae[Ye][Xe]),ie.prefix,Ye);ye[Ye][Xe]=new G(Xe,et,Ye,ie.prefix),be.push(`${Qe}:${et}`)}}const Ke=()=>{if(be.length&&!Z.rules.themed.cache.has(ee)){Z.rules.themed.cache.add(ee);const Ye=`${ae===ie.theme?":root,":""}.${ee}{${be.join(";")}}`;Z.rules.themed.apply(Ye)}return ee};return{...ye,get className(){return Ke()},selector:ve,toString:Ke}}),U=o(),X$1,Y$1=o(),q=ie=>{const Z=(ee=>{let ae=!1;const ve=U(ee,ye=>{ae=!0;const be="prefix"in(ye=typeof ye=="object"&&ye||{})?String(ye.prefix):"",Ke=typeof ye.media=="object"&&ye.media||{},Ye=typeof ye.root=="object"?ye.root||null:globalThis.document||null,Xe=typeof ye.theme=="object"&&ye.theme||{},Qe={prefix:be,media:Ke,theme:Xe,themeMap:typeof ye.themeMap=="object"&&ye.themeMap||{...n},utils:typeof ye.utils=="object"&&ye.utils||{}},et=E(Ye),Je={css:M(Qe,et),globalCss:D$1(Qe,et),keyframes:V(Qe,et),createTheme:J$1(Qe,et),reset(){et.reset(),Je.theme.toString()},theme:{},sheet:et,config:Qe,prefix:be,getCssText:et.toString,toString:et.toString};return String(Je.theme=Je.createTheme(Xe)),Je});return ae||ve.reset(),ve})(ie);return Z.styled=(({config:ee,sheet:ae})=>Y$1(ee,()=>{const ve=M(ee,ae);return(...ye)=>{const be=ve(...ye),Ke=be[l].type,Ye=e$1.forwardRef((Xe,Qe)=>{const et=Xe&&Xe.as||Ke,{props:Je,deferredInjector:rt}=be(Xe);return delete Je.as,Je.ref=Qe,rt?e$1.createElement(e$1.Fragment,null,e$1.createElement(et,Je),e$1.createElement(rt,null)):e$1.createElement(et,Je)});return Ye.className=be.className,Ye.displayName=`Styled.${Ke.displayName||Ke.name||Ke}`,Ye.selector=be.selector,Ye.toString=()=>be.selector,Ye[l]=be[l],Ye}}))(Z),Z},K$1=()=>X$1||(X$1=q()),Q$1=(...ie)=>K$1().createTheme(...ie);function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ie){const Z=ie+"CollectionProvider",[ee,ae]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(Z),[ve,ye]=ee(Z,{collectionRef:{current:null},itemMap:new Map}),be=rt=>{const{scope:it,children:nt}=rt,tt=e$1.useRef(null),st=e$1.useRef(new Map).current;return e$1.createElement(ve,{scope:it,itemMap:st,collectionRef:tt},nt)},Ke=ie+"CollectionSlot",Ye=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt}=rt,st=ye(Ke,nt),ot=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,st.collectionRef);return e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{ref:ot},tt)}),Xe=ie+"CollectionItemSlot",Qe="data-radix-collection-item",et=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt,...st}=rt,ot=e$1.useRef(null),ut=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,ot),ft=ye(Xe,nt);return e$1.useEffect(()=>(ft.itemMap.set(ot,{ref:ot,...st}),()=>void ft.itemMap.delete(ot))),e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{[Qe]:"",ref:ut},tt)});function Je(rt){const it=ye(ie+"CollectionConsumer",rt);return e$1.useCallback(()=>{const tt=it.collectionRef.current;if(!tt)return[];const st=Array.from(tt.querySelectorAll(`[${Qe}]`));return Array.from(it.itemMap.values()).sort((ft,pt)=>st.indexOf(ft.ref.current)-st.indexOf(pt.ref.current))},[it.collectionRef,it.itemMap])}return[{Provider:be,Slot:Ye,ItemSlot:et},Je,ae]}const $f631663db3294ace$var$DirectionContext=reactExports.createContext(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(ie){const Z=reactExports.useContext($f631663db3294ace$var$DirectionContext);return ie||Z||"ltr"}const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",$d7bdfb9eb0fdf311$var$EVENT_OPTIONS={bubbles:!1,cancelable:!0},$d7bdfb9eb0fdf311$var$GROUP_NAME="RovingFocusGroup",[$d7bdfb9eb0fdf311$var$Collection,$d7bdfb9eb0fdf311$var$useCollection,$d7bdfb9eb0fdf311$var$createCollectionScope]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME),[$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext,$d7bdfb9eb0fdf311$export$c7109489551a4f4]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME,[$d7bdfb9eb0fdf311$var$createCollectionScope]),[$d7bdfb9eb0fdf311$var$RovingFocusProvider,$d7bdfb9eb0fdf311$var$useRovingFocusContext]=$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME),$d7bdfb9eb0fdf311$export$8699f7c8af148338=reactExports.forwardRef((ie,Z)=>reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Provider,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Slot,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,_extends$1({},ie,{ref:Z}))))),$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,orientation:ae,loop:ve=!1,dir:ye,currentTabStopId:be,defaultCurrentTabStopId:Ke,onCurrentTabStopIdChange:Ye,onEntryFocus:Xe,...Qe}=ie,et=reactExports.useRef(null),Je=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,et),rt=$f631663db3294ace$export$b39126d51d94e6f3(ye),[it=null,nt]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:be,defaultProp:Ke,onChange:Ye}),[tt,st]=reactExports.useState(!1),ot=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Xe),ut=$d7bdfb9eb0fdf311$var$useCollection(ee),ft=reactExports.useRef(!1),[pt,Xr]=reactExports.useState(0);return reactExports.useEffect(()=>{const mt=et.current;if(mt)return mt.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot),()=>mt.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot)},[ot]),reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider,{scope:ee,orientation:ae,dir:rt,loop:ve,currentTabStopId:it,onItemFocus:reactExports.useCallback(mt=>nt(mt),[nt]),onItemShiftTab:reactExports.useCallback(()=>st(!0),[]),onFocusableItemAdd:reactExports.useCallback(()=>Xr(mt=>mt+1),[]),onFocusableItemRemove:reactExports.useCallback(()=>Xr(mt=>mt-1),[])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({tabIndex:tt||pt===0?-1:0,"data-orientation":ae},Qe,{ref:Je,style:{outline:"none",...ie.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,()=>{ft.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,mt=>{const Yr=!ft.current;if(mt.target===mt.currentTarget&&Yr&&!tt){const ri=new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,$d7bdfb9eb0fdf311$var$EVENT_OPTIONS);if(mt.currentTarget.dispatchEvent(ri),!ri.defaultPrevented){const Zr=ut().filter(Qr=>Qr.focusable),_r=Zr.find(Qr=>Qr.active),Kr=Zr.find(Qr=>Qr.id===it),oi=[_r,Kr,...Zr].filter(Boolean).map(Qr=>Qr.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(oi)}}ft.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onBlur,()=>st(!1))})))}),$d7bdfb9eb0fdf311$var$ITEM_NAME="RovingFocusGroupItem",$d7bdfb9eb0fdf311$export$ab9df7c53fe8454=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,focusable:ae=!0,active:ve=!1,tabStopId:ye,...be}=ie,Ke=$1746a345f3d73bb7$export$f680877a34711e37(),Ye=ye||Ke,Xe=$d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME,ee),Qe=Xe.currentTabStopId===Ye,et=$d7bdfb9eb0fdf311$var$useCollection(ee),{onFocusableItemAdd:Je,onFocusableItemRemove:rt}=Xe;return reactExports.useEffect(()=>{if(ae)return Je(),()=>rt()},[ae,Je,rt]),reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot,{scope:ee,id:Ye,focusable:ae,active:ve},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,_extends$1({tabIndex:Qe?0:-1,"data-orientation":Xe.orientation},be,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,it=>{ae?Xe.onItemFocus(Ye):it.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>Xe.onItemFocus(Ye)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,it=>{if(it.key==="Tab"&&it.shiftKey){Xe.onItemShiftTab();return}if(it.target!==it.currentTarget)return;const nt=$d7bdfb9eb0fdf311$var$getFocusIntent(it,Xe.orientation,Xe.dir);if(nt!==void 0){it.preventDefault();let st=et().filter(ot=>ot.focusable).map(ot=>ot.ref.current);if(nt==="last")st.reverse();else if(nt==="prev"||nt==="next"){nt==="prev"&&st.reverse();const ot=st.indexOf(it.currentTarget);st=Xe.loop?$d7bdfb9eb0fdf311$var$wrapArray(st,ot+1):st.slice(ot+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(st))}})})))}),$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie,Z){return Z!=="rtl"?ie:ie==="ArrowLeft"?"ArrowRight":ie==="ArrowRight"?"ArrowLeft":ie}function $d7bdfb9eb0fdf311$var$getFocusIntent(ie,Z,ee){const ae=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie.key,ee);if(!(Z==="vertical"&&["ArrowLeft","ArrowRight"].includes(ae))&&!(Z==="horizontal"&&["ArrowUp","ArrowDown"].includes(ae)))return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[ae]}function $d7bdfb9eb0fdf311$var$focusFirst(ie){const Z=document.activeElement;for(const ee of ie)if(ee===Z||(ee.focus(),document.activeElement!==Z))return}function $d7bdfb9eb0fdf311$var$wrapArray(ie,Z){return ie.map((ee,ae)=>ie[(Z+ae)%ie.length])}const $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9=$d7bdfb9eb0fdf311$export$8699f7c8af148338,$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2=$d7bdfb9eb0fdf311$export$ab9df7c53fe8454,$69cb30bb0017df05$var$TABS_NAME="Tabs",[$69cb30bb0017df05$var$createTabsContext,$69cb30bb0017df05$export$355f5bd209d7b13a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($69cb30bb0017df05$var$TABS_NAME,[$d7bdfb9eb0fdf311$export$c7109489551a4f4]),$69cb30bb0017df05$var$useRovingFocusGroupScope=$d7bdfb9eb0fdf311$export$c7109489551a4f4(),[$69cb30bb0017df05$var$TabsProvider,$69cb30bb0017df05$var$useTabsContext]=$69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME),$69cb30bb0017df05$export$b2539bed5023c21c=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,onValueChange:ve,defaultValue:ye,orientation:be="horizontal",dir:Ke,activationMode:Ye="automatic",...Xe}=ie,Qe=$f631663db3294ace$export$b39126d51d94e6f3(Ke),[et,Je]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,onChange:ve,defaultProp:ye});return reactExports.createElement($69cb30bb0017df05$var$TabsProvider,{scope:ee,baseId:$1746a345f3d73bb7$export$f680877a34711e37(),value:et,onValueChange:Je,orientation:be,dir:Qe,activationMode:Ye},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({dir:Qe,"data-orientation":be},Xe,{ref:Z})))}),$69cb30bb0017df05$var$TAB_LIST_NAME="TabsList",$69cb30bb0017df05$export$9712d22edc0d78c1=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,loop:ae=!0,...ve}=ie,ye=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME,ee),be=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee);return reactExports.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,_extends$1({asChild:!0},be,{orientation:ye.orientation,dir:ye.dir,loop:ae}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({role:"tablist","aria-orientation":ye.orientation},ve,{ref:Z})))}),$69cb30bb0017df05$var$TRIGGER_NAME="TabsTrigger",$69cb30bb0017df05$export$8114b9fdfdf9f3ba=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,disabled:ve=!1,...ye}=ie,be=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME,ee),Ke=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee),Ye=$69cb30bb0017df05$var$makeTriggerId(be.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(be.baseId,ae),Qe=ae===be.value;return reactExports.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,_extends$1({asChild:!0},Ke,{focusable:!ve,active:Qe}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button",role:"tab","aria-selected":Qe,"aria-controls":Xe,"data-state":Qe?"active":"inactive","data-disabled":ve?"":void 0,disabled:ve,id:Ye},ye,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,et=>{!ve&&et.button===0&&et.ctrlKey===!1?be.onValueChange(ae):et.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,et=>{[" ","Enter"].includes(et.key)&&be.onValueChange(ae)}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>{const et=be.activationMode!=="manual";!Qe&&!ve&&et&&be.onValueChange(ae)})})))}),$69cb30bb0017df05$var$CONTENT_NAME="TabsContent",$69cb30bb0017df05$export$bd905d70e8fd2ebb=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,forceMount:ve,children:ye,...be}=ie,Ke=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME,ee),Ye=$69cb30bb0017df05$var$makeTriggerId(Ke.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(Ke.baseId,ae),Qe=ae===Ke.value,et=reactExports.useRef(Qe);return reactExports.useEffect(()=>{const Je=requestAnimationFrame(()=>et.current=!1);return()=>cancelAnimationFrame(Je)},[]),reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ve||Qe},({present:Je})=>reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":Qe?"active":"inactive","data-orientation":Ke.orientation,role:"tabpanel","aria-labelledby":Ye,hidden:!Je,id:Xe,tabIndex:0},be,{ref:Z,style:{...ie.style,animationDuration:et.current?"0s":void 0}}),Je&&ye))});function $69cb30bb0017df05$var$makeTriggerId(ie,Z){return`${ie}-trigger-${Z}`}function $69cb30bb0017df05$var$makeContentId(ie,Z){return`${ie}-content-${Z}`}const $69cb30bb0017df05$export$be92b6f5f03c0fe9=$69cb30bb0017df05$export$b2539bed5023c21c,$69cb30bb0017df05$export$54c2e3dc7acea9f5=$69cb30bb0017df05$export$9712d22edc0d78c1,$69cb30bb0017df05$export$41fb9f06171c75f4=$69cb30bb0017df05$export$8114b9fdfdf9f3ba,$69cb30bb0017df05$export$7c6e2c02157bb7d2=$69cb30bb0017df05$export$bd905d70e8fd2ebb;var lib$5={},Parser$3={},Tokenizer={},decode={},decodeDataHtml={};Object.defineProperty(decodeDataHtml,"__esModule",{value:!0});decodeDataHtml.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(ie){return ie.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(ie){return ie.charCodeAt(0)}));var decode_codepoint={};(function(ie){var Z;Object.defineProperty(ie,"__esModule",{value:!0}),ie.replaceCodePoint=ie.fromCodePoint=void 0;var ee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);ie.fromCodePoint=(Z=String.fromCodePoint)!==null&&Z!==void 0?Z:function(ye){var be="";return ye>65535&&(ye-=65536,be+=String.fromCharCode(ye>>>10&1023|55296),ye=56320|ye&1023),be+=String.fromCharCode(ye),be};function ae(ye){var be;return ye>=55296&&ye<=57343||ye>1114111?65533:(be=ee.get(ye))!==null&&be!==void 0?be:ye}ie.replaceCodePoint=ae;function ve(ye){return(0,ie.fromCodePoint)(ae(ye))}ie.default=ve})(decode_codepoint);(function(ie){var Z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Kr,si,oi){oi===void 0&&(oi=si);var Qr=Object.getOwnPropertyDescriptor(Kr,si);(!Qr||("get"in Qr?!Kr.__esModule:Qr.writable||Qr.configurable))&&(Qr={enumerable:!0,get:function(){return Kr[si]}}),Object.defineProperty(_r,oi,Qr)}:function(_r,Kr,si,oi){oi===void 0&&(oi=si),_r[oi]=Kr[si]}),ee=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Kr){Object.defineProperty(_r,"default",{enumerable:!0,value:Kr})}:function(_r,Kr){_r.default=Kr}),ae=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Kr={};if(_r!=null)for(var si in _r)si!=="default"&&Object.prototype.hasOwnProperty.call(_r,si)&&Z(Kr,_r,si);return ee(Kr,_r),Kr},ve=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.decodeXML=ie.decodeHTMLStrict=ie.decodeHTMLAttribute=ie.decodeHTML=ie.determineBranch=ie.EntityDecoder=ie.DecodingMode=ie.BinTrieFlags=ie.fromCodePoint=ie.replaceCodePoint=ie.decodeCodePoint=ie.xmlDecodeTree=ie.htmlDecodeTree=void 0;var ye=ve(decodeDataHtml);ie.htmlDecodeTree=ye.default;var be=ve(decodeDataXml);ie.xmlDecodeTree=be.default;var Ke=ae(decode_codepoint);ie.decodeCodePoint=Ke.default;var Ye=decode_codepoint;Object.defineProperty(ie,"replaceCodePoint",{enumerable:!0,get:function(){return Ye.replaceCodePoint}}),Object.defineProperty(ie,"fromCodePoint",{enumerable:!0,get:function(){return Ye.fromCodePoint}});var Xe;(function(_r){_r[_r.NUM=35]="NUM",_r[_r.SEMI=59]="SEMI",_r[_r.EQUALS=61]="EQUALS",_r[_r.ZERO=48]="ZERO",_r[_r.NINE=57]="NINE",_r[_r.LOWER_A=97]="LOWER_A",_r[_r.LOWER_F=102]="LOWER_F",_r[_r.LOWER_X=120]="LOWER_X",_r[_r.LOWER_Z=122]="LOWER_Z",_r[_r.UPPER_A=65]="UPPER_A",_r[_r.UPPER_F=70]="UPPER_F",_r[_r.UPPER_Z=90]="UPPER_Z"})(Xe||(Xe={}));var Qe=32,et;(function(_r){_r[_r.VALUE_LENGTH=49152]="VALUE_LENGTH",_r[_r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",_r[_r.JUMP_TABLE=127]="JUMP_TABLE"})(et=ie.BinTrieFlags||(ie.BinTrieFlags={}));function Je(_r){return _r>=Xe.ZERO&&_r<=Xe.NINE}function rt(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_F||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_F}function it(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_Z||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_Z||Je(_r)}function nt(_r){return _r===Xe.EQUALS||it(_r)}var tt;(function(_r){_r[_r.EntityStart=0]="EntityStart",_r[_r.NumericStart=1]="NumericStart",_r[_r.NumericDecimal=2]="NumericDecimal",_r[_r.NumericHex=3]="NumericHex",_r[_r.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var st;(function(_r){_r[_r.Legacy=0]="Legacy",_r[_r.Strict=1]="Strict",_r[_r.Attribute=2]="Attribute"})(st=ie.DecodingMode||(ie.DecodingMode={}));var ot=function(){function _r(Kr,si,oi){this.decodeTree=Kr,this.emitCodePoint=si,this.errors=oi,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=st.Strict}return _r.prototype.startEntity=function(Kr){this.decodeMode=Kr,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},_r.prototype.write=function(Kr,si){switch(this.state){case tt.EntityStart:return Kr.charCodeAt(si)===Xe.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(Kr,si+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(Kr,si));case tt.NumericStart:return this.stateNumericStart(Kr,si);case tt.NumericDecimal:return this.stateNumericDecimal(Kr,si);case tt.NumericHex:return this.stateNumericHex(Kr,si);case tt.NamedEntity:return this.stateNamedEntity(Kr,si)}},_r.prototype.stateNumericStart=function(Kr,si){return si>=Kr.length?-1:(Kr.charCodeAt(si)|Qe)===Xe.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(Kr,si+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(Kr,si))},_r.prototype.addToNumericResult=function(Kr,si,oi,Qr){if(si!==oi){var ii=oi-si;this.result=this.result*Math.pow(Qr,ii)+parseInt(Kr.substr(si,ii),Qr),this.consumed+=ii}},_r.prototype.stateNumericHex=function(Kr,si){for(var oi=si;si>14;si>14,ii!==0){if(ti===Xe.SEMI)return this.emitNamedEntityData(this.treeIndex,ii,this.consumed+this.excess);this.decodeMode!==st.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},_r.prototype.emitNotTerminatedNamedEntity=function(){var Kr,si=this,oi=si.result,Qr=si.decodeTree,ii=(Qr[oi]&et.VALUE_LENGTH)>>14;return this.emitNamedEntityData(oi,ii,this.consumed),(Kr=this.errors)===null||Kr===void 0||Kr.missingSemicolonAfterCharacterReference(),this.consumed},_r.prototype.emitNamedEntityData=function(Kr,si,oi){var Qr=this.decodeTree;return this.emitCodePoint(si===1?Qr[Kr]&~et.VALUE_LENGTH:Qr[Kr+1],oi),si===3&&this.emitCodePoint(Qr[Kr+2],oi),oi},_r.prototype.end=function(){var Kr;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==st.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(Kr=this.errors)===null||Kr===void 0||Kr.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}},_r}();ie.EntityDecoder=ot;function ut(_r){var Kr="",si=new ot(_r,function(oi){return Kr+=(0,Ke.fromCodePoint)(oi)});return function(Qr,ii){for(var ti=0,ni=0;(ni=Qr.indexOf("&",ni))>=0;){Kr+=Qr.slice(ti,ni),si.startEntity(ii);var ui=si.write(Qr,ni+1);if(ui<0){ti=ni+si.end();break}ti=ni+ui,ni=ui===0?ti+1:ti}var yi=Kr+Qr.slice(ti);return Kr="",yi}}function ft(_r,Kr,si,oi){var Qr=(Kr&et.BRANCH_LENGTH)>>7,ii=Kr&et.JUMP_TABLE;if(Qr===0)return ii!==0&&oi===ii?si:-1;if(ii){var ti=oi-ii;return ti<0||ti>=Qr?-1:_r[si+ti]-1}for(var ni=si,ui=ni+Qr-1;ni<=ui;){var yi=ni+ui>>>1,pi=_r[yi];if(pioi)ui=yi-1;else return _r[yi+Qr]}return-1}ie.determineBranch=ft;var pt=ut(ye.default),Xr=ut(be.default);function mt(_r,Kr){return Kr===void 0&&(Kr=st.Legacy),pt(_r,Kr)}ie.decodeHTML=mt;function Yr(_r){return pt(_r,st.Attribute)}ie.decodeHTMLAttribute=Yr;function ri(_r){return pt(_r,st.Strict)}ie.decodeHTMLStrict=ri;function Zr(_r){return Xr(_r,st.Strict)}ie.decodeXML=Zr})(decode);(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.QuoteType=void 0;var Z=decode,ee;(function(Je){Je[Je.Tab=9]="Tab",Je[Je.NewLine=10]="NewLine",Je[Je.FormFeed=12]="FormFeed",Je[Je.CarriageReturn=13]="CarriageReturn",Je[Je.Space=32]="Space",Je[Je.ExclamationMark=33]="ExclamationMark",Je[Je.Number=35]="Number",Je[Je.Amp=38]="Amp",Je[Je.SingleQuote=39]="SingleQuote",Je[Je.DoubleQuote=34]="DoubleQuote",Je[Je.Dash=45]="Dash",Je[Je.Slash=47]="Slash",Je[Je.Zero=48]="Zero",Je[Je.Nine=57]="Nine",Je[Je.Semi=59]="Semi",Je[Je.Lt=60]="Lt",Je[Je.Eq=61]="Eq",Je[Je.Gt=62]="Gt",Je[Je.Questionmark=63]="Questionmark",Je[Je.UpperA=65]="UpperA",Je[Je.LowerA=97]="LowerA",Je[Je.UpperF=70]="UpperF",Je[Je.LowerF=102]="LowerF",Je[Je.UpperZ=90]="UpperZ",Je[Je.LowerZ=122]="LowerZ",Je[Je.LowerX=120]="LowerX",Je[Je.OpeningSquareBracket=91]="OpeningSquareBracket"})(ee||(ee={}));var ae;(function(Je){Je[Je.Text=1]="Text",Je[Je.BeforeTagName=2]="BeforeTagName",Je[Je.InTagName=3]="InTagName",Je[Je.InSelfClosingTag=4]="InSelfClosingTag",Je[Je.BeforeClosingTagName=5]="BeforeClosingTagName",Je[Je.InClosingTagName=6]="InClosingTagName",Je[Je.AfterClosingTagName=7]="AfterClosingTagName",Je[Je.BeforeAttributeName=8]="BeforeAttributeName",Je[Je.InAttributeName=9]="InAttributeName",Je[Je.AfterAttributeName=10]="AfterAttributeName",Je[Je.BeforeAttributeValue=11]="BeforeAttributeValue",Je[Je.InAttributeValueDq=12]="InAttributeValueDq",Je[Je.InAttributeValueSq=13]="InAttributeValueSq",Je[Je.InAttributeValueNq=14]="InAttributeValueNq",Je[Je.BeforeDeclaration=15]="BeforeDeclaration",Je[Je.InDeclaration=16]="InDeclaration",Je[Je.InProcessingInstruction=17]="InProcessingInstruction",Je[Je.BeforeComment=18]="BeforeComment",Je[Je.CDATASequence=19]="CDATASequence",Je[Je.InSpecialComment=20]="InSpecialComment",Je[Je.InCommentLike=21]="InCommentLike",Je[Je.BeforeSpecialS=22]="BeforeSpecialS",Je[Je.SpecialStartSequence=23]="SpecialStartSequence",Je[Je.InSpecialTag=24]="InSpecialTag",Je[Je.BeforeEntity=25]="BeforeEntity",Je[Je.BeforeNumericEntity=26]="BeforeNumericEntity",Je[Je.InNamedEntity=27]="InNamedEntity",Je[Je.InNumericEntity=28]="InNumericEntity",Je[Je.InHexEntity=29]="InHexEntity"})(ae||(ae={}));function ve(Je){return Je===ee.Space||Je===ee.NewLine||Je===ee.Tab||Je===ee.FormFeed||Je===ee.CarriageReturn}function ye(Je){return Je===ee.Slash||Je===ee.Gt||ve(Je)}function be(Je){return Je>=ee.Zero&&Je<=ee.Nine}function Ke(Je){return Je>=ee.LowerA&&Je<=ee.LowerZ||Je>=ee.UpperA&&Je<=ee.UpperZ}function Ye(Je){return Je>=ee.UpperA&&Je<=ee.UpperF||Je>=ee.LowerA&&Je<=ee.LowerF}var Xe;(function(Je){Je[Je.NoValue=0]="NoValue",Je[Je.Unquoted=1]="Unquoted",Je[Je.Single=2]="Single",Je[Je.Double=3]="Double"})(Xe=ie.QuoteType||(ie.QuoteType={}));var Qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},et=function(){function Je(rt,it){var nt=rt.xmlMode,tt=nt===void 0?!1:nt,st=rt.decodeEntities,ot=st===void 0?!0:st;this.cbs=it,this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=tt,this.decodeEntities=ot,this.entityTrie=tt?Z.xmlDecodeTree:Z.htmlDecodeTree}return Je.prototype.reset=function(){this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},Je.prototype.write=function(rt){this.offset+=this.buffer.length,this.buffer=rt,this.parse()},Je.prototype.end=function(){this.running&&this.finish()},Je.prototype.pause=function(){this.running=!1},Je.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&rt===ee.Amp&&(this.state=ae.BeforeEntity)},Je.prototype.stateSpecialStartSequence=function(rt){var it=this.sequenceIndex===this.currentSequence.length,nt=it?ye(rt):(rt|32)===this.currentSequence[this.sequenceIndex];if(!nt)this.isSpecial=!1;else if(!it){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ae.InTagName,this.stateInTagName(rt)},Je.prototype.stateInSpecialTag=function(rt){if(this.sequenceIndex===this.currentSequence.length){if(rt===ee.Gt||ve(rt)){var it=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&rt!==ee.Semi)this.trieIndex+=nt;else{var tt=this.index-this.entityExcess+1;tt>this.sectionStart&&this.emitPartial(this.sectionStart,tt),this.entityResult=this.trieIndex,this.trieIndex+=nt,this.entityExcess=0,this.sectionStart=this.index+1,nt===0&&this.emitNamedEntity()}}},Je.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var rt=(this.entityTrie[this.entityResult]&Z.BinTrieFlags.VALUE_LENGTH)>>14;switch(rt){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Z.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},Je.prototype.stateBeforeNumericEntity=function(rt){(rt|32)===ee.LowerX?(this.entityExcess++,this.state=ae.InHexEntity):(this.state=ae.InNumericEntity,this.stateInNumericEntity(rt))},Je.prototype.emitNumericEntity=function(rt){var it=this.index-this.entityExcess-1,nt=it+2+ +(this.state===ae.InHexEntity);nt!==this.index&&(it>this.sectionStart&&this.emitPartial(this.sectionStart,it),this.sectionStart=this.index+Number(rt),this.emitCodePoint((0,Z.replaceCodePoint)(this.entityResult))),this.state=this.baseState},Je.prototype.stateInNumericEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*10+(rt-ee.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.stateInHexEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*16+(rt-ee.Zero),this.entityExcess++):Ye(rt)?(this.entityResult=this.entityResult*16+((rt|32)-ee.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===ae.Text||this.baseState===ae.InSpecialTag)},Je.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===ae.Text||this.state===ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueSq||this.state===ae.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},Je.prototype.shouldContinue=function(){return this.index0&&be.has(this.stack[this.stack.length-1]);){var Ke=this.stack.pop();(ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,Ke,!0)}this.isVoidElement(Z)||(this.stack.push(Z),foreignContextElements.has(Z)?this.foreignContext.push(!0):htmlIntegrationElements.has(Z)&&this.foreignContext.push(!1)),(ye=(ve=this.cbs).onopentagname)===null||ye===void 0||ye.call(ve,Z),this.cbs.onopentag&&(this.attribs={})},ie.prototype.endOpenTag=function(Z){var ee,ae;this.startIndex=this.openTagStart,this.attribs&&((ae=(ee=this.cbs).onopentag)===null||ae===void 0||ae.call(ee,this.tagname,this.attribs,Z),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},ie.prototype.onopentagend=function(Z){this.endIndex=Z,this.endOpenTag(!1),this.startIndex=Z+1},ie.prototype.onclosetag=function(Z,ee){var ae,ve,ye,be,Ke,Ye;this.endIndex=ee;var Xe=this.getSlice(Z,ee);if(this.lowerCaseTagNames&&(Xe=Xe.toLowerCase()),(foreignContextElements.has(Xe)||htmlIntegrationElements.has(Xe))&&this.foreignContext.pop(),this.isVoidElement(Xe))!this.options.xmlMode&&Xe==="br"&&((ve=(ae=this.cbs).onopentagname)===null||ve===void 0||ve.call(ae,"br"),(be=(ye=this.cbs).onopentag)===null||be===void 0||be.call(ye,"br",{},!0),(Ye=(Ke=this.cbs).onclosetag)===null||Ye===void 0||Ye.call(Ke,"br",!1));else{var Qe=this.stack.lastIndexOf(Xe);if(Qe!==-1)if(this.cbs.onclosetag)for(var et=this.stack.length-Qe;et--;)this.cbs.onclosetag(this.stack.pop(),et!==0);else this.stack.length=Qe;else!this.options.xmlMode&&Xe==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=ee+1},ie.prototype.onselfclosingtag=function(Z){this.endIndex=Z,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=Z+1):this.onopentagend(Z)},ie.prototype.closeCurrentTag=function(Z){var ee,ae,ve=this.tagname;this.endOpenTag(Z),this.stack[this.stack.length-1]===ve&&((ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,ve,!Z),this.stack.pop())},ie.prototype.onattribname=function(Z,ee){this.startIndex=Z;var ae=this.getSlice(Z,ee);this.attribname=this.lowerCaseAttributeNames?ae.toLowerCase():ae},ie.prototype.onattribdata=function(Z,ee){this.attribvalue+=this.getSlice(Z,ee)},ie.prototype.onattribentity=function(Z){this.attribvalue+=(0,decode_js_1.fromCodePoint)(Z)},ie.prototype.onattribend=function(Z,ee){var ae,ve;this.endIndex=ee,(ve=(ae=this.cbs).onattribute)===null||ve===void 0||ve.call(ae,this.attribname,this.attribvalue,Z===Tokenizer_js_1.QuoteType.Double?'"':Z===Tokenizer_js_1.QuoteType.Single?"'":Z===Tokenizer_js_1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},ie.prototype.getInstructionName=function(Z){var ee=Z.search(reNameEnd),ae=ee<0?Z:Z.substr(0,ee);return this.lowerCaseTagNames&&(ae=ae.toLowerCase()),ae},ie.prototype.ondeclaration=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("!".concat(ve),"!".concat(ae))}this.startIndex=ee+1},ie.prototype.onprocessinginstruction=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("?".concat(ve),"?".concat(ae))}this.startIndex=ee+1},ie.prototype.oncomment=function(Z,ee,ae){var ve,ye,be,Ke;this.endIndex=ee,(ye=(ve=this.cbs).oncomment)===null||ye===void 0||ye.call(ve,this.getSlice(Z,ee-ae)),(Ke=(be=this.cbs).oncommentend)===null||Ke===void 0||Ke.call(be),this.startIndex=ee+1},ie.prototype.oncdata=function(Z,ee,ae){var ve,ye,be,Ke,Ye,Xe,Qe,et,Je,rt;this.endIndex=ee;var it=this.getSlice(Z,ee-ae);this.options.xmlMode||this.options.recognizeCDATA?((ye=(ve=this.cbs).oncdatastart)===null||ye===void 0||ye.call(ve),(Ke=(be=this.cbs).ontext)===null||Ke===void 0||Ke.call(be,it),(Xe=(Ye=this.cbs).oncdataend)===null||Xe===void 0||Xe.call(Ye)):((et=(Qe=this.cbs).oncomment)===null||et===void 0||et.call(Qe,"[CDATA[".concat(it,"]]")),(rt=(Je=this.cbs).oncommentend)===null||rt===void 0||rt.call(Je)),this.startIndex=ee+1},ie.prototype.onend=function(){var Z,ee;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var ae=this.stack.length;ae>0;this.cbs.onclosetag(this.stack[--ae],!0));}(ee=(Z=this.cbs).onend)===null||ee===void 0||ee.call(Z)},ie.prototype.reset=function(){var Z,ee,ae,ve;(ee=(Z=this.cbs).onreset)===null||ee===void 0||ee.call(Z),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(ve=(ae=this.cbs).onparserinit)===null||ve===void 0||ve.call(ae,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},ie.prototype.parseComplete=function(Z){this.reset(),this.end(Z)},ie.prototype.getSlice=function(Z,ee){for(;Z-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var ae=this.buffers[0].slice(Z-this.bufferOffset,ee-this.bufferOffset);ee-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),ae+=this.buffers[0].slice(0,ee-this.bufferOffset);return ae},ie.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},ie.prototype.write=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".write() after done!"));return}this.buffers.push(Z),this.tokenizer.running&&(this.tokenizer.write(Z),this.writeIndex++)},ie.prototype.end=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".end() after done!"));return}Z&&this.write(Z),this.ended=!0,this.tokenizer.end()},ie.prototype.pause=function(){this.tokenizer.pause()},ie.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"childNodes",{get:function(){return this.children},set:function(ee){this.children=ee},enumerable:!1,configurable:!0}),Z}(Node$6);node$1.NodeWithChildren=NodeWithChildren;var CDATA=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.CDATA,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.CDATA=CDATA;var Document$4=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.Root,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Document=Document$4;var Element$1=function(ie){__extends(Z,ie);function Z(ee,ae,ve,ye){ve===void 0&&(ve=[]),ye===void 0&&(ye=ee==="script"?domelementtype_1$1.ElementType.Script:ee==="style"?domelementtype_1$1.ElementType.Style:domelementtype_1$1.ElementType.Tag);var be=ie.call(this,ve)||this;return be.name=ee,be.attribs=ae,be.type=ye,be}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"tagName",{get:function(){return this.name},set:function(ee){this.name=ee},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"attributes",{get:function(){var ee=this;return Object.keys(this.attribs).map(function(ae){var ve,ye;return{name:ae,value:ee.attribs[ae],namespace:(ve=ee["x-attribsNamespace"])===null||ve===void 0?void 0:ve[ae],prefix:(ye=ee["x-attribsPrefix"])===null||ye===void 0?void 0:ye[ae]}})},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Element=Element$1;function isTag(ie){return(0,domelementtype_1$1.isTag)(ie)}node$1.isTag=isTag;function isCDATA(ie){return ie.type===domelementtype_1$1.ElementType.CDATA}node$1.isCDATA=isCDATA;function isText(ie){return ie.type===domelementtype_1$1.ElementType.Text}node$1.isText=isText;function isComment(ie){return ie.type===domelementtype_1$1.ElementType.Comment}node$1.isComment=isComment;function isDirective(ie){return ie.type===domelementtype_1$1.ElementType.Directive}node$1.isDirective=isDirective;function isDocument(ie){return ie.type===domelementtype_1$1.ElementType.Root}node$1.isDocument=isDocument;function hasChildren(ie){return Object.prototype.hasOwnProperty.call(ie,"children")}node$1.hasChildren=hasChildren;function cloneNode$1(ie,Z){Z===void 0&&(Z=!1);var ee;if(isText(ie))ee=new Text(ie.data);else if(isComment(ie))ee=new Comment$5(ie.data);else if(isTag(ie)){var ae=Z?cloneChildren(ie.children):[],ve=new Element$1(ie.name,__assign$2({},ie.attribs),ae);ae.forEach(function(Ye){return Ye.parent=ve}),ie.namespace!=null&&(ve.namespace=ie.namespace),ie["x-attribsNamespace"]&&(ve["x-attribsNamespace"]=__assign$2({},ie["x-attribsNamespace"])),ie["x-attribsPrefix"]&&(ve["x-attribsPrefix"]=__assign$2({},ie["x-attribsPrefix"])),ee=ve}else if(isCDATA(ie)){var ae=Z?cloneChildren(ie.children):[],ye=new CDATA(ae);ae.forEach(function(Xe){return Xe.parent=ye}),ee=ye}else if(isDocument(ie)){var ae=Z?cloneChildren(ie.children):[],be=new Document$4(ae);ae.forEach(function(Xe){return Xe.parent=be}),ie["x-mode"]&&(be["x-mode"]=ie["x-mode"]),ee=be}else if(isDirective(ie)){var Ke=new ProcessingInstruction(ie.name,ie.data);ie["x-name"]!=null&&(Ke["x-name"]=ie["x-name"],Ke["x-publicId"]=ie["x-publicId"],Ke["x-systemId"]=ie["x-systemId"]),ee=Ke}else throw new Error("Not implemented yet: ".concat(ie.type));return ee.startIndex=ie.startIndex,ee.endIndex=ie.endIndex,ie.sourceCodeLocation!=null&&(ee.sourceCodeLocation=ie.sourceCodeLocation),ee}node$1.cloneNode=cloneNode$1;function cloneChildren(ie){for(var Z=ie.map(function(ae){return cloneNode$1(ae,!0)}),ee=1;ee$\x80-\uFFFF]/g;var Z=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);ie.getCodePoint=String.prototype.codePointAt!=null?function(ve,ye){return ve.codePointAt(ye)}:function(ve,ye){return(ve.charCodeAt(ye)&64512)===55296?(ve.charCodeAt(ye)-55296)*1024+ve.charCodeAt(ye+1)-56320+65536:ve.charCodeAt(ye)};function ee(ve){for(var ye="",be=0,Ke;(Ke=ie.xmlReplacer.exec(ve))!==null;){var Ye=Ke.index,Xe=ve.charCodeAt(Ye),Qe=Z.get(Xe);Qe!==void 0?(ye+=ve.substring(be,Ye)+Qe,be=Ye+1):(ye+="".concat(ve.substring(be,Ye),"&#x").concat((0,ie.getCodePoint)(ve,Ye).toString(16),";"),be=ie.xmlReplacer.lastIndex+=+((Xe&64512)===55296))}return ye+ve.substr(be)}ie.encodeXML=ee,ie.escape=ee;function ae(ve,ye){return function(Ke){for(var Ye,Xe=0,Qe="";Ye=ve.exec(Ke);)Xe!==Ye.index&&(Qe+=Ke.substring(Xe,Ye.index)),Qe+=ye.get(Ye[0].charCodeAt(0)),Xe=Ye.index+1;return Qe+Ke.substring(Xe)}}ie.escapeUTF8=ae(/[&<>'"]/g,Z),ie.escapeAttribute=ae(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ie.escapeText=ae(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(encode,"__esModule",{value:!0});encode.encodeNonAsciiHTML=encode.encodeHTML=void 0;var encode_html_js_1=__importDefault$1(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(ie){return encodeHTMLTrieRe(htmlReplacer,ie)}encode.encodeHTML=encodeHTML;function encodeNonAsciiHTML(ie){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,ie)}encode.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(ie,Z){for(var ee="",ae=0,ve;(ve=ie.exec(Z))!==null;){var ye=ve.index;ee+=Z.substring(ae,ye);var be=Z.charCodeAt(ye),Ke=encode_html_js_1.default.get(be);if(typeof Ke=="object"){if(ye+10&&(ae+=render(ie.children,Z)),(Z.xmlMode||!singleTag.has(ie.name))&&(ae+=""))),ae}function renderDirective(ie){return"<".concat(ie.data,">")}function renderText(ie,Z){var ee,ae=ie.data||"";return((ee=Z.encodeEntities)!==null&&ee!==void 0?ee:Z.decodeEntities)!==!1&&!(!Z.xmlMode&&ie.parent&&unencodedElements.has(ie.parent.name))&&(ae=Z.xmlMode||Z.encodeEntities!=="utf8"?(0,entities_1.encodeXML)(ae):(0,entities_1.escapeText)(ae)),ae}function renderCdata(ie){return"")}function renderComment(ie){return"")}var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(stringify$5,"__esModule",{value:!0});stringify$5.innerText=stringify$5.textContent=stringify$5.getText=stringify$5.getInnerHTML=stringify$5.getOuterHTML=void 0;var domhandler_1$3=lib$4,dom_serializer_1=__importDefault(lib$1),domelementtype_1=lib$3;function getOuterHTML(ie,Z){return(0,dom_serializer_1.default)(ie,Z)}stringify$5.getOuterHTML=getOuterHTML;function getInnerHTML(ie,Z){return(0,domhandler_1$3.hasChildren)(ie)?ie.children.map(function(ee){return getOuterHTML(ee,Z)}).join(""):""}stringify$5.getInnerHTML=getInnerHTML;function getText(ie){return Array.isArray(ie)?ie.map(getText).join(""):(0,domhandler_1$3.isTag)(ie)?ie.name==="br"?` +var ns=Object.defineProperty;var ss=(ie,Z,ee)=>Z in ie?ns(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee;var Vi=(ie,Z,ee)=>(ss(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);import{r as reactExports,a as reactDomExports,$ as $2AODx$react,e as e$1,c as commonjsGlobal,g as getAugmentedNamespace,b as getDefaultExportFromCjs$1,d as $7SXl2$reactdom}from"./index-Vzwt8Hh-.js";var __defProp=Object.defineProperty,__defNormalProp=(ie,Z,ee)=>Z in ie?__defProp(ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ie[Z]=ee,__publicField=(ie,Z,ee)=>(__defNormalProp(ie,typeof Z!="symbol"?Z+"":Z,ee),ee);const EMPTY=[];Object.freeze(EMPTY);const emptyAnnotationPage={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:EMPTY,motivation:null,label:null,thumbnail:EMPTY,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,provider:EMPTY,items:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,rendering:EMPTY,service:EMPTY},emptyCanvas={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,duration:0,height:0,width:0},emptyCollection={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,services:EMPTY},emptyManifest={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:EMPTY,behavior:EMPTY,homepage:EMPTY,items:EMPTY,label:null,logo:EMPTY,metadata:EMPTY,motivation:null,navDate:null,provider:EMPTY,partOf:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:EMPTY,requiredStatement:null,rights:null,seeAlso:EMPTY,service:EMPTY,services:EMPTY,start:null,structures:EMPTY,summary:null,thumbnail:EMPTY,viewingDirection:"left-to-right"},emptyRange={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:EMPTY,motivation:null,thumbnail:EMPTY,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:EMPTY,rights:null,navDate:null,provider:EMPTY,items:EMPTY,annotations:EMPTY,seeAlso:EMPTY,homepage:EMPTY,logo:EMPTY,partOf:EMPTY,rendering:EMPTY,service:EMPTY,start:null,supplementary:null,viewingDirection:"left-to-right"},emptyAgent={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:EMPTY,seeAlso:EMPTY,homepage:EMPTY};function ensureArray$1(ie){return Array.isArray(ie)?ie:[ie]}const types$1=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function identifyResource$1(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie.type=="string"){const Z=types$1.indexOf(ie.type);if(Z!==-1)return types$1[Z]}if(ie.profile)return"Service";throw new Error("Resource type is not known")}class Traverse$1{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[],...Z},this.options={allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse$1({collection:[Z],manifest:[Z],canvas:[Z],annotationCollection:[Z],annotationPage:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z]})}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=Z.thumbnail.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.provider&&(Z.provider=Z.provider.map(ee=>this.traverseAgent(ee))),Z}traverseLinking(Z){return Z.seeAlso&&(Z.seeAlso=Z.seeAlso.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.service&&(Z.service=ensureArray$1(Z.service).map(ee=>this.traverseType(ee,this.traversals.service))),Z.services&&(Z.services=Z.services.map(ee=>this.traverseType(ee,this.traversals.service))),Z.logo&&(Z.logo=Z.logo.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.homepage&&(Z.homepage=Z.homepage.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.partOf&&(Z.partOf=Z.partOf.map(ee=>typeof ee=="string"||!ee.type?this.traverseType(ee,this.traversals.contentResource):ee.type==="Canvas"?this.traverseType(ee,this.traversals.canvas):ee.type==="AnnotationCollection"?this.traverseType(ee,this.traversals.annotationCollection):ee.type==="Collection"?this.traverseType(ee,this.traversals.collection):this.traverseType(ee,this.traversals.contentResource))),Z.start&&(Z.start=Z.start?this.traverseType(Z.start,this.traversals.canvas):null),Z.rendering&&(Z.rendering=Z.rendering.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z.supplementary&&(Z.supplementary=Z.supplementary.map(ee=>this.traverseType(ee,this.traversals.contentResource))),Z}traverseCollectionItems(Z){return Z.items&&Z.items.map(ee=>ee.type==="Collection"?this.traverseCollection(ee):this.traverseManifest(ee)),Z}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(Z))))),this.traversals.collection)}traverseManifestItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseCanvas(ee))),Z}traverseManifestStructures(Z){return Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z)))))),this.traversals.manifest)}traverseCanvasItems(Z){return Z.items=(Z.items||[]).map(ee=>this.traverseAnnotationPage(ee)),Z}traverseInlineAnnotationPages(Z){return typeof Z=="string"||!Z||Z.annotations&&(Z.annotations=Z.annotations.map(ee=>this.traverseAnnotationPage(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))))),this.traversals.canvas)}traverseAnnotationPageItems(Z){return Z.items&&(Z.items=Z.items.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotationPage(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(Z))),this.traversals.annotationPage)}traverseAnnotationBody(Z){return Array.isArray(Z.body)?Z.body=Z.body.map(ee=>this.traverseContentResource(ee)):Z.body&&(Z.body=this.traverseContentResource(Z.body)),Z}traversePosterCanvas(Z){return Z.posterCanvas&&(Z.posterCanvas=this.traverseCanvas(Z.posterCanvas)),Z.placeholderCanvas&&(Z.placeholderCanvas=this.traverseCanvas(Z.placeholderCanvas)),Z.accompanyingCanvas&&(Z.accompanyingCanvas=this.traverseCanvas(Z.accompanyingCanvas)),Z}traverseAnnotation(Z){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(Z)),this.traversals.annotation)}traverseContentResourceLinking(Z){return typeof Z=="string"||!Z||Z&&Z.service&&(Z.service=ensureArray$1(Z.service||[]).map(ee=>this.traverseType(ee,this.traversals.service))),Z}traverseContentResource(Z){return Z.type==="Choice"&&(Z.items=Z.items.map(ee=>this.traverseContentResource(ee))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(Z)),this.traversals.contentResource)}traverseRangeRanges(Z){return Z.items&&(Z.items=Z.items.map(ee=>typeof ee=="string"?this.traverseCanvas({id:ee,type:"Canvas"}):ee.type==="Manifest"?this.traverseManifest(ee):this.traverseRange(ee))),Z}traverseRange(Z){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(Z)))),this.traversals.range)}traverseAgent(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.agent)}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}traverseService(Z){return this.traverseType(Z,this.traversals.service)}traverseUnknown(Z){const ee=identifyResource$1(Z);switch(ee){case"Collection":return this.traverseCollection(Z);case"Manifest":return this.traverseManifest(Z);case"Canvas":return this.traverseCanvas(Z);case"AnnotationPage":return this.traverseAnnotationPage(Z);case"Annotation":return this.traverseAnnotation(Z);case"ContentResource":return this.traverseContentResource(Z);case"Range":return this.traverseRange(Z);case"Service":return this.traverseService(Z);case"Agent":return this.traverseAgent(Z);default:throw new Error(`Unknown or unsupported resource type of ${ee}`)}}}const types=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function identifyResource(ie){if(typeof ie>"u"||ie===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(ie))throw new Error("Array is not a valid entity");if(typeof ie!="object")throw new Error(`${typeof ie} is not a valid entity`);if(typeof ie["@type"]=="string"){const Z=types.indexOf(ie["@type"]);if(Z!==-1)return types[Z]}if(ie.profile)return"Service";if(ie.format||ie["@type"])return"ContentResource";throw new Error("Resource type is not known")}class Traverse{constructor(Z,ee={}){__publicField(this,"traversals"),__publicField(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[],...Z},this.options={convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1,...ee}}static all(Z){return new Traverse({collection:[Z],manifest:[Z],canvas:[Z],annotationList:[Z],sequence:[Z],annotation:[Z],contentResource:[Z],choice:[Z],range:[Z],service:[Z],layer:[Z]})}traverseCollection(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(Z))),this.traversals.collection)}traverseCollectionItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.manifests||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Manifest"}:ae),...(Z.collections||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Collection"}:ae),...Z.members||[]];delete Z.collections,delete Z.manifests,Z.members=ee}return Z.manifests&&(Z.manifests=Z.manifests.map(ee=>this.traverseManifest(typeof ee=="string"?{"@id":ee,"@type":"sc:Manifest"}:ee))),Z.collections&&(Z.collections=Z.collections.map(ee=>this.traverseCollection(typeof ee=="string"?{"@id":ee,"@type":"sc:Collection"}:ee))),Z.members&&(Z.members=Z.members.map(ee=>typeof ee=="string"?ee:this.traverseUnknown(ee))),Z}traverseManifest(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(Z))),this.traversals.manifest)}traverseManifestItems(Z){return Z.sequences&&(Z.sequences=Z.sequences.map(ee=>this.traverseSequence(ee))),Z.structures&&(Z.structures=Z.structures.map(ee=>this.traverseRange(ee))),Z}traverseSequence(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(Z))),this.traversals.sequence)}traverseSequenceItems(Z){return Z.canvases&&(Z.canvases=Z.canvases.map(ee=>this.traverseCanvas(ee))),Z}traverseCanvas(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(Z))),this.traversals.canvas)}traverseCanvasItems(Z){return Z.images&&(Z.images=Z.images.map(ee=>this.traverseAnnotation(ee))),Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseRange(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(Z))),this.traversals.range)}traverseRangeItems(Z){if(this.options.mergeMemberProperties){const ee=[...(Z.ranges||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Range"}:ae),...(Z.canvases||[]).map(ae=>typeof ae=="string"?{"@id":ae,"@type":"sc:Canvas"}:ae),...Z.members||[]];delete Z.ranges,delete Z.canvases,Z.members=ee.length?ee.map(ae=>this.traverseUnknown(ae)):void 0}return Z}traverseAnnotationList(Z){const ee=typeof Z=="string"?{"@id":Z,"@type":"sc:AnnotationList"}:Z;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(ee)),this.traversals.annotationList)}traverseAnnotationListItems(Z){return Z.resources&&(Z.resources=Z.resources.map(ee=>this.traverseAnnotation(ee))),Z}traverseAnnotation(Z){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(Z))),this.traversals.annotation)}traverseAnnotationItems(Z){return Z.resource&&(Array.isArray(Z.resource)?Z.resource=Z.resource.map(ee=>this.traverseContentResource(ee)):Z.resource=this.traverseContentResource(Z.resource)),Z.on,Z}traverseLayer(Z){return this.traverseType(this.traverseLinking(this.traverseLayerItems(Z)),this.traversals.layer)}traverseLayerItems(Z){return Z.otherContent&&(Z.otherContent=Z.otherContent.map(ee=>this.traverseAnnotationList(ee))),Z}traverseChoice(Z){return this.traverseType(this.traverseChoiceItems(Z),this.traversals.choice)}traverseChoiceItems(Z){return Z.default&&Z.default!=="rdf:nil"&&(Z.default=this.traverseContentResource(Z.default)),Z.item&&Z.item!=="rdf:nil"&&(Z.item=Z.item.map(ee=>this.traverseContentResource(ee))),Z}traverseService(Z){return this.traverseType(this.traverseLinking(Z),this.traversals.service)}traverseContentResource(Z){return Z["@type"]==="oa:Choice"?this.traverseChoice(Z):this.traverseType(this.traverseDescriptive(this.traverseLinking(Z)),this.traversals.contentResource)}traverseUnknown(Z){if(!Z["@type"]||typeof Z=="string")return Z;switch(identifyResource(Z)){case"sc:Collection":return this.traverseCollection(Z);case"sc:Manifest":return this.traverseManifest(Z);case"sc:Canvas":return this.traverseCanvas(Z);case"sc:Sequence":return this.traverseSequence(Z);case"sc:Range":return this.traverseRange(Z);case"oa:Annotation":return this.traverseAnnotation(Z);case"sc:AnnotationList":return this.traverseAnnotationList(Z);case"sc:Layer":return this.traverseLayer(Z);case"Service":return this.traverseService(Z);case"oa:Choice":return this.traverseChoice(Z);case"ContentResource":return this.traverseContentResource(Z)}return Z.profile?this.traverseService(Z):Z}traverseImageResource(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)typeof ye=="string"?ve.push(this.traverseContentResource({"@id":ye,"@type":"dctypes:Image"})):ve.push(this.traverseContentResource(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseDescriptive(Z){return Z.thumbnail&&(Z.thumbnail=this.traverseImageResource(Z.thumbnail)),Z.logo&&(Z.logo=this.traverseImageResource(Z.logo)),Z}traverseOneOrMoreServices(Z){const ee=Array.isArray(Z),ae=Array.isArray(Z)?Z:[Z],ve=[];for(const ye of ae)ve.push(this.traverseService(ye));return!ee&&!this.options.convertPropsToArray?ve[0]:ve}traverseLinking(Z){return Z.related&&(Z.related=this.traverseOneOrManyType(Z.related,this.traversals.contentResource)),Z.rendering&&(Z.rendering=this.traverseOneOrManyType(Z.rendering,this.traversals.contentResource)),Z.service&&(Z.service=this.traverseOneOrMoreServices(Z.service)),Z.seeAlso&&(Z.seeAlso=this.traverseOneOrManyType(Z.seeAlso,this.traversals.contentResource)),Z.within&&(typeof Z.within=="string"||(Z.within=this.traverseOneOrManyType(Z.within,this.traversals.contentResource))),Z.startCanvas&&(typeof Z.startCanvas=="string"?Z.startCanvas=this.traverseType({"@id":Z.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):Z.startCanvas&&this.traverseType(Z.startCanvas,this.traversals.canvas)),Z.contentLayer&&(typeof Z.contentLayer=="string"?Z.contentLayer=this.traverseLayer({"@id":Z.contentLayer,"@type":"sc:Layer"}):Z.contentLayer=this.traverseLayer(Z.contentLayer)),Z}traverseOneOrManyType(Z,ee){if(!Array.isArray(Z))if(this.options.convertPropsToArray)Z=[Z];else return this.traverseType(Z,ee);return Z.map(ae=>this.traverseType(ae,ee))}traverseType(Z,ee){return ee.reduce((ae,ve)=>{const ye=ve(ae);return typeof ye>"u"&&!this.options.allowUndefinedReturn?ae:ye},Z)}}const STANFORD_IIIF_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",STANFORD_IIIF_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",STANFORD_IIIF_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",STANFORD_IIIF_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",STANFORD_IIIF_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",STANFORD_IIIF_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",STANFORD_IIIF_1_IMAGE_COMPLIANCE_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",STANFORD_IIIF_1_IMAGE_COMPLIANCE_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",STANFORD_IIIF_1_IMAGE_COMPLIANCE_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",STANFORD_IIIF_1_IMAGE_CONFORMANCE_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",STANFORD_IIIF_1_IMAGE_CONFORMANCE_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",STANFORD_IIIF_1_IMAGE_CONFORMANCE_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",IIIF_1_IMAGE_LEVEL_0="http://iiif.io/api/image/1/level0.json",IIIF_1_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/1/profiles/level0.json",IIIF_1_IMAGE_LEVEL_1="http://iiif.io/api/image/1/level1.json",IIIF_1_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/1/profiles/level1.json",IIIF_1_IMAGE_LEVEL_2="http://iiif.io/api/image/1/level2.json",IIIF_1_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/1/profiles/level2.json",IIIF_2_IMAGE_LEVEL_0="http://iiif.io/api/image/2/level0.json",IIIF_2_IMAGE_LEVEL_0_PROFILE="http://iiif.io/api/image/2/profiles/level0.json",IIIF_2_IMAGE_LEVEL_1="http://iiif.io/api/image/2/level1.json",IIIF_2_IMAGE_LEVEL_1_PROFILE="http://iiif.io/api/image/2/profiles/level1.json",IIIF_2_IMAGE_LEVEL_2="http://iiif.io/api/image/2/level2.json",IIIF_2_IMAGE_LEVEL_2_PROFILE="http://iiif.io/api/image/2/profiles/level2.json",IIIF_3_IMAGE_LEVEL_0="level0",IIIF_3_IMAGE_LEVEL_1="level1",IIIF_3_IMAGE_LEVEL_2="level2",IIIF_2_IMAGE_LEVEL_0_NO_JSON="http://iiif.io/api/image/2/level0",IIIF_2_IMAGE_LEVEL_1_NO_JSON="http://iiif.io/api/image/2/level1",IIIF_2_IMAGE_LEVEL_2_NO_JSON="http://iiif.io/api/image/2/level2",level1Support=[IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],imageServiceProfiles=[IIIF_2_IMAGE_LEVEL_0_NO_JSON,IIIF_2_IMAGE_LEVEL_1_NO_JSON,IIIF_2_IMAGE_LEVEL_2_NO_JSON,STANFORD_IIIF_IMAGE_COMPLIANCE_0,STANFORD_IIIF_IMAGE_COMPLIANCE_1,STANFORD_IIIF_IMAGE_COMPLIANCE_2,STANFORD_IIIF_IMAGE_CONFORMANCE_0,STANFORD_IIIF_IMAGE_CONFORMANCE_1,STANFORD_IIIF_IMAGE_CONFORMANCE_2,STANFORD_IIIF_1_IMAGE_COMPLIANCE_0,STANFORD_IIIF_1_IMAGE_COMPLIANCE_1,STANFORD_IIIF_1_IMAGE_COMPLIANCE_2,STANFORD_IIIF_1_IMAGE_CONFORMANCE_0,STANFORD_IIIF_1_IMAGE_CONFORMANCE_1,STANFORD_IIIF_1_IMAGE_CONFORMANCE_2,IIIF_1_IMAGE_LEVEL_0,IIIF_1_IMAGE_LEVEL_0_PROFILE,IIIF_1_IMAGE_LEVEL_1,IIIF_1_IMAGE_LEVEL_1_PROFILE,IIIF_1_IMAGE_LEVEL_2,IIIF_1_IMAGE_LEVEL_2_PROFILE,IIIF_2_IMAGE_LEVEL_0,IIIF_2_IMAGE_LEVEL_0_PROFILE,IIIF_2_IMAGE_LEVEL_1,IIIF_2_IMAGE_LEVEL_1_PROFILE,IIIF_2_IMAGE_LEVEL_2,IIIF_2_IMAGE_LEVEL_2_PROFILE,IIIF_3_IMAGE_LEVEL_0,IIIF_3_IMAGE_LEVEL_1,IIIF_3_IMAGE_LEVEL_2],configuration={attributionLabel:"Attribution",lang:"none",providerId:"http://example.org/provider",providerName:"Unknown"};function convertLanguageMapping(ie,Z="none"){if(!ie)return{};const ee=Array.isArray(ie)?ie:[ie],ae={};for(const ve of ee){if(typeof ve=="string"){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve||"");continue}if(!ve["@language"]){ae[Z]=ae[Z]?ae[Z]:[],ae[Z].push(ve["@value"]||"");continue}const ye=ve["@language"];ae[ye]=ae[ye]?ae[ye]:[],ae[ye].push(ve["@value"]||"")}return ae}function getProfile(ie){if(Array.isArray(ie))return getProfile(ie.find(Z=>typeof Z=="string"));if(imageServiceProfiles.indexOf(ie)!==-1)return"level2";if(level1Support.indexOf(ie)!==-1)return"level1";if(typeof ie=="string")return ie}function getTypeFromContext(ie){const Z=Array.isArray(ie)?ie:[ie];for(const ee of Z)switch(ee){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function getTypeFromProfile(ie){switch(ie){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function removePrefix(ie){for(const Z of["sc","oa","dcterms","dctypes","iiif"])if(ie.startsWith(`${Z}:`))return ie.slice(Z.length+1);return ie}const knownTypes=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function getNewType(ie){const Z=ie["@id"]||ie.id;let ee=ie["@type"]||ie.type;const ae=ie.profile||void 0,ve=ie["@context"]||void 0;if(ae){const ye=getTypeFromProfile(ae);if(ye)return ye}if(ve){const ye=getTypeFromContext(ve);if(ye)return ye}if(ee){if(Array.isArray(ee)){if(ee.indexOf("oa:CssStylesheet")!==-1)return"CssStylesheet";if(ee.indexOf("cnt:ContentAsText")!==-1)return"TextualBody";ee=ee[0]}for(const ye of["sc","oa","dcterms","dctypes","iiif"])if(ee.startsWith(`${ye}:`)){ee=ee.slice(ye.length+1);break}switch(ee){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(ee&&knownTypes.indexOf(ee)!==-1)return ee;if(ie.format){if(ie.format.startsWith("image/"))return"Image";if(ie.format.startsWith("text/")||ie.format==="application/pdf")return"Text";if(ie.format.startsWith("application/"))return"Dataset"}return Z&&(Z.endsWith(".jpg")||Z.endsWith(".png")||Z.endsWith(".jpeg"))?"Image":ee||"unknown"}const licenseRegex=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function extractLicense(ie){const Z=ie.match(licenseRegex);return Z?Z[0]:ie}function fixLicense(ie,Z="Rights/License",ee="none"){let ae=null;const ve=[],ye=Array.isArray(ie)?ie:[ie];for(const be of ye){const Ke=be?extractLicense(be):void 0;if(Ke&&(Ke.indexOf("creativecommons.org")!==-1||Ke.indexOf("rightsstatements.org")!==-1)){Ke.startsWith("https://")?ae=`http://${Ke.slice(8)}`:ae=Ke;continue}Ke&&ve.push({label:{[ee]:[Z]},value:{[ee]:[Ke]}})}return[ae,ve]}const removeContexts=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function fixContext(ie){if(ie){const Z=Array.isArray(ie)?ie:[ie],ee=[];for(const ae of Z)ae==="http://iiif.io/api/presentation/2/context.json"&&ee.push("http://iiif.io/api/presentation/3/context.json"),removeContexts.indexOf(ae)===-1&&ee.push(ae);if(Z.length)return ee.length===1?ee[0]:ee}}function convertMetadata(ie){return ie?ie.map(Z=>({label:convertLanguageMapping(Z.label),value:convertLanguageMapping(Z.value)})):[]}function removeUndefinedProperties(ie){for(const Z in ie)(typeof ie[Z]>"u"||ie[Z]===null)&&delete ie[Z];return ie}let mintedIdCounter=0;function mintNewIdFromResource(ie,Z){const ee=encodeURI(ie.id||ie["@id"]||"").trim();return ee&&Z?`${ee}/${Z}`:ee||(mintedIdCounter++,`http://example.org/${ie["@type"]}${Z?`/${Z}`:""}/${mintedIdCounter}`)}function technicalProperties$2(ie){const Z=[...ie.behavior||[]];ie.viewingHint&&Z.push(ie.viewingHint);let ee;return Array.isArray(ie.motivation)?ee=ie.motivation.map(removePrefix):ie.motivation&&(ee=removePrefix(ie.motivation)),{"@context":ie["@context"]?fixContext(ie["@context"]):void 0,id:(ie["@id"]||mintNewIdFromResource(ie)).trim(),type:getNewType(ie),behavior:Z.length?Z:void 0,height:ie.height?ie.height:void 0,width:ie.width?ie.width:void 0,motivation:ee,viewingDirection:ie.viewingDirection,profile:ie.profile,format:ie.format?ie.format:void 0,duration:void 0,timeMode:void 0}}function descriptiveProperties$2(ie){const[Z,ee]=fixLicense(ie.license),ae=[...ie.metadata?convertMetadata(ie.metadata):[],...ee];return{rights:Z,metadata:ae.length?ae:void 0,label:ie.label?convertLanguageMapping(ie.label):void 0,requiredStatement:ie.attribution?{label:convertLanguageMapping(configuration.attributionLabel),value:convertLanguageMapping(ie.attribution)}:void 0,navDate:ie.navDate,summary:ie.description?convertLanguageMapping(ie.description):void 0,thumbnail:ie.thumbnail}}function parseWithin(ie){if(!ie.within)return;const Z=Array.isArray(ie.within)?ie.within:[ie.within],ee=[];for(const ae of Z)if(typeof ae=="string"){if(ae)switch(ie["@type"]){case"sc:Manifest":ee.push({id:ae,type:"Collection"});break}}else ae["@id"]&&ee.push({id:ae["@id"],type:getNewType(ae)});return ee.length?ee:void 0}function linkingProperties$2(ie){const Z=ie.related?Array.isArray(ie.related)?ie.related:[ie.related]:[],ee=ie.contentLayer;return{provider:ie.logo||Z.length?[{id:configuration.providerId,type:"Agent",homepage:Z.length?[Z[0]]:void 0,logo:ie.logo?Array.isArray(ie.logo)?ie.logo:[ie.logo]:void 0,label:convertLanguageMapping(configuration.providerName)}]:void 0,partOf:parseWithin(ie),rendering:ie.rendering,seeAlso:ie.seeAlso,start:ie.startCanvas,service:ie.service?ensureArray$1(ie.service):void 0,supplementary:ee?[ee]:void 0}}function embeddedContentProperties(ie){return{chars:ie.chars,format:ie.format?ie.format:void 0,language:ie.language}}function upgradeCollection(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeManifest(ie){const Z=[],ee=[];for(const ve of ie.sequences||[])ve.canvases.length&&Z.push(...ve.canvases),ve.behavior&&ee.push(...ve.behavior);const ae=technicalProperties$2(ie);return ee.length&&(ae.behavior?ae.behavior.push(...ee):ae.behavior=ee),removeUndefinedProperties({...ae,...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:Z,structures:ie.structures})}function upgradeCanvas(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),annotations:ie.otherContent&&ie.otherContent.length?ie.otherContent:void 0,items:ie.images&&ie.images.length?[{id:mintNewIdFromResource(ie,"annotation-page"),type:"AnnotationPage",items:ie.images}]:void 0})}function upgradeAnnotationList(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.resources&&ie.resources.length?ie.resources:void 0})}function upgradeSequence(ie){return!ie.canvases||ie.canvases.length===0?{canvases:[],behavior:[]}:{canvases:ie.canvases,behavior:ie.viewingHint?[ie.viewingHint]:[]}}function upgradeAnnotation(ie){function Z(ee){if(Array.isArray(ee)){if(ee.length>1)return{type:"List",items:ee.map(Z)};ee=ee[0]}if(typeof ee=="string")return encodeURI(ee).trim();if("@type"in ee){let ae;if(typeof ee.full=="string")ae=ee.full;else if(ee.full["@type"]==="dctypes:Image")ae={id:ee.full["@id"],type:"Image"};else if(ee.full["@type"]==="sc:Canvas")ae={id:ee.full["@id"],type:"Canvas"};else throw new Error(`Unsupported source type on annotation: ${ee.full["@type"]}`);return{type:"SpecificResource",source:ae,selector:upgradeSelector(ee.selector)}}else return encodeURI(ee["@id"]).trim()}return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),target:Z(ie.on),body:Array.isArray(ie.resource)?ie.resource.map(upgradeContentResource):upgradeContentResource(ie.resource)})}function upgradeContentResource(ie){const Z=ie;return removeUndefinedProperties({...technicalProperties$2(Z),...descriptiveProperties$2(Z),...linkingProperties$2(Z),...embeddedContentProperties(Z)})}function upgradeChoice(ie){const Z=[];return ie.default&&ie.default!=="rdf:nil"&&Z.push(ie.default),ie.item&&ie.item!=="rdf:nil"&&Z.push(...ie.item),{...technicalProperties$2(ie),...descriptiveProperties$2(ie),items:Z}}function upgradeRange(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie),items:ie.members})}function upgradeService(ie){const{"@id":Z,"@type":ee,"@context":ae,profile:ve,...ye}=ie,be={};return Z&&(be["@id"]=Z),be["@type"]=getNewType(ie),be["@type"]==="unknown"&&(ae&&ae.length&&(be["@context"]=ae),be["@type"]="Service"),ve&&(be.profile=getProfile(ve)),removeUndefinedProperties({...be,...ye})}function upgradeLayer(ie){return removeUndefinedProperties({...technicalProperties$2(ie),...descriptiveProperties$2(ie),...linkingProperties$2(ie)})}const presentation2to3=new Traverse({collection:[upgradeCollection],manifest:[upgradeManifest],canvas:[upgradeCanvas],annotationList:[upgradeAnnotationList],sequence:[upgradeSequence],annotation:[upgradeAnnotation],contentResource:[upgradeContentResource],choice:[upgradeChoice],range:[upgradeRange],service:[upgradeService],layer:[upgradeLayer]});function convertPresentation2(ie){return ie&&ie["@context"]&&(ie["@context"]==="http://iiif.io/api/presentation/2/context.json"||ie["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")!==-1||ie["@context"]==="http://www.shared-canvas.org/ns/context.json")||ie["@context"]==="http://iiif.io/api/image/2/context.json"?presentation2to3.traverseUnknown(ie):ie}function upgradeSelector(ie){if((Array.isArray(ie["@type"])&&ie["@type"].includes("oa:SvgSelector")||ie["@type"]=="oa:SvgSelector")&&("chars"in ie||"value"in ie))return{type:"SvgSelector",value:"chars"in ie?ie.chars:ie.value};if(ie["@type"]==="oa:FragmentSelector")return{type:"FragmentSelector",value:ie.value};if(ie["@type"]==="oa:Choice")return[upgradeSelector(ie.default),...(Array.isArray(ie.item)?ie.item:[ie.item]).map(upgradeSelector)];if(ie["@type"]=="iiif:ImageApiSelector")return{type:"ImageApiSelector",region:"region"in ie?ie.region:void 0,rotation:"rotation"in ie?ie.rotation:void 0};throw new Error(`Unsupported selector type: ${ie["@type"]}`)}function getDefaultEntities$1(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function getResource(ie,Z){if(typeof ie=="string")return{id:ie,type:Z};if(!ie.id)throw new Error(`Invalid resource does not have an ID (${Z})`);return ie}function mapToEntities(ie){return(Z,ee)=>{const ae=ie[Z]?ie[Z]:{};return ve=>{const ye=getResource(ve,ee||Z);return ye&&ye.id&&Z?(ae[ye.id]=ae[ye.id]?mergeEntities(ae[ye.id],ye):Object.assign({},ye),{id:ye.id,type:Z==="ContentResource"?Z:ye.type}):ye}}}function merge(ie,Z){if(!Z)return ie;if(Array.isArray(ie)){if(!Array.isArray(Z))throw new Error("Cannot merge array with non-array");const ee=[...ie];for(const ae of Z)if(ae!=null)if(Array.isArray(ae))ee.push(ae);else if(typeof ae=="object"&&ae.id&&ae.type){const ve=ee.findIndex(ye=>ye.id===ae.id&&ye.type===ae.type);ve>=0&&(ee[ve]=merge(ee[ve],ae))}else ie.indexOf(ae)===-1&&ee.push(ae);return ee}else if(typeof ie=="object"){if(Array.isArray(Z)||typeof Z!="object")throw new Error("Cannot merge object with non-object");const ee={...ie};for(const[ae,ve]of Object.entries(Z)){const ye=ee[ae];ye===EMPTY||!ye?ee[ae]=ve:ee[ae]=merge(ye,ve)}return ee}else if(ie)return ie;return Z}function mergeEntities(ie,Z){if(typeof ie=="string")return ie;if(Z.id!==ie.id||Z.type!==ie.type)throw new Error("Can only merge entities with identical identifiers and type!");return merge({...ie},Z)}function recordTypeInMapping(ie){return(Z,ee)=>ae=>{const{id:ve,type:ye}=getResource(ae,ee||Z);if(typeof ve>"u")throw new Error("Found invalid entity without an ID.");return Z==="ContentResource"?ie[ve]=Z:ie[ve]=ye,ae}}function hash$1(ie){const Z=JSON.stringify(ie);let ee=5381,ae=Z.length;for(;ae;)ee=ee*33^Z.charCodeAt(--ae);const ye=(ee>>>0).toString(16);return ye.length%2?"0"+ye:ye}function addMissingIdToContentResource(ie){return Z=>typeof Z=="string"?{id:Z,type:ie}:Z.id?Z.type?Z:{type:ie,...Z}:{id:`vault://${hash$1(Z)}`,type:ie,...Z}}function ensureDefaultFields(ie){return Z=>({...ie,...Z})}function ensureArray(ie){return Array.isArray(ie)?ie:[ie]}function ensureArrayOnAnnotation(ie){return ie.body&&(ie.body=ensureArray(ie.body)),ie.seeAlso&&(ie.seeAlso=ensureArray(ie.seeAlso)),ie.body&&(ie.body=ensureArray(ie.body)),ie.audience&&(ie.audience=ensureArray(ie.audience)),ie.accessibility&&(ie.accessibility=ensureArray(ie.accessibility)),ie.motivation&&(ie.motivation=ensureArray(ie.motivation)),ie}function normalize(ie){const Z=convertPresentation2(ie),ee=getDefaultEntities$1(),ae={},ve=mapToEntities(ee),ye=recordTypeInMapping(ae),Ke=new Traverse$1({collection:[ensureDefaultFields(emptyCollection),ye("Collection"),ve("Collection")],manifest:[ensureDefaultFields(emptyManifest),ye("Manifest"),ve("Manifest")],canvas:[ensureDefaultFields(emptyCanvas),ye("Canvas"),ve("Canvas")],annotationPage:[addMissingIdToContentResource("AnnotationPage"),ensureDefaultFields(emptyAnnotationPage),ye("AnnotationPage"),ve("AnnotationPage")],annotation:[addMissingIdToContentResource("Annotation"),ensureArrayOnAnnotation,ye("Annotation"),ve("Annotation")],contentResource:[addMissingIdToContentResource("ContentResource"),ye("ContentResource"),ve("ContentResource")],range:[ensureDefaultFields(emptyRange),ye("Range","Canvas"),ve("Range","Canvas")],agent:[ensureDefaultFields(emptyAgent),ye("Agent"),ve("Agent")]}).traverseUnknown(Z);return{entities:ee,resource:Ke,mapping:ae}}const UNSET="__$UNSET$__",UNWRAP="__$UNWRAP$__";function resolveIfExists$1(ie,Z){const ee=ie.requests[Z],ae=ie.mapping[Z];if(!(!ae||ee&&ee.resourceUri&&!ie.entities[ae][ee.resourceUri]))return ie.entities[ae][ee?ee.resourceUri:Z]}function serializedFieldsToObject(ie){const Z={};for(const[ee,ae]of ie){if(ee===UNWRAP&&ae!==UNSET)return ae;ae!==UNSET&&typeof ae<"u"&&ae!==null&&(Z[ee]=ae)}return Z}function serialize(ie,Z,ee){if(!Z.type||!Z.id)throw new Error("Unknown entity");if(!ee[Z.type])throw new Error(`Serializer not found for ${Z.type}`);function ae(ve){const ye=ee[ve.type];if(!ye)return UNSET;const be=resolveIfExists$1(ie,ve.id)||(ve.id&&ve.type?ve:null);if(!be)return UNSET;const Ke=ye(be,ie,{isTopLevel:Z.id===ve.id});let Ye=Ke.next();for(;!Ye.done;){const Xe=Ye.value;let Qe=UNSET;if(Xe)if(Array.isArray(Xe)){const et=[];for(const Je of Xe)et.push(ae(Je));Qe=et}else Qe=ae(Xe);Ye=Ke.next(Qe)}return Ye.value===UNSET?UNSET:serializedFieldsToObject(Ye.value)}return ae(Z)}function languageString2to3(ie){if(!ie)return;const Z=Object.keys(ie);if(Z.length!==0){if(Z.length===1){const ee=Z[0];if(!ee)return"";const ae=(ie[ee]||[]).join("");return ee==="@none"||ee==="none"||ee==="en"?ae:{"@language":ee,"@value":ae}}return Z.map(ee=>({"@language":ee,"@value":(ie[ee]||[]).join("")}))}}function parseCanvasTarget(ie){return Array.isArray(ie)?ie.map(Z=>parseCanvasTarget(Z)):typeof ie=="string"?ie:ie.type&&ie.type==="Canvas"?ie.id:ie}function unNestArray(ie,Z=!1){if(ie)return ie.length>1&&!Z?ie:ie[0]||void 0}function convertService(ie){if(ie){if(typeof ie=="string")return{"@id":ie};if("@id"in ie){const Z={...ie};return delete Z["@type"],Z}return{"@context":"http://iiif.io/api/image/2/context.json","@id":ie.id,profile:`http://iiif.io/api/image/2/profiles/${ie.profile}.json`}}}function technicalProperties$1(ie,Z){return[["@id",ie.id],["@type",Z],["format",ie.format],["height",ie.height],["width",ie.width],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0]]}function*descriptiveProperties$1(ie){const Z=ie.provider?yield ie.provider[0]:void 0;return[["label",languageString2to3(ie.label)],["metadata",ie.metadata&&ie.metadata.length?ie.metadata.map(ee=>({label:languageString2to3(ee.label)||"",value:languageString2to3(ee.value)||""})):void 0],["description",languageString2to3(ie.summary)],["thumbnail",unNestArray(yield ie.thumbnail)],["navDate",ie.navDate],["logo",Z?unNestArray(Z.logo):void 0],["homepage",Z?Z.homepage:void 0],["attribution",ie.requiredStatement?languageString2to3(ie.requiredStatement.value):void 0]]}function*linkingProperties$1(ie){return[["seeAlso",unNestArray(yield ie.seeAlso)],["service",unNestArray((ie.service||[]).map(convertService))],["rendering",unNestArray(yield ie.rendering)],["startCanvas",ie.start?ie.start.id:void 0]]}const serializeConfigPresentation2={Manifest:function*(ie){return[...technicalProperties$1(ie,"sc:Manifest"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["sequences",[{"@id":`${ie.id}/sequence0`,"@type":"sc:Sequence",canvases:yield ie.items}]],["structures",yield ie.structures]]},Canvas:function*(ie){const ee=(yield ie.items)[0];return[...technicalProperties$1(ie,"sc:Canvas"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["images",ee?[ee.resources]:void 0],["annotations",ie.annotations&&ie.annotations.length?unNestArray(yield ie.annotations):void 0]]},AnnotationPage:function*(ie){return[...technicalProperties$1(ie,"sc:AnnotationList"),...yield*descriptiveProperties$1(ie),["resources",ie.items&&ie.items.length?unNestArray(yield ie.items):void 0]]},Annotation:function*(ie){return[["@id",ie.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",parseCanvasTarget(ie.target)],["resource",unNestArray(yield ie.body,!0)]]},ContentResource:function*(ie){switch(ie.type){case"Image":return[...technicalProperties$1(ie,"dctypes:Image"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie)];case"Text":case"Dataset":default:return[...technicalProperties$1(ie,void 0),...yield*descriptiveProperties$1(ie)]}},AnnotationCollection:function*(ie){return[["@id",ie.id],["@type","sc:Layer"],["label",languageString2to3(ie.label)]]},Collection:function*(ie){return[...technicalProperties$1(ie,"sc:Collection"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["members",yield*ie.items]]},Range:function*(ie){const Z=[],ee=[];if(ie.items)for(const ae of ie.items){const ve=yield ae;Z.push({"@id":ae.id,"@type":ae.type,label:ve?ve.label:void 0,within:ie.id}),ae.type==="Canvas"&&ee.push(ae.id)}return[...technicalProperties$1(ie,"sc:Range"),...yield*descriptiveProperties$1(ie),...yield*linkingProperties$1(ie),["canvases",ee.length===Z.length?ee:void 0],["members",ee.length!==Z.length?Z:void 0]]}};function technicalProperties(ie){var Z;return[["id",(Z=ie.id)!=null&&Z.startsWith("vault://")?void 0:ie.id],["type",ie.type],["format",ie.format],["profile",ie.profile],["height",ie.height],["width",ie.width],["duration",ie.duration||void 0],["viewingDirection",ie.viewingDirection!=="left-to-right"?ie.viewingDirection:void 0],["behavior",ie.behavior&&ie.behavior.length?ie.behavior:void 0],["timeMode",ie.timeMode],["motivation",Array.isArray(ie.motivation)?ie.motivation[0]:ie.motivation]]}function filterEmpty(ie){if(!(!ie||ie.length===0))return ie}function service2compat(ie){if(ie&&ie.type&&ie.type==="ImageService2"){const{id:Z,type:ee,profile:ae,...ve}=ie,ye=typeof ae=="string"?ae:Array.isArray(ae)?ae.find(be=>typeof be=="string"):"";return{"@id":Z,"@type":ee,profile:ye?ye.startsWith("http")?ye:`http://iiif.io/api/image/2/${ye}.json`:"http://iiif.io/api/image/2/level0.json",...ve}}return ie}function filterService2Compat(ie){if(!(!ie||ie.length===0))return ie.map(service2compat)}function*descriptiveProperties(ie){return[["label",ie.label],["metadata",filterEmpty(ie.metadata)],["summary",ie.summary],["requiredStatement",ie.requiredStatement],["rights",ie.rights],["navDate",ie.navDate],["language",ie.language],["thumbnail",filterEmpty(yield ie.thumbnail)],["placeholderCanvas",yield ie.placeholderCanvas],["accompanyingCanvas",yield ie.accompanyingCanvas],["provider",filterEmpty(yield ie.provider)]]}function*linkingProperties(ie){return[["seeAlso",filterEmpty(yield ie.seeAlso)],["service",filterService2Compat(ie.service)],["services",filterService2Compat(ie.services)],["rendering",filterEmpty(yield ie.rendering)],["supplementary",filterEmpty(yield ie.supplementary)],["homepage",filterEmpty(yield ie.homepage)],["logo",filterEmpty(yield ie.logo)],["partOf",filterEmpty(yield ie.partOf)],["start",ie.start]]}const serializeConfigPresentation3={Manifest:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["structures",filterEmpty(yield ie.structures)],["annotations",filterEmpty(yield ie.annotations)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Canvas:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",yield ie.items],["annotations",filterEmpty(yield ie.annotations)]]},Agent:function*(ie){return[["id",ie.id],["type","Agent"],["label",ie.label],...yield*linkingProperties(ie)]},AnnotationPage:function*(ie){return[...Object.entries(ie).map(([ee,ae])=>[ee,Array.isArray(ae)?filterEmpty(ae):ae]).filter(([ee,ae])=>ee!=="items"),...yield*linkingProperties(ie),["items",yield ie.items]]},Service:function*(ie){return[[UNWRAP,service2compat(ie)]]},Annotation:function*(ie){const Z=Object.entries(ie).map(([ae,ve])=>ae==="motivation"?[ae,Array.isArray(ve)?ve[0]:ve]:[ae,Array.isArray(ve)?filterEmpty(ve):ve]).filter(([ae])=>ae!=="body"),ee=yield ie.body;return[...Z,["body",ee.length===1?ee[0]:ee]]},ContentResource:function*(ie){return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["annotations",filterEmpty(yield ie.annotations)],["items",filterEmpty(yield ie.items)]]},AnnotationCollection:function*(ie){return[["id",ie.id],["type","AnnotationCollection"],["label",ie.label]]},Collection:function*(ie,Z,{isTopLevel:ee}){return ee?[["@context","http://iiif.io/api/presentation/3/context.json"],...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",filterEmpty(yield ie.items)]]:[...technicalProperties(ie),...yield*descriptiveProperties(ie)]},Range:function*(ie){const Z=[];for(const ee of ie.items)ee.type==="Range"?Z.push(yield ee):Z.push(ee);return[...technicalProperties(ie),...yield*descriptiveProperties(ie),...yield*linkingProperties(ie),["items",Z],["annotations",filterEmpty(yield ie.annotations)]]}};function n$1(ie){return ie==null}function t$1(ie){throw new Error("Argument "+ie+" is empty.")}function o$1(ie){return typeof ie=="string"||typeof ie=="symbol"}function u$1(ie){return!o$1(ie)}function a$1(ie){throw new Error("Argument "+ie+" is invalid, it should be an action type of type: string | symbol")}function s$1(ie,Z){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),Object.assign(function(){var ee=Z!=null?Z.apply(void 0,arguments):void 0;return Object.assign({type:ie},ee)},{getType:function(){return ie},toString:function(){return ie}})}function y$1(ie,Z,ee){return n$1(ie)&&t$1(1),u$1(ie)&&a$1(1),function(){return s$1(ie,function(){var ae=arguments.length<=0?void 0:arguments[0],ve=arguments.length<=1?void 0:arguments[1];return Z==null&&ee==null||(ae=Z!=null?Z.apply(void 0,arguments):void 0,ve=ee!=null?ee.apply(void 0,arguments):void 0),Object.assign({},ae!==void 0&&{payload:ae},{},ve!==void 0&&{meta:ve})})}}function _typeof(ie){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},_typeof(ie)}function toPrimitive(ie,Z){if(_typeof(ie)!="object"||!ie)return ie;var ee=ie[Symbol.toPrimitive];if(ee!==void 0){var ae=ee.call(ie,Z||"default");if(_typeof(ae)!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(ie)}function toPropertyKey(ie){var Z=toPrimitive(ie,"string");return _typeof(Z)=="symbol"?Z:String(Z)}function _defineProperty$1(ie,Z,ee){return Z=toPropertyKey(Z),Z in ie?Object.defineProperty(ie,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ie[Z]=ee,ie}function ownKeys$1(ie,Z){var ee=Object.keys(ie);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ie);Z&&(ae=ae.filter(function(ve){return Object.getOwnPropertyDescriptor(ie,ve).enumerable})),ee.push.apply(ee,ae)}return ee}function _objectSpread2$1(ie){for(var Z=1;Z"u"&&(ee=Z,Z=void 0),typeof ee<"u"){if(typeof ee!="function")throw new Error(formatProdErrorMessage(1));return ee(createStore$1)(ie,Z)}if(typeof ie!="function")throw new Error(formatProdErrorMessage(2));var ve=ie,ye=Z,be=[],Ke=be,Ye=!1;function Xe(){Ke===be&&(Ke=be.slice())}function Qe(){if(Ye)throw new Error(formatProdErrorMessage(3));return ye}function et(nt){if(typeof nt!="function")throw new Error(formatProdErrorMessage(4));if(Ye)throw new Error(formatProdErrorMessage(5));var tt=!0;return Xe(),Ke.push(nt),function(){if(tt){if(Ye)throw new Error(formatProdErrorMessage(6));tt=!1,Xe();var ot=Ke.indexOf(nt);Ke.splice(ot,1),be=null}}}function Je(nt){if(!isPlainObject$3(nt))throw new Error(formatProdErrorMessage(7));if(typeof nt.type>"u")throw new Error(formatProdErrorMessage(8));if(Ye)throw new Error(formatProdErrorMessage(9));try{Ye=!0,ye=ve(ye,nt)}finally{Ye=!1}for(var tt=be=Ke,st=0;st"u")throw new Error(formatProdErrorMessage(12));if(typeof ee(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(ie){for(var Z=Object.keys(ie),ee={},ae=0;ae"u")throw Xe&&Xe.type,new Error(formatProdErrorMessage(14));et[rt]=tt,Qe=Qe||tt!==nt}return Qe=Qe||ye.length!==Object.keys(Ye).length,Qe?et:Ye}}function compose(){for(var ie=arguments.length,Z=new Array(ie),ee=0;ee{const{entities:ee,resource:ae,mapping:ve}=normalize(Z);if(ae.id===void 0)return[requestError({id:ie,message:"ID is not defined in resource."})];const ye=[importEntities({entities:ee}),addMappings({mapping:ve})];return ae.id!==ie&&(ye.push(addMapping({id:ie,type:ae.type})),ye.push(requestMismatch({requestId:ie,actualId:ae.id}))),ye.push(requestComplete({id:ie})),ye},safeIsNaN=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function isEqual(ie,Z){return!!(ie===Z||safeIsNaN(ie)&&safeIsNaN(Z))}function areInputsEqual(ie,Z){if(!Array.isArray(ie)||!Array.isArray(Z))return ie===Z;if(ie.length!==Z.length)return!1;for(let ee=0;ee{const ye=ie.getState(),be=ye.iiif.requests[ae];if(be)switch(be.loadingState){case RESOURCE_ERROR:break;case RESOURCE_LOADING:{let Ke,Ye=!1;try{const Xe=await Promise.race([new Promise((Qe,et)=>{Ye||(Ke=ie.subscribe(()=>{const Je=ie.getState();if(Je.iiif.requests[ae].loadingState===RESOURCE_ERROR){et();return}if(Je.iiif.requests[ae].loadingState===RESOURCE_READY){const rt=resolveIfExists(Je,ae);rt?Qe(rt):et()}}))}),new Promise((Qe,et)=>setTimeout(()=>{Ye=!0,et()},ee*60))]);if(Ke&&Ke(),Xe)return Xe}catch{Ke&&Ke();break}break}case RESOURCE_READY:{const Ke=resolveIfExists(ye,ae);if(Ke)return Ke;break}}ie.dispatch(requestResource({id:ae}));try{const Ke=await Z(ae,ve);!Ke.id&&!Ke["@id"]&&(Ke["@type"]&&(Ke["@id"]=ae),Ke.id=ae);const Ye=actionListFromResource(ae,Ke);return ie.dispatch(batchActions({actions:Ye})),resolveIfExists(ie.getState(),ae)}catch(Ke){throw ie.dispatch(requestError({id:ae,message:Ke.toString()})),Ke}}}function getDefaultEntities(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}const mappingReducer=(ie={},Z)=>{switch(Z.type){case ADD_MAPPING:return{...ie,[Z.payload.id]:Z.payload.type};case ADD_MAPPINGS:return{...ie,...Z.payload.mapping};default:return ie}};function isReferenceList(ie,Z,ee,ae){return!(!ie[ee]||!ie[ee][Z]||!ie[ee][Z][ae]||!Array.isArray(ie[ee][Z][ae]))}function quickMerge(ie,Z){const ee={},ae=[];for(const[ve,ye]of Object.entries(ie||{})){ae.push(ve);const be=(Z||{})[ve];if(!be||be.length===0){ee[ve]=ye;continue}ee[ve]=be}for(const[ve,ye]of Object.entries(Z||{}))ae.indexOf(ve)===-1&&(ee[ve]=ye);return ee}const entitiesReducer=(ie=getDefaultEntities(),Z)=>{var ee;switch(Z.type){case MODIFY_ENTITY_FIELD:{if(!ie[Z.payload.type]||!ie[Z.payload.type][Z.payload.id])return ie;const ae=ie[Z.payload.type][Z.payload.id];return typeof ae=="string"?ie:{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:Z.payload.value}}}}case REORDER_ENTITY_FIELD:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id];if(typeof ae=="string")return ie;const ve=Array.from(ae[Z.payload.key]),[ye]=ve.splice(Z.payload.startIndex,1);return ve.splice(Z.payload.endIndex,0,ye),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case IMPORT_ENTITIES:{const ae=Object.keys(Z.payload.entities),ve={...ie};for(const ye of ae){const be=Z.payload.entities[ye],Ke={...ie[ye]||{}};let Ye=!1;const Xe=Object.keys(be||{})||[];if(be&&Xe){for(const Qe of Xe)Ye=!0,Ke[Qe]=ie[ye][Qe]?quickMerge(ie[ye][Qe],be[Qe]):be[Qe];Ye&&(ve[ye]=Ke)}}return ve}case ADD_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]);return ve.splice(Z.payload.index||ve.length+1,0,Z.payload.reference),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}}}case REMOVE_REFERENCE:{if(!isReferenceList(ie,Z.payload.id,Z.payload.type,Z.payload.key))return ie;const ae=ie[Z.payload.type][Z.payload.id],ve=Array.from(ae[Z.payload.key]),ye=Z.payload.index||ve.findIndex(be=>be&&be.id===Z.payload.reference.id);return ye===-1||((ee=ve[ye])==null?void 0:ee.id)!==Z.payload.reference.id?ie:(ve.splice(ye,1),{...ie,[Z.payload.type]:{...ie[Z.payload.type],[Z.payload.id]:{...ae,[Z.payload.key]:ve}}})}default:return ie}},requestReducer=(ie={},Z)=>{switch(Z.type){case REQUEST_RESOURCE:case REQUEST_OFFLINE_RESOURCE:return{...ie,[Z.payload.id]:{requestUri:Z.payload.id,loadingState:RESOURCE_LOADING,uriMismatch:!1,resourceUri:Z.payload.id}};case REQUEST_MISMATCH:return{...ie,[Z.payload.requestId]:{...ie[Z.payload.requestId]||{},uriMismatch:!0,resourceUri:Z.payload.actualId},[Z.payload.actualId]:{requestUri:Z.payload.requestId,loadingState:ie[Z.payload.requestId].loadingState,uriMismatch:!0,resourceUri:Z.payload.actualId}};case REQUEST_ERROR:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_ERROR,error:Z.payload.message}};case REQUEST_COMPLETE:return{...ie,[Z.payload.id]:{...ie[Z.payload.id]||{},loadingState:RESOURCE_READY,error:void 0}}}return ie},metaReducer=(ie={},Z)=>{const{id:ee,updateValue:ae,value:ve,meta:ye,key:be}=Z&&Z.payload||{};switch(Z.type){case SET_META_VALUE:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ve}}};case SET_META_VALUE_DYNAMIC:return{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:ie[ee]&&ie[ee][ye]?ae(ie[ee][ye][be]):ae(void 0)}}};case UNSET_META_VALUE:return ie[ee]&&ie[ee][ye]&&ie[ee][ye][be]?{...ie,[ee]:{...ie[ee]||{},[ye]:{...ie[ee]?ie[ee][ye]||{}:{},[be]:void 0}}}:ie;default:return ie}};function createBatchReducer(ie){return(Z,ee)=>ee&&ee.type===BATCH_ACTIONS?ee.payload.actions.reduce(ie,Z):ee&&ee.type===BATCH_IMPORT?ee.payload.state:ie(Z,ee)}const reducers=combineReducers({mapping:mappingReducer,entities:entitiesReducer,requests:requestReducer,meta:metaReducer}),composeEnhancers=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose;function createStore(ie={}){const{enableDevtools:Z=!0,iiifStoreName:ee="iiif",defaultState:ae={},extraMiddleware:ve=[],customReducers:ye={}}=ie,be=combineReducers({[ee]:reducers,...ye});return createStore$1(createBatchReducer(be),ae,Z?composeEnhancers(applyMiddleware(...ve)):compose(applyMiddleware(...ve)))}function mitt(ie){return{all:ie=ie||new Map,on:function(Z,ee){var ae=ie.get(Z);ae?ae.push(ee):ie.set(Z,[ee])},off:function(Z,ee){var ae=ie.get(Z);ae&&(ee?ae.splice(ae.indexOf(ee)>>>0,1):ie.set(Z,[]))},emit:function(Z,ee){var ae=ie.get(Z);ae&&ae.slice().map(function(ve){ve(ee)}),(ae=ie.get("*"))&&ae.slice().map(function(ve){ve(Z,ee)})}}}class Vault{constructor(Z,ee){Vi(this,"options");Vi(this,"store");Vi(this,"emitter");Vi(this,"isBatching",!1);Vi(this,"batchQueue",[]);Vi(this,"remoteFetcher");Vi(this,"staticFetcher");Vi(this,"defaultFetcher",Z=>fetch(Z).then(ee=>ee.json()));Vi(this,"middleware",Z=>ee=>ae=>{if(ae.type===BATCH_ACTIONS){for(const be of ae.payload.actions)this.emitter.emit(be.type,{realAction:be,state:Z.getState()});const ye=ee(ae);for(const be of ae.payload.actions)this.emitter.emit(`after:${ae.type}`,{action:ae,state:ye});return ye}this.emitter.emit(ae.type,{action:ae,state:Z.getState()});const ve=ee(ae);return this.emitter.emit(`after:${ae.type}`,{action:ae,state:ve}),ve});this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},Z||{}),this.store=ee||createStore({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=mitt(),this.remoteFetcher=createFetchHelper(this.store,this.options.customFetcher),this.staticFetcher=createFetchHelper(this.store,(ae,ve)=>ve)}batch(Z){this.isBatching=!0;try{Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}async asyncBatch(Z){this.isBatching=!0;try{await Z(this),this.store.dispatch(batchActions({actions:this.batchQueue}))}catch(ee){throw this.batchQueue=[],this.isBatching=!1,ee}this.batchQueue=[],this.isBatching=!1}modifyEntityField(Z,ee,ae){this.dispatch(entityActions.modifyEntityField({id:Z.id,type:Z.type,key:ee,value:ae}))}dispatch(Z){this.isBatching?this.batchQueue.push(Z):this.store.dispatch(Z)}serialize(Z,ee){return serialize(this.getState().iiif,Z,ee)}toPresentation2(Z){return this.serialize(Z,serializeConfigPresentation2)}toPresentation3(Z){return this.serialize(Z,serializeConfigPresentation3)}hydrate(Z,ee){return this.get(Z,ee,{skipSelfReturn:!1})}get(Z,ee,ae={}){typeof ee!="string"&&(ae=ee||{},ee=void 0);const{skipSelfReturn:ve=!0}=ae||{};if(Array.isArray(Z))return Z.map(Xe=>this.get(Xe,ae));const ye=this.getState();if(typeof Z=="string"){const Xe=ee||ye.iiif.mapping[Z];if(!Xe)return ve?null:{id:Z,type:"unknown"};Z={id:Z,type:Xe}}const be=ee||Z.type,Ke=Z.id,Ye=ye.iiif.entities[be];if(!Ye){const Xe=ye.iiif.requests[Ke];return Xe&&Xe.resourceUri!==Ke?this.get(Xe.resourceUri,ae):ve?null:Z}return Ye[Z.id]||(ve?null:Z)}select(Z){return Z(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}loadCollection(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return this.load(ae,ee)}load(Z,ee){const ae=typeof Z=="string"?Z:Z.id;return ee?this.staticFetcher(ae,ee):this.remoteFetcher(ae)}areInputsEqual(Z,ee){return areInputsEqual(Z,ee)}subscribe(Z,ee,ae){typeof ae>"u"&&(typeof ee>"u"||ee===!1||ee===!0)&&(ae=ee,ee=Z,Z=ye=>ye);let ve=ae?null:Z(this.store.getState());return ae||ee(ve,this),this.store.subscribe(()=>{const ye=this.store.getState(),be=Z(ye);ve!==be&&!areInputsEqual(ve,be)&&ee(be,this),ve=be})}async ensureLoaded(Z){const ee=typeof Z=="string"?Z:Z.id;this.requestStatus(ee)||await this.load(ee)}requestStatus(Z){return this.select(ee=>ee.iiif.requests[Z])}getResourceMeta(Z,ee){const ae=this.getState().iiif.meta[Z];if(ae)return ee?ae[ee]:ae}setMetaValue([Z,ee,ae],ve){this.dispatch(typeof ve=="function"?metaActions.setMetaValueDynamic({id:Z,meta:ee,key:ae,updateValue:ve}):metaActions.setMetaValue({id:Z,meta:ee,key:ae,value:ve}))}}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(ie){for(var Z=1;Zit,Object.values(it));return reactExports.createElement(nt.Provider,{value:tt},rt)}function Qe(et,Je){const rt=(Je==null?void 0:Je[ie][Ye])||Ke,it=reactExports.useContext(rt);if(it)return it;if(be!==void 0)return be;throw new Error(`\`${et}\` must be used within \`${ye}\``)}return Xe.displayName=ye+"Provider",[Xe,Qe]}const ve=()=>{const ye=ee.map(be=>reactExports.createContext(be));return function(Ke){const Ye=(Ke==null?void 0:Ke[ie])||ye;return reactExports.useMemo(()=>({[`__scope${ie}`]:{...Ke,[ie]:Ye}}),[Ke,Ye])}};return ve.scopeName=ie,[ae,$c512c27ab02ef895$var$composeContextScopes(ve,...Z)]}function $c512c27ab02ef895$var$composeContextScopes(...ie){const Z=ie[0];if(ie.length===1)return Z;const ee=()=>{const ae=ie.map(ve=>({useScope:ve(),scopeName:ve.scopeName}));return function(ye){const be=ae.reduce((Ke,{useScope:Ye,scopeName:Xe})=>{const et=Ye(ye)[`__scope${Xe}`];return{...Ke,...et}},{});return reactExports.useMemo(()=>({[`__scope${Z.scopeName}`]:be}),[be])}};return ee.scopeName=Z.scopeName,ee}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ie){const Z=reactExports.useRef(ie);return reactExports.useEffect(()=>{Z.current=ie}),reactExports.useMemo(()=>(...ee)=>{var ae;return(ae=Z.current)===null||ae===void 0?void 0:ae.call(Z,...ee)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:ie,defaultProp:Z,onChange:ee=()=>{}}){const[ae,ve]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:Z,onChange:ee}),ye=ie!==void 0,be=ye?ie:ae,Ke=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ee),Ye=reactExports.useCallback(Xe=>{if(ye){const et=typeof Xe=="function"?Xe(ie):Xe;et!==ie&&Ke(et)}else ve(Xe)},[ye,ie,ve,Ke]);return[be,Ye]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:ie,onChange:Z}){const ee=reactExports.useState(ie),[ae]=ee,ve=reactExports.useRef(ae),ye=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Z);return reactExports.useEffect(()=>{ve.current!==ae&&(ye(ae),ve.current=ae)},[ae,ve,ye]),ee}const $9f79659886946c16$export$e5c5a5f917a5871c=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:()=>{};function $6ed0406888f73fc4$var$setRef(ie,Z){typeof ie=="function"?ie(Z):ie!=null&&(ie.current=Z)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...ie){return Z=>ie.forEach(ee=>$6ed0406888f73fc4$var$setRef(ee,Z))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...ie){return reactExports.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...ie),ie)}const $5e63c961fc1ce211$export$8c6ed5c666ac1360=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie,ve=reactExports.Children.toArray(ee),ye=ve.find($5e63c961fc1ce211$var$isSlottable);if(ye){const be=ye.props.children,Ke=ve.map(Ye=>Ye===ye?reactExports.Children.count(be)>1?reactExports.Children.only(null):reactExports.isValidElement(be)?be.props.children:null:Ye);return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),reactExports.isValidElement(be)?reactExports.cloneElement(be,void 0,Ke):null)}return reactExports.createElement($5e63c961fc1ce211$var$SlotClone,_extends$1({},ae,{ref:Z}),ee)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";const $5e63c961fc1ce211$var$SlotClone=reactExports.forwardRef((ie,Z)=>{const{children:ee,...ae}=ie;return reactExports.isValidElement(ee)?reactExports.cloneElement(ee,{...$5e63c961fc1ce211$var$mergeProps(ae,ee.props),ref:Z?$6ed0406888f73fc4$export$43e446d32b3d21af(Z,ee.ref):ee.ref}):reactExports.Children.count(ee)>1?reactExports.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:ie})=>reactExports.createElement(reactExports.Fragment,null,ie);function $5e63c961fc1ce211$var$isSlottable(ie){return reactExports.isValidElement(ie)&&ie.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(ie,Z){const ee={...Z};for(const ae in Z){const ve=ie[ae],ye=Z[ae];/^on[A-Z]/.test(ae)?ve&&ye?ee[ae]=(...Ke)=>{ye(...Ke),ve(...Ke)}:ve&&(ee[ae]=ve):ae==="style"?ee[ae]={...ve,...ye}:ae==="className"&&(ee[ae]=[ve,ye].filter(Boolean).join(" "))}return{...ie,...ee}}const $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((ie,Z)=>{const ee=reactExports.forwardRef((ae,ve)=>{const{asChild:ye,...be}=ae,Ke=ye?$5e63c961fc1ce211$export$8c6ed5c666ac1360:Z;return reactExports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),reactExports.createElement(Ke,_extends$1({},be,{ref:ve}))});return ee.displayName=`Primitive.${Z}`,{...ie,[Z]:ee}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(ie,Z){ie&&reactDomExports.flushSync(()=>ie.dispatchEvent(Z))}function $fe963b355347cc68$export$3e6543de14f8614f(ie,Z){return reactExports.useReducer((ee,ae)=>{const ve=Z[ee][ae];return ve??ee},ie)}const $921a889cee6df7e8$export$99c2b779aa4e8b8b=ie=>{const{present:Z,children:ee}=ie,ae=$921a889cee6df7e8$var$usePresence(Z),ve=typeof ee=="function"?ee({present:ae.isPresent}):reactExports.Children.only(ee),ye=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(ae.ref,ve.ref);return typeof ee=="function"||ae.isPresent?reactExports.cloneElement(ve,{ref:ye}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(ie){const[Z,ee]=reactExports.useState(),ae=reactExports.useRef({}),ve=reactExports.useRef(ie),ye=reactExports.useRef("none"),be=ie?"mounted":"unmounted",[Ke,Ye]=$fe963b355347cc68$export$3e6543de14f8614f(be,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports.useEffect(()=>{const Xe=$921a889cee6df7e8$var$getAnimationName(ae.current);ye.current=Ke==="mounted"?Xe:"none"},[Ke]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const Xe=ae.current,Qe=ve.current;if(Qe!==ie){const Je=ye.current,rt=$921a889cee6df7e8$var$getAnimationName(Xe);ie?Ye("MOUNT"):rt==="none"||(Xe==null?void 0:Xe.display)==="none"?Ye("UNMOUNT"):Ye(Qe&&Je!==rt?"ANIMATION_OUT":"UNMOUNT"),ve.current=ie}},[ie,Ye]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(Z){const Xe=et=>{const rt=$921a889cee6df7e8$var$getAnimationName(ae.current).includes(et.animationName);et.target===Z&&rt&&reactDomExports.flushSync(()=>Ye("ANIMATION_END"))},Qe=et=>{et.target===Z&&(ye.current=$921a889cee6df7e8$var$getAnimationName(ae.current))};return Z.addEventListener("animationstart",Qe),Z.addEventListener("animationcancel",Xe),Z.addEventListener("animationend",Xe),()=>{Z.removeEventListener("animationstart",Qe),Z.removeEventListener("animationcancel",Xe),Z.removeEventListener("animationend",Xe)}}else Ye("ANIMATION_END")},[Z,Ye]),{isPresent:["mounted","unmountSuspended"].includes(Ke),ref:reactExports.useCallback(Xe=>{Xe&&(ae.current=getComputedStyle(Xe)),ee(Xe)},[])}}function $921a889cee6df7e8$var$getAnimationName(ie){return(ie==null?void 0:ie.animationName)||"none"}const $1746a345f3d73bb7$var$useReactId=$2AODx$react.useId||(()=>{});let $1746a345f3d73bb7$var$count=0;function $1746a345f3d73bb7$export$f680877a34711e37(ie){const[Z,ee]=reactExports.useState($1746a345f3d73bb7$var$useReactId());return $9f79659886946c16$export$e5c5a5f917a5871c(()=>{ie||ee(ae=>ae??String($1746a345f3d73bb7$var$count++))},[ie]),ie||(Z?`radix-${Z}`:"")}const $409067139f391064$var$COLLAPSIBLE_NAME="Collapsible",[$409067139f391064$var$createCollapsibleContext,$409067139f391064$export$952b32dcbe73087a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME),[$409067139f391064$var$CollapsibleProvider,$409067139f391064$var$useCollapsibleContext]=$409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME),$409067139f391064$export$6eb0f7ddcda6131f=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,open:ae,defaultOpen:ve,disabled:ye,onOpenChange:be,...Ke}=ie,[Ye=!1,Xe]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,defaultProp:ve,onChange:be});return reactExports.createElement($409067139f391064$var$CollapsibleProvider,{scope:ee,disabled:ye,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:Ye,onOpenToggle:reactExports.useCallback(()=>Xe(Qe=>!Qe),[Xe])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(Ye),"data-disabled":ye?"":void 0},Ke,{ref:Z})))}),$409067139f391064$var$TRIGGER_NAME="CollapsibleTrigger",$409067139f391064$export$c135dce7b15bbbdc=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME,ee);return reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button","aria-controls":ve.contentId,"aria-expanded":ve.open||!1,"data-state":$409067139f391064$var$getState(ve.open),"data-disabled":ve.disabled?"":void 0,disabled:ve.disabled},ae,{ref:Z,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onClick,ve.onOpenToggle)}))}),$409067139f391064$var$CONTENT_NAME="CollapsibleContent",$409067139f391064$export$aadde00976f34151=reactExports.forwardRef((ie,Z)=>{const{forceMount:ee,...ae}=ie,ve=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ie.__scopeCollapsible);return reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ee||ve.open},({present:ye})=>reactExports.createElement($409067139f391064$var$CollapsibleContentImpl,_extends$1({},ae,{ref:Z,present:ye})))}),$409067139f391064$var$CollapsibleContentImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeCollapsible:ee,present:ae,children:ve,...ye}=ie,be=$409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME,ee),[Ke,Ye]=reactExports.useState(ae),Xe=reactExports.useRef(null),Qe=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,Xe),et=reactExports.useRef(0),Je=et.current,rt=reactExports.useRef(0),it=rt.current,nt=be.open||Ke,tt=reactExports.useRef(nt),st=reactExports.useRef();return reactExports.useEffect(()=>{const ot=requestAnimationFrame(()=>tt.current=!1);return()=>cancelAnimationFrame(ot)},[]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const ot=Xe.current;if(ot){st.current=st.current||{transitionDuration:ot.style.transitionDuration,animationName:ot.style.animationName},ot.style.transitionDuration="0s",ot.style.animationName="none";const ut=ot.getBoundingClientRect();et.current=ut.height,rt.current=ut.width,tt.current||(ot.style.transitionDuration=st.current.transitionDuration,ot.style.animationName=st.current.animationName),Ye(ae)}},[be.open,ae]),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":$409067139f391064$var$getState(be.open),"data-disabled":be.disabled?"":void 0,id:be.contentId,hidden:!nt},ye,{ref:Qe,style:{"--radix-collapsible-content-height":Je?`${Je}px`:void 0,"--radix-collapsible-content-width":it?`${it}px`:void 0,...ie.style}}),nt&&ve)});function $409067139f391064$var$getState(ie){return ie?"open":"closed"}const $409067139f391064$export$be92b6f5f03c0fe9=$409067139f391064$export$6eb0f7ddcda6131f,$409067139f391064$export$41fb9f06171c75f4=$409067139f391064$export$c135dce7b15bbbdc,$409067139f391064$export$7c6e2c02157bb7d2=$409067139f391064$export$aadde00976f34151,ErrorBoundaryContext=reactExports.createContext(null),initialState={didCatch:!1,error:null};class ErrorBoundary extends reactExports.Component{constructor(Z){super(Z),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=initialState}static getDerivedStateFromError(Z){return{didCatch:!0,error:Z}}resetErrorBoundary(){const{error:Z}=this.state;if(Z!==null){for(var ee,ae,ve=arguments.length,ye=new Array(ve),be=0;be0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ie.length!==Z.length||ie.some((ee,ae)=>!Object.is(ee,Z[ae]))}var e="colors",t="sizes",r="space",n={gap:r,gridGap:r,columnGap:r,gridColumnGap:r,rowGap:r,gridRowGap:r,inset:r,insetBlock:r,insetBlockEnd:r,insetBlockStart:r,insetInline:r,insetInlineEnd:r,insetInlineStart:r,margin:r,marginTop:r,marginRight:r,marginBottom:r,marginLeft:r,marginBlock:r,marginBlockEnd:r,marginBlockStart:r,marginInline:r,marginInlineEnd:r,marginInlineStart:r,padding:r,paddingTop:r,paddingRight:r,paddingBottom:r,paddingLeft:r,paddingBlock:r,paddingBlockEnd:r,paddingBlockStart:r,paddingInline:r,paddingInlineEnd:r,paddingInlineStart:r,top:r,right:r,bottom:r,left:r,scrollMargin:r,scrollMarginTop:r,scrollMarginRight:r,scrollMarginBottom:r,scrollMarginLeft:r,scrollMarginX:r,scrollMarginY:r,scrollMarginBlock:r,scrollMarginBlockEnd:r,scrollMarginBlockStart:r,scrollMarginInline:r,scrollMarginInlineEnd:r,scrollMarginInlineStart:r,scrollPadding:r,scrollPaddingTop:r,scrollPaddingRight:r,scrollPaddingBottom:r,scrollPaddingLeft:r,scrollPaddingX:r,scrollPaddingY:r,scrollPaddingBlock:r,scrollPaddingBlockEnd:r,scrollPaddingBlockStart:r,scrollPaddingInline:r,scrollPaddingInlineEnd:r,scrollPaddingInlineStart:r,fontSize:"fontSizes",background:e,backgroundColor:e,backgroundImage:e,borderImage:e,border:e,borderBlock:e,borderBlockEnd:e,borderBlockStart:e,borderBottom:e,borderBottomColor:e,borderColor:e,borderInline:e,borderInlineEnd:e,borderInlineStart:e,borderLeft:e,borderLeftColor:e,borderRight:e,borderRightColor:e,borderTop:e,borderTopColor:e,caretColor:e,color:e,columnRuleColor:e,fill:e,outline:e,outlineColor:e,stroke:e,textDecorationColor:e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:t,minBlockSize:t,maxBlockSize:t,inlineSize:t,minInlineSize:t,maxInlineSize:t,width:t,minWidth:t,maxWidth:t,height:t,minHeight:t,maxHeight:t,flexBasis:t,gridTemplateColumns:t,gridTemplateRows:t,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},i=(ie,Z)=>typeof Z=="function"?{"()":Function.prototype.toString.call(Z)}:Z,o=()=>{const ie=Object.create(null);return(Z,ee,...ae)=>{const ve=(ye=>JSON.stringify(ye,i))(Z);return ve in ie?ie[ve]:ie[ve]=ee(Z,...ae)}},l=Symbol.for("sxs.internal"),s=(ie,Z)=>Object.defineProperties(ie,Object.getOwnPropertyDescriptors(Z)),a=ie=>{for(const Z in ie)return!0;return!1},{hasOwnProperty:c}=Object.prototype,d=ie=>ie.includes("-")?ie:ie.replace(/[A-Z]/g,Z=>"-"+Z.toLowerCase()),g=/\s+(?![^()]*\))/,p=ie=>Z=>ie(...typeof Z=="string"?String(Z).split(g):[Z]),u={appearance:ie=>({WebkitAppearance:ie,appearance:ie}),backfaceVisibility:ie=>({WebkitBackfaceVisibility:ie,backfaceVisibility:ie}),backdropFilter:ie=>({WebkitBackdropFilter:ie,backdropFilter:ie}),backgroundClip:ie=>({WebkitBackgroundClip:ie,backgroundClip:ie}),boxDecorationBreak:ie=>({WebkitBoxDecorationBreak:ie,boxDecorationBreak:ie}),clipPath:ie=>({WebkitClipPath:ie,clipPath:ie}),content:ie=>({content:ie.includes('"')||ie.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(ie)?ie:`"${ie}"`}),hyphens:ie=>({WebkitHyphens:ie,hyphens:ie}),maskImage:ie=>({WebkitMaskImage:ie,maskImage:ie}),maskSize:ie=>({WebkitMaskSize:ie,maskSize:ie}),tabSize:ie=>({MozTabSize:ie,tabSize:ie}),textSizeAdjust:ie=>({WebkitTextSizeAdjust:ie,textSizeAdjust:ie}),userSelect:ie=>({WebkitUserSelect:ie,userSelect:ie}),marginBlock:p((ie,Z)=>({marginBlockStart:ie,marginBlockEnd:Z||ie})),marginInline:p((ie,Z)=>({marginInlineStart:ie,marginInlineEnd:Z||ie})),maxSize:p((ie,Z)=>({maxBlockSize:ie,maxInlineSize:Z||ie})),minSize:p((ie,Z)=>({minBlockSize:ie,minInlineSize:Z||ie})),paddingBlock:p((ie,Z)=>({paddingBlockStart:ie,paddingBlockEnd:Z||ie})),paddingInline:p((ie,Z)=>({paddingInlineStart:ie,paddingInlineEnd:Z||ie}))},h=/([\d.]+)([^]*)/,f=(ie,Z)=>ie.length?ie.reduce((ee,ae)=>(ee.push(...Z.map(ve=>ve.includes("&")?ve.replace(/&/g,/[ +>|~]/.test(ae)&&/&.*&/.test(ve)?`:is(${ae})`:ae):ae+" "+ve)),ee),[]):Z,m$1=(ie,Z)=>ie in b&&typeof Z=="string"?Z.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(ee,ae,ve,ye)=>ae+(ve==="stretch"?`-moz-available${ye};${d(ie)}:${ae}-webkit-fill-available`:`-moz-fit-content${ye};${d(ie)}:${ae}fit-content`)+ye):String(Z),b={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S$1=ie=>ie?ie+"-":"",k$1=(ie,Z,ee)=>ie.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(ae,ve,ye,be,Ke)=>be=="$"==!!ye?ae:(ve||be=="--"?"calc(":"")+"var(--"+(be==="$"?S$1(Z)+(Ke.includes("$")?"":S$1(ee))+Ke.replace(/\$/g,"-"):Ke)+")"+(ve||be=="--"?"*"+(ve||"")+(ye||"1")+")":"")),y=/\s*,\s*(?![^()]*\))/,B=Object.prototype.toString,$=(ie,Z,ee,ae,ve)=>{let ye,be,Ke;const Ye=(Xe,Qe,et)=>{let Je,rt;const it=nt=>{for(Je in nt){const ot=Je.charCodeAt(0)===64,ut=ot&&Array.isArray(nt[Je])?nt[Je]:[nt[Je]];for(rt of ut){const ft=/[A-Z]/.test(st=Je)?st:st.replace(/-[^]/g,Xr=>Xr[1].toUpperCase()),pt=typeof rt=="object"&&rt&&rt.toString===B&&(!ae.utils[ft]||!Qe.length);if(ft in ae.utils&&!pt){const Xr=ae.utils[ft];if(Xr!==be){be=Xr,it(Xr(rt)),be=null;continue}}else if(ft in u){const Xr=u[ft];if(Xr!==Ke){Ke=Xr,it(Xr(rt)),Ke=null;continue}}if(ot&&(tt=Je.slice(1)in ae.media?"@media "+ae.media[Je.slice(1)]:Je,Je=tt.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(Xr,mt,Yr,ri,Zr,_r)=>{const Kr=h.test(mt),si=.0625*(Kr?-1:1),[oi,Qr]=Kr?[ri,mt]:[mt,ri];return"("+(Yr[0]==="="?"":Yr[0]===">"===Kr?"max-":"min-")+oi+":"+(Yr[0]!=="="&&Yr.length===1?Qr.replace(h,(ii,ti,ni)=>Number(ti)+si*(Yr===">"?1:-1)+ni):Qr)+(Zr?") and ("+(Zr[0]===">"?"min-":"max-")+oi+":"+(Zr.length===1?_r.replace(h,(ii,ti,ni)=>Number(ti)+si*(Zr===">"?-1:1)+ni):_r):"")+")"})),pt){const Xr=ot?et.concat(Je):[...et],mt=ot?[...Qe]:f(Qe,Je.split(y));ye!==void 0&&ve(x$1(...ye)),ye=void 0,Ye(rt,mt,Xr)}else ye===void 0&&(ye=[[],Qe,et]),Je=ot||Je.charCodeAt(0)!==36?Je:`--${S$1(ae.prefix)}${Je.slice(1).replace(/\$/g,"-")}`,rt=pt?rt:typeof rt=="number"?rt&&ft in I?String(rt)+"px":String(rt):k$1(m$1(ft,rt??""),ae.prefix,ae.themeMap[ft]),ye[0].push(`${ot?`${Je} `:`${d(Je)}:`}${rt}`)}}var tt,st};it(Xe),ye!==void 0&&ve(x$1(...ye)),ye=void 0};Ye(ie,Z,ee)},x$1=(ie,Z,ee)=>`${ee.map(ae=>`${ae}{`).join("")}${Z.length?`${Z.join(",")}{`:""}${ie.join(";")}${Z.length?"}":""}${Array(ee.length?ee.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},R$1=ie=>String.fromCharCode(ie+(ie>25?39:97)),z$1=ie=>(Z=>{let ee,ae="";for(ee=Math.abs(Z);ee>52;ee=ee/52|0)ae=R$1(ee%52)+ae;return R$1(ee%52)+ae})(((Z,ee)=>{let ae=ee.length;for(;ae;)Z=33*Z^ee.charCodeAt(--ae);return Z})(5381,JSON.stringify(ie))>>>0),W$1=["themed","global","styled","onevar","resonevar","allvar","inline"],j$1=ie=>{if(ie.href&&!ie.href.startsWith(location.origin))return!1;try{return!!ie.cssRules}catch{return!1}},E=ie=>{let Z;const ee=()=>{const{cssRules:ve}=Z.sheet;return[].map.call(ve,(ye,be)=>{const{cssText:Ke}=ye;let Ye="";if(Ke.startsWith("--sxs"))return"";if(ve[be-1]&&(Ye=ve[be-1].cssText).startsWith("--sxs")){if(!ye.cssRules.length)return"";for(const Xe in Z.rules)if(Z.rules[Xe].group===ye)return`--sxs{--sxs:${[...Z.rules[Xe].cache].join(" ")}}${Ke}`;return ye.cssRules.length?`${Ye}${Ke}`:""}return Ke}).join("")},ae=()=>{if(Z){const{rules:Ke,sheet:Ye}=Z;if(!Ye.deleteRule){for(;Object(Object(Ye.cssRules)[0]).type===3;)Ye.cssRules.splice(0,1);Ye.cssRules=[]}for(const Xe in Ke)delete Ke[Xe]}const ve=Object(ie).styleSheets||[];for(const Ke of ve)if(j$1(Ke)){for(let Ye=0,Xe=Ke.cssRules;Xe[Ye];++Ye){const Qe=Object(Xe[Ye]);if(Qe.type!==1)continue;const et=Object(Xe[Ye+1]);if(et.type!==4)continue;++Ye;const{cssText:Je}=Qe;if(!Je.startsWith("--sxs"))continue;const rt=Je.slice(14,-3).trim().split(/\s+/),it=W$1[rt[0]];it&&(Z||(Z={sheet:Ke,reset:ae,rules:{},toString:ee}),Z.rules[it]={group:et,index:Ye,cache:new Set(rt)})}if(Z)break}if(!Z){const Ke=(Ye,Xe)=>({type:Xe,cssRules:[],insertRule(Qe,et){this.cssRules.splice(et,0,Ke(Qe,{import:3,undefined:1}[(Qe.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return Ye==="@media{}"?`@media{${[].map.call(this.cssRules,Qe=>Qe.cssText).join("")}}`:Ye}});Z={sheet:ie?(ie.head||ie).appendChild(document.createElement("style")).sheet:Ke("","text/css"),rules:{},reset:ae,toString:ee}}const{sheet:ye,rules:be}=Z;for(let Ke=W$1.length-1;Ke>=0;--Ke){const Ye=W$1[Ke];if(!be[Ye]){const Xe=W$1[Ke+1],Qe=be[Xe]?be[Xe].index:ye.cssRules.length;ye.insertRule("@media{}",Qe),ye.insertRule(`--sxs{--sxs:${Ke}}`,Qe),be[Ye]={group:ye.cssRules[Qe+1],index:Qe,cache:new Set([Ke])}}v(be[Ye])}};return ae(),Z},v=ie=>{const Z=ie.group;let ee=Z.cssRules.length;ie.apply=ae=>{try{Z.insertRule(ae,ee),++ee}catch{}}},T$1=Symbol(),w=o(),M=(ie,Z)=>w(ie,()=>(...ee)=>{let ae={type:null,composers:new Set};for(const ve of ee)if(ve!=null)if(ve[l]){ae.type==null&&(ae.type=ve[l].type);for(const ye of ve[l].composers)ae.composers.add(ye)}else ve.constructor!==Object||ve.$$typeof?ae.type==null&&(ae.type=ve):ae.composers.add(C(ve,ie));return ae.type==null&&(ae.type="span"),ae.composers.size||ae.composers.add(["PJLV",{},[],[],{},[]]),P(ie,ae,Z)}),C=({variants:ie,compoundVariants:Z,defaultVariants:ee,...ae},ve)=>{const ye=`${S$1(ve.prefix)}c-${z$1(ae)}`,be=[],Ke=[],Ye=Object.create(null),Xe=[];for(const Je in ee)Ye[Je]=String(ee[Je]);if(typeof ie=="object"&&ie)for(const Je in ie){Qe=Ye,et=Je,c.call(Qe,et)||(Ye[Je]="undefined");const rt=ie[Je];for(const it in rt){const nt={[Je]:String(it)};String(it)==="undefined"&&Xe.push(Je);const tt=rt[it],st=[nt,tt,!a(tt)];be.push(st)}}var Qe,et;if(typeof Z=="object"&&Z)for(const Je of Z){let{css:rt,...it}=Je;rt=typeof rt=="object"&&rt||{};for(const tt in it)it[tt]=String(it[tt]);const nt=[it,rt,!a(rt)];Ke.push(nt)}return[ye,ae,be,Ke,Ye,Xe]},P=(ie,Z,ee)=>{const[ae,ve,ye,be]=L$1(Z.composers),Ke=typeof Z.type=="function"||Z.type.$$typeof?(et=>{function Je(){for(let rt=0;rtJe.rules[rt]={apply:it=>Je[T$1].push([rt,it])}),Je})(ee):null,Ye=(Ke||ee).rules,Xe=`.${ae}${ve.length>1?`:where(.${ve.slice(1).join(".")})`:""}`,Qe=et=>{et=typeof et=="object"&&et||A;const{css:Je,...rt}=et,it={};for(const st in ye)if(delete rt[st],st in et){let ot=et[st];typeof ot=="object"&&ot?it[st]={"@initial":ye[st],...ot}:(ot=String(ot),it[st]=ot!=="undefined"||be.has(st)?ot:ye[st])}else it[st]=ye[st];const nt=new Set([...ve]);for(const[st,ot,ut,ft]of Z.composers){ee.rules.styled.cache.has(st)||(ee.rules.styled.cache.add(st),$(ot,[`.${st}`],[],ie,mt=>{Ye.styled.apply(mt)}));const pt=O$1(ut,it,ie.media),Xr=O$1(ft,it,ie.media,!0);for(const mt of pt)if(mt!==void 0)for(const[Yr,ri,Zr]of mt){const _r=`${st}-${z$1(ri)}-${Yr}`;nt.add(_r);const Kr=(Zr?ee.rules.resonevar:ee.rules.onevar).cache,si=Zr?Ye.resonevar:Ye.onevar;Kr.has(_r)||(Kr.add(_r),$(ri,[`.${_r}`],[],ie,oi=>{si.apply(oi)}))}for(const mt of Xr)if(mt!==void 0)for(const[Yr,ri]of mt){const Zr=`${st}-${z$1(ri)}-${Yr}`;nt.add(Zr),ee.rules.allvar.cache.has(Zr)||(ee.rules.allvar.cache.add(Zr),$(ri,[`.${Zr}`],[],ie,_r=>{Ye.allvar.apply(_r)}))}}if(typeof Je=="object"&&Je){const st=`${ae}-i${z$1(Je)}-css`;nt.add(st),ee.rules.inline.cache.has(st)||(ee.rules.inline.cache.add(st),$(Je,[`.${st}`],[],ie,ot=>{Ye.inline.apply(ot)}))}for(const st of String(et.className||"").trim().split(/\s+/))st&&nt.add(st);const tt=rt.className=[...nt].join(" ");return{type:Z.type,className:tt,selector:Xe,props:rt,toString:()=>tt,deferredInjector:Ke}};return s(Qe,{className:ae,selector:Xe,[l]:Z,toString:()=>(ee.rules.styled.cache.has(ae)||Qe(),ae)})},L$1=ie=>{let Z="";const ee=[],ae={},ve=[];for(const[ye,,,,be,Ke]of ie){Z===""&&(Z=ye),ee.push(ye),ve.push(...Ke);for(const Ye in be){const Xe=be[Ye];(ae[Ye]===void 0||Xe!=="undefined"||Ke.includes(Xe))&&(ae[Ye]=Xe)}}return[Z,ee,ae,new Set(ve)]},O$1=(ie,Z,ee,ae)=>{const ve=[];e:for(let[ye,be,Ke]of ie){if(Ke)continue;let Ye,Xe=0,Qe=!1;for(Ye in ye){const et=ye[Ye];let Je=Z[Ye];if(Je!==et){if(typeof Je!="object"||!Je)continue e;{let rt,it,nt=0;for(const tt in Je){if(et===String(Je[tt])){if(tt!=="@initial"){const st=tt.slice(1);(it=it||[]).push(st in ee?ee[st]:tt.replace(/^@media ?/,"")),Qe=!0}Xe+=nt,rt=!0}++nt}if(it&&it.length&&(be={["@media "+it.join(", ")]:be}),!rt)continue e}}}(ve[Xe]=ve[Xe]||[]).push([ae?"cv":`${Ye}-${ye[Ye]}`,be,Qe])}return ve},A={},N$1=o(),D$1=(ie,Z)=>N$1(ie,()=>(...ee)=>{const ae=()=>{for(let ve of ee){ve=typeof ve=="object"&&ve||{};let ye=z$1(ve);if(!Z.rules.global.cache.has(ye)){if(Z.rules.global.cache.add(ye),"@import"in ve){let be=[].indexOf.call(Z.sheet.cssRules,Z.rules.themed.group)-1;for(let Ke of[].concat(ve["@import"]))Ke=Ke.includes('"')||Ke.includes("'")?Ke:`"${Ke}"`,Z.sheet.insertRule(`@import ${Ke};`,be++);delete ve["@import"]}$(ve,[],[],ie,be=>{Z.rules.global.apply(be)})}}return""};return s(ae,{toString:ae})}),H=o(),V=(ie,Z)=>H(ie,()=>ee=>{const ae=`${S$1(ie.prefix)}k-${z$1(ee)}`,ve=()=>{if(!Z.rules.global.cache.has(ae)){Z.rules.global.cache.add(ae);const ye=[];$(ee,[],[],ie,Ke=>ye.push(Ke));const be=`@keyframes ${ae}{${ye.join("")}}`;Z.rules.global.apply(be)}return ae};return s(ve,{get name(){return ve()},toString:ve})}),G=class{constructor(ie,Z,ee,ae){this.token=ie==null?"":String(ie),this.value=Z==null?"":String(Z),this.scale=ee==null?"":String(ee),this.prefix=ae==null?"":String(ae)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S$1(this.prefix)+S$1(this.scale)+this.token}toString(){return this.computedValue}},F=o(),J$1=(ie,Z)=>F(ie,()=>(ee,ae)=>{ae=typeof ee=="object"&&ee||Object(ae);const ve=`.${ee=(ee=typeof ee=="string"?ee:"")||`${S$1(ie.prefix)}t-${z$1(ae)}`}`,ye={},be=[];for(const Ye in ae){ye[Ye]={};for(const Xe in ae[Ye]){const Qe=`--${S$1(ie.prefix)}${Ye}-${Xe}`,et=k$1(String(ae[Ye][Xe]),ie.prefix,Ye);ye[Ye][Xe]=new G(Xe,et,Ye,ie.prefix),be.push(`${Qe}:${et}`)}}const Ke=()=>{if(be.length&&!Z.rules.themed.cache.has(ee)){Z.rules.themed.cache.add(ee);const Ye=`${ae===ie.theme?":root,":""}.${ee}{${be.join(";")}}`;Z.rules.themed.apply(Ye)}return ee};return{...ye,get className(){return Ke()},selector:ve,toString:Ke}}),U=o(),X$1,Y$1=o(),q=ie=>{const Z=(ee=>{let ae=!1;const ve=U(ee,ye=>{ae=!0;const be="prefix"in(ye=typeof ye=="object"&&ye||{})?String(ye.prefix):"",Ke=typeof ye.media=="object"&&ye.media||{},Ye=typeof ye.root=="object"?ye.root||null:globalThis.document||null,Xe=typeof ye.theme=="object"&&ye.theme||{},Qe={prefix:be,media:Ke,theme:Xe,themeMap:typeof ye.themeMap=="object"&&ye.themeMap||{...n},utils:typeof ye.utils=="object"&&ye.utils||{}},et=E(Ye),Je={css:M(Qe,et),globalCss:D$1(Qe,et),keyframes:V(Qe,et),createTheme:J$1(Qe,et),reset(){et.reset(),Je.theme.toString()},theme:{},sheet:et,config:Qe,prefix:be,getCssText:et.toString,toString:et.toString};return String(Je.theme=Je.createTheme(Xe)),Je});return ae||ve.reset(),ve})(ie);return Z.styled=(({config:ee,sheet:ae})=>Y$1(ee,()=>{const ve=M(ee,ae);return(...ye)=>{const be=ve(...ye),Ke=be[l].type,Ye=e$1.forwardRef((Xe,Qe)=>{const et=Xe&&Xe.as||Ke,{props:Je,deferredInjector:rt}=be(Xe);return delete Je.as,Je.ref=Qe,rt?e$1.createElement(e$1.Fragment,null,e$1.createElement(et,Je),e$1.createElement(rt,null)):e$1.createElement(et,Je)});return Ye.className=be.className,Ye.displayName=`Styled.${Ke.displayName||Ke.name||Ke}`,Ye.selector=be.selector,Ye.toString=()=>be.selector,Ye[l]=be[l],Ye}}))(Z),Z},K$1=()=>X$1||(X$1=q()),Q$1=(...ie)=>K$1().createTheme(...ie);function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ie){const Z=ie+"CollectionProvider",[ee,ae]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(Z),[ve,ye]=ee(Z,{collectionRef:{current:null},itemMap:new Map}),be=rt=>{const{scope:it,children:nt}=rt,tt=e$1.useRef(null),st=e$1.useRef(new Map).current;return e$1.createElement(ve,{scope:it,itemMap:st,collectionRef:tt},nt)},Ke=ie+"CollectionSlot",Ye=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt}=rt,st=ye(Ke,nt),ot=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,st.collectionRef);return e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{ref:ot},tt)}),Xe=ie+"CollectionItemSlot",Qe="data-radix-collection-item",et=e$1.forwardRef((rt,it)=>{const{scope:nt,children:tt,...st}=rt,ot=e$1.useRef(null),ut=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(it,ot),ft=ye(Xe,nt);return e$1.useEffect(()=>(ft.itemMap.set(ot,{ref:ot,...st}),()=>void ft.itemMap.delete(ot))),e$1.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360,{[Qe]:"",ref:ut},tt)});function Je(rt){const it=ye(ie+"CollectionConsumer",rt);return e$1.useCallback(()=>{const tt=it.collectionRef.current;if(!tt)return[];const st=Array.from(tt.querySelectorAll(`[${Qe}]`));return Array.from(it.itemMap.values()).sort((ft,pt)=>st.indexOf(ft.ref.current)-st.indexOf(pt.ref.current))},[it.collectionRef,it.itemMap])}return[{Provider:be,Slot:Ye,ItemSlot:et},Je,ae]}const $f631663db3294ace$var$DirectionContext=reactExports.createContext(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(ie){const Z=reactExports.useContext($f631663db3294ace$var$DirectionContext);return ie||Z||"ltr"}const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",$d7bdfb9eb0fdf311$var$EVENT_OPTIONS={bubbles:!1,cancelable:!0},$d7bdfb9eb0fdf311$var$GROUP_NAME="RovingFocusGroup",[$d7bdfb9eb0fdf311$var$Collection,$d7bdfb9eb0fdf311$var$useCollection,$d7bdfb9eb0fdf311$var$createCollectionScope]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME),[$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext,$d7bdfb9eb0fdf311$export$c7109489551a4f4]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME,[$d7bdfb9eb0fdf311$var$createCollectionScope]),[$d7bdfb9eb0fdf311$var$RovingFocusProvider,$d7bdfb9eb0fdf311$var$useRovingFocusContext]=$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME),$d7bdfb9eb0fdf311$export$8699f7c8af148338=reactExports.forwardRef((ie,Z)=>reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Provider,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.Slot,{scope:ie.__scopeRovingFocusGroup},reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,_extends$1({},ie,{ref:Z}))))),$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,orientation:ae,loop:ve=!1,dir:ye,currentTabStopId:be,defaultCurrentTabStopId:Ke,onCurrentTabStopIdChange:Ye,onEntryFocus:Xe,...Qe}=ie,et=reactExports.useRef(null),Je=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(Z,et),rt=$f631663db3294ace$export$b39126d51d94e6f3(ye),[it=null,nt]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:be,defaultProp:Ke,onChange:Ye}),[tt,st]=reactExports.useState(!1),ot=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Xe),ut=$d7bdfb9eb0fdf311$var$useCollection(ee),ft=reactExports.useRef(!1),[pt,Xr]=reactExports.useState(0);return reactExports.useEffect(()=>{const mt=et.current;if(mt)return mt.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot),()=>mt.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,ot)},[ot]),reactExports.createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider,{scope:ee,orientation:ae,dir:rt,loop:ve,currentTabStopId:it,onItemFocus:reactExports.useCallback(mt=>nt(mt),[nt]),onItemShiftTab:reactExports.useCallback(()=>st(!0),[]),onFocusableItemAdd:reactExports.useCallback(()=>Xr(mt=>mt+1),[]),onFocusableItemRemove:reactExports.useCallback(()=>Xr(mt=>mt-1),[])},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({tabIndex:tt||pt===0?-1:0,"data-orientation":ae},Qe,{ref:Je,style:{outline:"none",...ie.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,()=>{ft.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,mt=>{const Yr=!ft.current;if(mt.target===mt.currentTarget&&Yr&&!tt){const ri=new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS,$d7bdfb9eb0fdf311$var$EVENT_OPTIONS);if(mt.currentTarget.dispatchEvent(ri),!ri.defaultPrevented){const Zr=ut().filter(Qr=>Qr.focusable),_r=Zr.find(Qr=>Qr.active),Kr=Zr.find(Qr=>Qr.id===it),oi=[_r,Kr,...Zr].filter(Boolean).map(Qr=>Qr.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(oi)}}ft.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onBlur,()=>st(!1))})))}),$d7bdfb9eb0fdf311$var$ITEM_NAME="RovingFocusGroupItem",$d7bdfb9eb0fdf311$export$ab9df7c53fe8454=reactExports.forwardRef((ie,Z)=>{const{__scopeRovingFocusGroup:ee,focusable:ae=!0,active:ve=!1,tabStopId:ye,...be}=ie,Ke=$1746a345f3d73bb7$export$f680877a34711e37(),Ye=ye||Ke,Xe=$d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME,ee),Qe=Xe.currentTabStopId===Ye,et=$d7bdfb9eb0fdf311$var$useCollection(ee),{onFocusableItemAdd:Je,onFocusableItemRemove:rt}=Xe;return reactExports.useEffect(()=>{if(ae)return Je(),()=>rt()},[ae,Je,rt]),reactExports.createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot,{scope:ee,id:Ye,focusable:ae,active:ve},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,_extends$1({tabIndex:Qe?0:-1,"data-orientation":Xe.orientation},be,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,it=>{ae?Xe.onItemFocus(Ye):it.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>Xe.onItemFocus(Ye)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,it=>{if(it.key==="Tab"&&it.shiftKey){Xe.onItemShiftTab();return}if(it.target!==it.currentTarget)return;const nt=$d7bdfb9eb0fdf311$var$getFocusIntent(it,Xe.orientation,Xe.dir);if(nt!==void 0){it.preventDefault();let st=et().filter(ot=>ot.focusable).map(ot=>ot.ref.current);if(nt==="last")st.reverse();else if(nt==="prev"||nt==="next"){nt==="prev"&&st.reverse();const ot=st.indexOf(it.currentTarget);st=Xe.loop?$d7bdfb9eb0fdf311$var$wrapArray(st,ot+1):st.slice(ot+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(st))}})})))}),$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie,Z){return Z!=="rtl"?ie:ie==="ArrowLeft"?"ArrowRight":ie==="ArrowRight"?"ArrowLeft":ie}function $d7bdfb9eb0fdf311$var$getFocusIntent(ie,Z,ee){const ae=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(ie.key,ee);if(!(Z==="vertical"&&["ArrowLeft","ArrowRight"].includes(ae))&&!(Z==="horizontal"&&["ArrowUp","ArrowDown"].includes(ae)))return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[ae]}function $d7bdfb9eb0fdf311$var$focusFirst(ie){const Z=document.activeElement;for(const ee of ie)if(ee===Z||(ee.focus(),document.activeElement!==Z))return}function $d7bdfb9eb0fdf311$var$wrapArray(ie,Z){return ie.map((ee,ae)=>ie[(Z+ae)%ie.length])}const $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9=$d7bdfb9eb0fdf311$export$8699f7c8af148338,$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2=$d7bdfb9eb0fdf311$export$ab9df7c53fe8454,$69cb30bb0017df05$var$TABS_NAME="Tabs",[$69cb30bb0017df05$var$createTabsContext,$69cb30bb0017df05$export$355f5bd209d7b13a]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($69cb30bb0017df05$var$TABS_NAME,[$d7bdfb9eb0fdf311$export$c7109489551a4f4]),$69cb30bb0017df05$var$useRovingFocusGroupScope=$d7bdfb9eb0fdf311$export$c7109489551a4f4(),[$69cb30bb0017df05$var$TabsProvider,$69cb30bb0017df05$var$useTabsContext]=$69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME),$69cb30bb0017df05$export$b2539bed5023c21c=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,onValueChange:ve,defaultValue:ye,orientation:be="horizontal",dir:Ke,activationMode:Ye="automatic",...Xe}=ie,Qe=$f631663db3294ace$export$b39126d51d94e6f3(Ke),[et,Je]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:ae,onChange:ve,defaultProp:ye});return reactExports.createElement($69cb30bb0017df05$var$TabsProvider,{scope:ee,baseId:$1746a345f3d73bb7$export$f680877a34711e37(),value:et,onValueChange:Je,orientation:be,dir:Qe,activationMode:Ye},reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({dir:Qe,"data-orientation":be},Xe,{ref:Z})))}),$69cb30bb0017df05$var$TAB_LIST_NAME="TabsList",$69cb30bb0017df05$export$9712d22edc0d78c1=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,loop:ae=!0,...ve}=ie,ye=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME,ee),be=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee);return reactExports.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,_extends$1({asChild:!0},be,{orientation:ye.orientation,dir:ye.dir,loop:ae}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({role:"tablist","aria-orientation":ye.orientation},ve,{ref:Z})))}),$69cb30bb0017df05$var$TRIGGER_NAME="TabsTrigger",$69cb30bb0017df05$export$8114b9fdfdf9f3ba=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,disabled:ve=!1,...ye}=ie,be=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME,ee),Ke=$69cb30bb0017df05$var$useRovingFocusGroupScope(ee),Ye=$69cb30bb0017df05$var$makeTriggerId(be.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(be.baseId,ae),Qe=ae===be.value;return reactExports.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,_extends$1({asChild:!0},Ke,{focusable:!ve,active:Qe}),reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends$1({type:"button",role:"tab","aria-selected":Qe,"aria-controls":Xe,"data-state":Qe?"active":"inactive","data-disabled":ve?"":void 0,disabled:ve,id:Ye},ye,{ref:Z,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onMouseDown,et=>{!ve&&et.button===0&&et.ctrlKey===!1?be.onValueChange(ae):et.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onKeyDown,et=>{[" ","Enter"].includes(et.key)&&be.onValueChange(ae)}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(ie.onFocus,()=>{const et=be.activationMode!=="manual";!Qe&&!ve&&et&&be.onValueChange(ae)})})))}),$69cb30bb0017df05$var$CONTENT_NAME="TabsContent",$69cb30bb0017df05$export$bd905d70e8fd2ebb=reactExports.forwardRef((ie,Z)=>{const{__scopeTabs:ee,value:ae,forceMount:ve,children:ye,...be}=ie,Ke=$69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME,ee),Ye=$69cb30bb0017df05$var$makeTriggerId(Ke.baseId,ae),Xe=$69cb30bb0017df05$var$makeContentId(Ke.baseId,ae),Qe=ae===Ke.value,et=reactExports.useRef(Qe);return reactExports.useEffect(()=>{const Je=requestAnimationFrame(()=>et.current=!1);return()=>cancelAnimationFrame(Je)},[]),reactExports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:ve||Qe},({present:Je})=>reactExports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends$1({"data-state":Qe?"active":"inactive","data-orientation":Ke.orientation,role:"tabpanel","aria-labelledby":Ye,hidden:!Je,id:Xe,tabIndex:0},be,{ref:Z,style:{...ie.style,animationDuration:et.current?"0s":void 0}}),Je&&ye))});function $69cb30bb0017df05$var$makeTriggerId(ie,Z){return`${ie}-trigger-${Z}`}function $69cb30bb0017df05$var$makeContentId(ie,Z){return`${ie}-content-${Z}`}const $69cb30bb0017df05$export$be92b6f5f03c0fe9=$69cb30bb0017df05$export$b2539bed5023c21c,$69cb30bb0017df05$export$54c2e3dc7acea9f5=$69cb30bb0017df05$export$9712d22edc0d78c1,$69cb30bb0017df05$export$41fb9f06171c75f4=$69cb30bb0017df05$export$8114b9fdfdf9f3ba,$69cb30bb0017df05$export$7c6e2c02157bb7d2=$69cb30bb0017df05$export$bd905d70e8fd2ebb;var lib$5={},Parser$3={},Tokenizer={},decode={},decodeDataHtml={};Object.defineProperty(decodeDataHtml,"__esModule",{value:!0});decodeDataHtml.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(ie){return ie.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(ie){return ie.charCodeAt(0)}));var decode_codepoint={};(function(ie){var Z;Object.defineProperty(ie,"__esModule",{value:!0}),ie.replaceCodePoint=ie.fromCodePoint=void 0;var ee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);ie.fromCodePoint=(Z=String.fromCodePoint)!==null&&Z!==void 0?Z:function(ye){var be="";return ye>65535&&(ye-=65536,be+=String.fromCharCode(ye>>>10&1023|55296),ye=56320|ye&1023),be+=String.fromCharCode(ye),be};function ae(ye){var be;return ye>=55296&&ye<=57343||ye>1114111?65533:(be=ee.get(ye))!==null&&be!==void 0?be:ye}ie.replaceCodePoint=ae;function ve(ye){return(0,ie.fromCodePoint)(ae(ye))}ie.default=ve})(decode_codepoint);(function(ie){var Z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Kr,si,oi){oi===void 0&&(oi=si);var Qr=Object.getOwnPropertyDescriptor(Kr,si);(!Qr||("get"in Qr?!Kr.__esModule:Qr.writable||Qr.configurable))&&(Qr={enumerable:!0,get:function(){return Kr[si]}}),Object.defineProperty(_r,oi,Qr)}:function(_r,Kr,si,oi){oi===void 0&&(oi=si),_r[oi]=Kr[si]}),ee=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Kr){Object.defineProperty(_r,"default",{enumerable:!0,value:Kr})}:function(_r,Kr){_r.default=Kr}),ae=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Kr={};if(_r!=null)for(var si in _r)si!=="default"&&Object.prototype.hasOwnProperty.call(_r,si)&&Z(Kr,_r,si);return ee(Kr,_r),Kr},ve=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.decodeXML=ie.decodeHTMLStrict=ie.decodeHTMLAttribute=ie.decodeHTML=ie.determineBranch=ie.EntityDecoder=ie.DecodingMode=ie.BinTrieFlags=ie.fromCodePoint=ie.replaceCodePoint=ie.decodeCodePoint=ie.xmlDecodeTree=ie.htmlDecodeTree=void 0;var ye=ve(decodeDataHtml);ie.htmlDecodeTree=ye.default;var be=ve(decodeDataXml);ie.xmlDecodeTree=be.default;var Ke=ae(decode_codepoint);ie.decodeCodePoint=Ke.default;var Ye=decode_codepoint;Object.defineProperty(ie,"replaceCodePoint",{enumerable:!0,get:function(){return Ye.replaceCodePoint}}),Object.defineProperty(ie,"fromCodePoint",{enumerable:!0,get:function(){return Ye.fromCodePoint}});var Xe;(function(_r){_r[_r.NUM=35]="NUM",_r[_r.SEMI=59]="SEMI",_r[_r.EQUALS=61]="EQUALS",_r[_r.ZERO=48]="ZERO",_r[_r.NINE=57]="NINE",_r[_r.LOWER_A=97]="LOWER_A",_r[_r.LOWER_F=102]="LOWER_F",_r[_r.LOWER_X=120]="LOWER_X",_r[_r.LOWER_Z=122]="LOWER_Z",_r[_r.UPPER_A=65]="UPPER_A",_r[_r.UPPER_F=70]="UPPER_F",_r[_r.UPPER_Z=90]="UPPER_Z"})(Xe||(Xe={}));var Qe=32,et;(function(_r){_r[_r.VALUE_LENGTH=49152]="VALUE_LENGTH",_r[_r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",_r[_r.JUMP_TABLE=127]="JUMP_TABLE"})(et=ie.BinTrieFlags||(ie.BinTrieFlags={}));function Je(_r){return _r>=Xe.ZERO&&_r<=Xe.NINE}function rt(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_F||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_F}function it(_r){return _r>=Xe.UPPER_A&&_r<=Xe.UPPER_Z||_r>=Xe.LOWER_A&&_r<=Xe.LOWER_Z||Je(_r)}function nt(_r){return _r===Xe.EQUALS||it(_r)}var tt;(function(_r){_r[_r.EntityStart=0]="EntityStart",_r[_r.NumericStart=1]="NumericStart",_r[_r.NumericDecimal=2]="NumericDecimal",_r[_r.NumericHex=3]="NumericHex",_r[_r.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var st;(function(_r){_r[_r.Legacy=0]="Legacy",_r[_r.Strict=1]="Strict",_r[_r.Attribute=2]="Attribute"})(st=ie.DecodingMode||(ie.DecodingMode={}));var ot=function(){function _r(Kr,si,oi){this.decodeTree=Kr,this.emitCodePoint=si,this.errors=oi,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=st.Strict}return _r.prototype.startEntity=function(Kr){this.decodeMode=Kr,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},_r.prototype.write=function(Kr,si){switch(this.state){case tt.EntityStart:return Kr.charCodeAt(si)===Xe.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(Kr,si+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(Kr,si));case tt.NumericStart:return this.stateNumericStart(Kr,si);case tt.NumericDecimal:return this.stateNumericDecimal(Kr,si);case tt.NumericHex:return this.stateNumericHex(Kr,si);case tt.NamedEntity:return this.stateNamedEntity(Kr,si)}},_r.prototype.stateNumericStart=function(Kr,si){return si>=Kr.length?-1:(Kr.charCodeAt(si)|Qe)===Xe.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(Kr,si+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(Kr,si))},_r.prototype.addToNumericResult=function(Kr,si,oi,Qr){if(si!==oi){var ii=oi-si;this.result=this.result*Math.pow(Qr,ii)+parseInt(Kr.substr(si,ii),Qr),this.consumed+=ii}},_r.prototype.stateNumericHex=function(Kr,si){for(var oi=si;si>14;si>14,ii!==0){if(ti===Xe.SEMI)return this.emitNamedEntityData(this.treeIndex,ii,this.consumed+this.excess);this.decodeMode!==st.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},_r.prototype.emitNotTerminatedNamedEntity=function(){var Kr,si=this,oi=si.result,Qr=si.decodeTree,ii=(Qr[oi]&et.VALUE_LENGTH)>>14;return this.emitNamedEntityData(oi,ii,this.consumed),(Kr=this.errors)===null||Kr===void 0||Kr.missingSemicolonAfterCharacterReference(),this.consumed},_r.prototype.emitNamedEntityData=function(Kr,si,oi){var Qr=this.decodeTree;return this.emitCodePoint(si===1?Qr[Kr]&~et.VALUE_LENGTH:Qr[Kr+1],oi),si===3&&this.emitCodePoint(Qr[Kr+2],oi),oi},_r.prototype.end=function(){var Kr;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==st.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(Kr=this.errors)===null||Kr===void 0||Kr.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}},_r}();ie.EntityDecoder=ot;function ut(_r){var Kr="",si=new ot(_r,function(oi){return Kr+=(0,Ke.fromCodePoint)(oi)});return function(Qr,ii){for(var ti=0,ni=0;(ni=Qr.indexOf("&",ni))>=0;){Kr+=Qr.slice(ti,ni),si.startEntity(ii);var ui=si.write(Qr,ni+1);if(ui<0){ti=ni+si.end();break}ti=ni+ui,ni=ui===0?ti+1:ti}var yi=Kr+Qr.slice(ti);return Kr="",yi}}function ft(_r,Kr,si,oi){var Qr=(Kr&et.BRANCH_LENGTH)>>7,ii=Kr&et.JUMP_TABLE;if(Qr===0)return ii!==0&&oi===ii?si:-1;if(ii){var ti=oi-ii;return ti<0||ti>=Qr?-1:_r[si+ti]-1}for(var ni=si,ui=ni+Qr-1;ni<=ui;){var yi=ni+ui>>>1,pi=_r[yi];if(pioi)ui=yi-1;else return _r[yi+Qr]}return-1}ie.determineBranch=ft;var pt=ut(ye.default),Xr=ut(be.default);function mt(_r,Kr){return Kr===void 0&&(Kr=st.Legacy),pt(_r,Kr)}ie.decodeHTML=mt;function Yr(_r){return pt(_r,st.Attribute)}ie.decodeHTMLAttribute=Yr;function ri(_r){return pt(_r,st.Strict)}ie.decodeHTMLStrict=ri;function Zr(_r){return Xr(_r,st.Strict)}ie.decodeXML=Zr})(decode);(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.QuoteType=void 0;var Z=decode,ee;(function(Je){Je[Je.Tab=9]="Tab",Je[Je.NewLine=10]="NewLine",Je[Je.FormFeed=12]="FormFeed",Je[Je.CarriageReturn=13]="CarriageReturn",Je[Je.Space=32]="Space",Je[Je.ExclamationMark=33]="ExclamationMark",Je[Je.Number=35]="Number",Je[Je.Amp=38]="Amp",Je[Je.SingleQuote=39]="SingleQuote",Je[Je.DoubleQuote=34]="DoubleQuote",Je[Je.Dash=45]="Dash",Je[Je.Slash=47]="Slash",Je[Je.Zero=48]="Zero",Je[Je.Nine=57]="Nine",Je[Je.Semi=59]="Semi",Je[Je.Lt=60]="Lt",Je[Je.Eq=61]="Eq",Je[Je.Gt=62]="Gt",Je[Je.Questionmark=63]="Questionmark",Je[Je.UpperA=65]="UpperA",Je[Je.LowerA=97]="LowerA",Je[Je.UpperF=70]="UpperF",Je[Je.LowerF=102]="LowerF",Je[Je.UpperZ=90]="UpperZ",Je[Je.LowerZ=122]="LowerZ",Je[Je.LowerX=120]="LowerX",Je[Je.OpeningSquareBracket=91]="OpeningSquareBracket"})(ee||(ee={}));var ae;(function(Je){Je[Je.Text=1]="Text",Je[Je.BeforeTagName=2]="BeforeTagName",Je[Je.InTagName=3]="InTagName",Je[Je.InSelfClosingTag=4]="InSelfClosingTag",Je[Je.BeforeClosingTagName=5]="BeforeClosingTagName",Je[Je.InClosingTagName=6]="InClosingTagName",Je[Je.AfterClosingTagName=7]="AfterClosingTagName",Je[Je.BeforeAttributeName=8]="BeforeAttributeName",Je[Je.InAttributeName=9]="InAttributeName",Je[Je.AfterAttributeName=10]="AfterAttributeName",Je[Je.BeforeAttributeValue=11]="BeforeAttributeValue",Je[Je.InAttributeValueDq=12]="InAttributeValueDq",Je[Je.InAttributeValueSq=13]="InAttributeValueSq",Je[Je.InAttributeValueNq=14]="InAttributeValueNq",Je[Je.BeforeDeclaration=15]="BeforeDeclaration",Je[Je.InDeclaration=16]="InDeclaration",Je[Je.InProcessingInstruction=17]="InProcessingInstruction",Je[Je.BeforeComment=18]="BeforeComment",Je[Je.CDATASequence=19]="CDATASequence",Je[Je.InSpecialComment=20]="InSpecialComment",Je[Je.InCommentLike=21]="InCommentLike",Je[Je.BeforeSpecialS=22]="BeforeSpecialS",Je[Je.SpecialStartSequence=23]="SpecialStartSequence",Je[Je.InSpecialTag=24]="InSpecialTag",Je[Je.BeforeEntity=25]="BeforeEntity",Je[Je.BeforeNumericEntity=26]="BeforeNumericEntity",Je[Je.InNamedEntity=27]="InNamedEntity",Je[Je.InNumericEntity=28]="InNumericEntity",Je[Je.InHexEntity=29]="InHexEntity"})(ae||(ae={}));function ve(Je){return Je===ee.Space||Je===ee.NewLine||Je===ee.Tab||Je===ee.FormFeed||Je===ee.CarriageReturn}function ye(Je){return Je===ee.Slash||Je===ee.Gt||ve(Je)}function be(Je){return Je>=ee.Zero&&Je<=ee.Nine}function Ke(Je){return Je>=ee.LowerA&&Je<=ee.LowerZ||Je>=ee.UpperA&&Je<=ee.UpperZ}function Ye(Je){return Je>=ee.UpperA&&Je<=ee.UpperF||Je>=ee.LowerA&&Je<=ee.LowerF}var Xe;(function(Je){Je[Je.NoValue=0]="NoValue",Je[Je.Unquoted=1]="Unquoted",Je[Je.Single=2]="Single",Je[Je.Double=3]="Double"})(Xe=ie.QuoteType||(ie.QuoteType={}));var Qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},et=function(){function Je(rt,it){var nt=rt.xmlMode,tt=nt===void 0?!1:nt,st=rt.decodeEntities,ot=st===void 0?!0:st;this.cbs=it,this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=tt,this.decodeEntities=ot,this.entityTrie=tt?Z.xmlDecodeTree:Z.htmlDecodeTree}return Je.prototype.reset=function(){this.state=ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},Je.prototype.write=function(rt){this.offset+=this.buffer.length,this.buffer=rt,this.parse()},Je.prototype.end=function(){this.running&&this.finish()},Je.prototype.pause=function(){this.running=!1},Je.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&rt===ee.Amp&&(this.state=ae.BeforeEntity)},Je.prototype.stateSpecialStartSequence=function(rt){var it=this.sequenceIndex===this.currentSequence.length,nt=it?ye(rt):(rt|32)===this.currentSequence[this.sequenceIndex];if(!nt)this.isSpecial=!1;else if(!it){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ae.InTagName,this.stateInTagName(rt)},Je.prototype.stateInSpecialTag=function(rt){if(this.sequenceIndex===this.currentSequence.length){if(rt===ee.Gt||ve(rt)){var it=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&rt!==ee.Semi)this.trieIndex+=nt;else{var tt=this.index-this.entityExcess+1;tt>this.sectionStart&&this.emitPartial(this.sectionStart,tt),this.entityResult=this.trieIndex,this.trieIndex+=nt,this.entityExcess=0,this.sectionStart=this.index+1,nt===0&&this.emitNamedEntity()}}},Je.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var rt=(this.entityTrie[this.entityResult]&Z.BinTrieFlags.VALUE_LENGTH)>>14;switch(rt){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Z.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},Je.prototype.stateBeforeNumericEntity=function(rt){(rt|32)===ee.LowerX?(this.entityExcess++,this.state=ae.InHexEntity):(this.state=ae.InNumericEntity,this.stateInNumericEntity(rt))},Je.prototype.emitNumericEntity=function(rt){var it=this.index-this.entityExcess-1,nt=it+2+ +(this.state===ae.InHexEntity);nt!==this.index&&(it>this.sectionStart&&this.emitPartial(this.sectionStart,it),this.sectionStart=this.index+Number(rt),this.emitCodePoint((0,Z.replaceCodePoint)(this.entityResult))),this.state=this.baseState},Je.prototype.stateInNumericEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*10+(rt-ee.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.stateInHexEntity=function(rt){rt===ee.Semi?this.emitNumericEntity(!0):be(rt)?(this.entityResult=this.entityResult*16+(rt-ee.Zero),this.entityExcess++):Ye(rt)?(this.entityResult=this.entityResult*16+((rt|32)-ee.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},Je.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===ae.Text||this.baseState===ae.InSpecialTag)},Je.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===ae.Text||this.state===ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ae.InAttributeValueDq||this.state===ae.InAttributeValueSq||this.state===ae.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},Je.prototype.shouldContinue=function(){return this.index0&&be.has(this.stack[this.stack.length-1]);){var Ke=this.stack.pop();(ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,Ke,!0)}this.isVoidElement(Z)||(this.stack.push(Z),foreignContextElements.has(Z)?this.foreignContext.push(!0):htmlIntegrationElements.has(Z)&&this.foreignContext.push(!1)),(ye=(ve=this.cbs).onopentagname)===null||ye===void 0||ye.call(ve,Z),this.cbs.onopentag&&(this.attribs={})},ie.prototype.endOpenTag=function(Z){var ee,ae;this.startIndex=this.openTagStart,this.attribs&&((ae=(ee=this.cbs).onopentag)===null||ae===void 0||ae.call(ee,this.tagname,this.attribs,Z),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},ie.prototype.onopentagend=function(Z){this.endIndex=Z,this.endOpenTag(!1),this.startIndex=Z+1},ie.prototype.onclosetag=function(Z,ee){var ae,ve,ye,be,Ke,Ye;this.endIndex=ee;var Xe=this.getSlice(Z,ee);if(this.lowerCaseTagNames&&(Xe=Xe.toLowerCase()),(foreignContextElements.has(Xe)||htmlIntegrationElements.has(Xe))&&this.foreignContext.pop(),this.isVoidElement(Xe))!this.options.xmlMode&&Xe==="br"&&((ve=(ae=this.cbs).onopentagname)===null||ve===void 0||ve.call(ae,"br"),(be=(ye=this.cbs).onopentag)===null||be===void 0||be.call(ye,"br",{},!0),(Ye=(Ke=this.cbs).onclosetag)===null||Ye===void 0||Ye.call(Ke,"br",!1));else{var Qe=this.stack.lastIndexOf(Xe);if(Qe!==-1)if(this.cbs.onclosetag)for(var et=this.stack.length-Qe;et--;)this.cbs.onclosetag(this.stack.pop(),et!==0);else this.stack.length=Qe;else!this.options.xmlMode&&Xe==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=ee+1},ie.prototype.onselfclosingtag=function(Z){this.endIndex=Z,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=Z+1):this.onopentagend(Z)},ie.prototype.closeCurrentTag=function(Z){var ee,ae,ve=this.tagname;this.endOpenTag(Z),this.stack[this.stack.length-1]===ve&&((ae=(ee=this.cbs).onclosetag)===null||ae===void 0||ae.call(ee,ve,!Z),this.stack.pop())},ie.prototype.onattribname=function(Z,ee){this.startIndex=Z;var ae=this.getSlice(Z,ee);this.attribname=this.lowerCaseAttributeNames?ae.toLowerCase():ae},ie.prototype.onattribdata=function(Z,ee){this.attribvalue+=this.getSlice(Z,ee)},ie.prototype.onattribentity=function(Z){this.attribvalue+=(0,decode_js_1.fromCodePoint)(Z)},ie.prototype.onattribend=function(Z,ee){var ae,ve;this.endIndex=ee,(ve=(ae=this.cbs).onattribute)===null||ve===void 0||ve.call(ae,this.attribname,this.attribvalue,Z===Tokenizer_js_1.QuoteType.Double?'"':Z===Tokenizer_js_1.QuoteType.Single?"'":Z===Tokenizer_js_1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},ie.prototype.getInstructionName=function(Z){var ee=Z.search(reNameEnd),ae=ee<0?Z:Z.substr(0,ee);return this.lowerCaseTagNames&&(ae=ae.toLowerCase()),ae},ie.prototype.ondeclaration=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("!".concat(ve),"!".concat(ae))}this.startIndex=ee+1},ie.prototype.onprocessinginstruction=function(Z,ee){this.endIndex=ee;var ae=this.getSlice(Z,ee);if(this.cbs.onprocessinginstruction){var ve=this.getInstructionName(ae);this.cbs.onprocessinginstruction("?".concat(ve),"?".concat(ae))}this.startIndex=ee+1},ie.prototype.oncomment=function(Z,ee,ae){var ve,ye,be,Ke;this.endIndex=ee,(ye=(ve=this.cbs).oncomment)===null||ye===void 0||ye.call(ve,this.getSlice(Z,ee-ae)),(Ke=(be=this.cbs).oncommentend)===null||Ke===void 0||Ke.call(be),this.startIndex=ee+1},ie.prototype.oncdata=function(Z,ee,ae){var ve,ye,be,Ke,Ye,Xe,Qe,et,Je,rt;this.endIndex=ee;var it=this.getSlice(Z,ee-ae);this.options.xmlMode||this.options.recognizeCDATA?((ye=(ve=this.cbs).oncdatastart)===null||ye===void 0||ye.call(ve),(Ke=(be=this.cbs).ontext)===null||Ke===void 0||Ke.call(be,it),(Xe=(Ye=this.cbs).oncdataend)===null||Xe===void 0||Xe.call(Ye)):((et=(Qe=this.cbs).oncomment)===null||et===void 0||et.call(Qe,"[CDATA[".concat(it,"]]")),(rt=(Je=this.cbs).oncommentend)===null||rt===void 0||rt.call(Je)),this.startIndex=ee+1},ie.prototype.onend=function(){var Z,ee;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var ae=this.stack.length;ae>0;this.cbs.onclosetag(this.stack[--ae],!0));}(ee=(Z=this.cbs).onend)===null||ee===void 0||ee.call(Z)},ie.prototype.reset=function(){var Z,ee,ae,ve;(ee=(Z=this.cbs).onreset)===null||ee===void 0||ee.call(Z),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(ve=(ae=this.cbs).onparserinit)===null||ve===void 0||ve.call(ae,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},ie.prototype.parseComplete=function(Z){this.reset(),this.end(Z)},ie.prototype.getSlice=function(Z,ee){for(;Z-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var ae=this.buffers[0].slice(Z-this.bufferOffset,ee-this.bufferOffset);ee-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),ae+=this.buffers[0].slice(0,ee-this.bufferOffset);return ae},ie.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},ie.prototype.write=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".write() after done!"));return}this.buffers.push(Z),this.tokenizer.running&&(this.tokenizer.write(Z),this.writeIndex++)},ie.prototype.end=function(Z){var ee,ae;if(this.ended){(ae=(ee=this.cbs).onerror)===null||ae===void 0||ae.call(ee,new Error(".end() after done!"));return}Z&&this.write(Z),this.ended=!0,this.tokenizer.end()},ie.prototype.pause=function(){this.tokenizer.pause()},ie.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"childNodes",{get:function(){return this.children},set:function(ee){this.children=ee},enumerable:!1,configurable:!0}),Z}(Node$6);node$1.NodeWithChildren=NodeWithChildren;var CDATA=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.CDATA,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.CDATA=CDATA;var Document$4=function(ie){__extends(Z,ie);function Z(){var ee=ie!==null&&ie.apply(this,arguments)||this;return ee.type=domelementtype_1$1.ElementType.Root,ee}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Document=Document$4;var Element$1=function(ie){__extends(Z,ie);function Z(ee,ae,ve,ye){ve===void 0&&(ve=[]),ye===void 0&&(ye=ee==="script"?domelementtype_1$1.ElementType.Script:ee==="style"?domelementtype_1$1.ElementType.Style:domelementtype_1$1.ElementType.Tag);var be=ie.call(this,ve)||this;return be.name=ee,be.attribs=ae,be.type=ye,be}return Object.defineProperty(Z.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"tagName",{get:function(){return this.name},set:function(ee){this.name=ee},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"attributes",{get:function(){var ee=this;return Object.keys(this.attribs).map(function(ae){var ve,ye;return{name:ae,value:ee.attribs[ae],namespace:(ve=ee["x-attribsNamespace"])===null||ve===void 0?void 0:ve[ae],prefix:(ye=ee["x-attribsPrefix"])===null||ye===void 0?void 0:ye[ae]}})},enumerable:!1,configurable:!0}),Z}(NodeWithChildren);node$1.Element=Element$1;function isTag(ie){return(0,domelementtype_1$1.isTag)(ie)}node$1.isTag=isTag;function isCDATA(ie){return ie.type===domelementtype_1$1.ElementType.CDATA}node$1.isCDATA=isCDATA;function isText(ie){return ie.type===domelementtype_1$1.ElementType.Text}node$1.isText=isText;function isComment(ie){return ie.type===domelementtype_1$1.ElementType.Comment}node$1.isComment=isComment;function isDirective(ie){return ie.type===domelementtype_1$1.ElementType.Directive}node$1.isDirective=isDirective;function isDocument(ie){return ie.type===domelementtype_1$1.ElementType.Root}node$1.isDocument=isDocument;function hasChildren(ie){return Object.prototype.hasOwnProperty.call(ie,"children")}node$1.hasChildren=hasChildren;function cloneNode$1(ie,Z){Z===void 0&&(Z=!1);var ee;if(isText(ie))ee=new Text(ie.data);else if(isComment(ie))ee=new Comment$5(ie.data);else if(isTag(ie)){var ae=Z?cloneChildren(ie.children):[],ve=new Element$1(ie.name,__assign$2({},ie.attribs),ae);ae.forEach(function(Ye){return Ye.parent=ve}),ie.namespace!=null&&(ve.namespace=ie.namespace),ie["x-attribsNamespace"]&&(ve["x-attribsNamespace"]=__assign$2({},ie["x-attribsNamespace"])),ie["x-attribsPrefix"]&&(ve["x-attribsPrefix"]=__assign$2({},ie["x-attribsPrefix"])),ee=ve}else if(isCDATA(ie)){var ae=Z?cloneChildren(ie.children):[],ye=new CDATA(ae);ae.forEach(function(Xe){return Xe.parent=ye}),ee=ye}else if(isDocument(ie)){var ae=Z?cloneChildren(ie.children):[],be=new Document$4(ae);ae.forEach(function(Xe){return Xe.parent=be}),ie["x-mode"]&&(be["x-mode"]=ie["x-mode"]),ee=be}else if(isDirective(ie)){var Ke=new ProcessingInstruction(ie.name,ie.data);ie["x-name"]!=null&&(Ke["x-name"]=ie["x-name"],Ke["x-publicId"]=ie["x-publicId"],Ke["x-systemId"]=ie["x-systemId"]),ee=Ke}else throw new Error("Not implemented yet: ".concat(ie.type));return ee.startIndex=ie.startIndex,ee.endIndex=ie.endIndex,ie.sourceCodeLocation!=null&&(ee.sourceCodeLocation=ie.sourceCodeLocation),ee}node$1.cloneNode=cloneNode$1;function cloneChildren(ie){for(var Z=ie.map(function(ae){return cloneNode$1(ae,!0)}),ee=1;ee$\x80-\uFFFF]/g;var Z=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);ie.getCodePoint=String.prototype.codePointAt!=null?function(ve,ye){return ve.codePointAt(ye)}:function(ve,ye){return(ve.charCodeAt(ye)&64512)===55296?(ve.charCodeAt(ye)-55296)*1024+ve.charCodeAt(ye+1)-56320+65536:ve.charCodeAt(ye)};function ee(ve){for(var ye="",be=0,Ke;(Ke=ie.xmlReplacer.exec(ve))!==null;){var Ye=Ke.index,Xe=ve.charCodeAt(Ye),Qe=Z.get(Xe);Qe!==void 0?(ye+=ve.substring(be,Ye)+Qe,be=Ye+1):(ye+="".concat(ve.substring(be,Ye),"&#x").concat((0,ie.getCodePoint)(ve,Ye).toString(16),";"),be=ie.xmlReplacer.lastIndex+=+((Xe&64512)===55296))}return ye+ve.substr(be)}ie.encodeXML=ee,ie.escape=ee;function ae(ve,ye){return function(Ke){for(var Ye,Xe=0,Qe="";Ye=ve.exec(Ke);)Xe!==Ye.index&&(Qe+=Ke.substring(Xe,Ye.index)),Qe+=ye.get(Ye[0].charCodeAt(0)),Xe=Ye.index+1;return Qe+Ke.substring(Xe)}}ie.escapeUTF8=ae(/[&<>'"]/g,Z),ie.escapeAttribute=ae(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ie.escapeText=ae(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(encode,"__esModule",{value:!0});encode.encodeNonAsciiHTML=encode.encodeHTML=void 0;var encode_html_js_1=__importDefault$1(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(ie){return encodeHTMLTrieRe(htmlReplacer,ie)}encode.encodeHTML=encodeHTML;function encodeNonAsciiHTML(ie){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,ie)}encode.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(ie,Z){for(var ee="",ae=0,ve;(ve=ie.exec(Z))!==null;){var ye=ve.index;ee+=Z.substring(ae,ye);var be=Z.charCodeAt(ye),Ke=encode_html_js_1.default.get(be);if(typeof Ke=="object"){if(ye+10&&(ae+=render(ie.children,Z)),(Z.xmlMode||!singleTag.has(ie.name))&&(ae+=""))),ae}function renderDirective(ie){return"<".concat(ie.data,">")}function renderText(ie,Z){var ee,ae=ie.data||"";return((ee=Z.encodeEntities)!==null&&ee!==void 0?ee:Z.decodeEntities)!==!1&&!(!Z.xmlMode&&ie.parent&&unencodedElements.has(ie.parent.name))&&(ae=Z.xmlMode||Z.encodeEntities!=="utf8"?(0,entities_1.encodeXML)(ae):(0,entities_1.escapeText)(ae)),ae}function renderCdata(ie){return"")}function renderComment(ie){return"")}var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(stringify$5,"__esModule",{value:!0});stringify$5.innerText=stringify$5.textContent=stringify$5.getText=stringify$5.getInnerHTML=stringify$5.getOuterHTML=void 0;var domhandler_1$3=lib$4,dom_serializer_1=__importDefault(lib$1),domelementtype_1=lib$3;function getOuterHTML(ie,Z){return(0,dom_serializer_1.default)(ie,Z)}stringify$5.getOuterHTML=getOuterHTML;function getInnerHTML(ie,Z){return(0,domhandler_1$3.hasChildren)(ie)?ie.children.map(function(ee){return getOuterHTML(ee,Z)}).join(""):""}stringify$5.getInnerHTML=getInnerHTML;function getText(ie){return Array.isArray(ie)?ie.map(getText).join(""):(0,domhandler_1$3.isTag)(ie)?ie.name==="br"?` `:getText(ie.children):(0,domhandler_1$3.isCDATA)(ie)?getText(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.getText=getText;function textContent(ie){return Array.isArray(ie)?ie.map(textContent).join(""):(0,domhandler_1$3.hasChildren)(ie)&&!(0,domhandler_1$3.isComment)(ie)?textContent(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.textContent=textContent;function innerText(ie){return Array.isArray(ie)?ie.map(innerText).join(""):(0,domhandler_1$3.hasChildren)(ie)&&(ie.type===domelementtype_1.ElementType.Tag||(0,domhandler_1$3.isCDATA)(ie))?innerText(ie.children):(0,domhandler_1$3.isText)(ie)?ie.data:""}stringify$5.innerText=innerText;var traversal={};Object.defineProperty(traversal,"__esModule",{value:!0});traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var domhandler_1$2=lib$4;function getChildren(ie){return(0,domhandler_1$2.hasChildren)(ie)?ie.children:[]}traversal.getChildren=getChildren;function getParent(ie){return ie.parent||null}traversal.getParent=getParent;function getSiblings(ie){var Z,ee,ae=getParent(ie);if(ae!=null)return getChildren(ae);for(var ve=[ie],ye=ie.prev,be=ie.next;ye!=null;)ve.unshift(ye),Z=ye,ye=Z.prev;for(;be!=null;)ve.push(be),ee=be,be=ee.next;return ve}traversal.getSiblings=getSiblings;function getAttributeValue(ie,Z){var ee;return(ee=ie.attribs)===null||ee===void 0?void 0:ee[Z]}traversal.getAttributeValue=getAttributeValue;function hasAttrib(ie,Z){return ie.attribs!=null&&Object.prototype.hasOwnProperty.call(ie.attribs,Z)&&ie.attribs[Z]!=null}traversal.hasAttrib=hasAttrib;function getName(ie){return ie.name}traversal.getName=getName;function nextElementSibling(ie){for(var Z,ee=ie.next;ee!==null&&!(0,domhandler_1$2.isTag)(ee);)Z=ee,ee=Z.next;return ee}traversal.nextElementSibling=nextElementSibling;function prevElementSibling(ie){for(var Z,ee=ie.prev;ee!==null&&!(0,domhandler_1$2.isTag)(ee);)Z=ee,ee=Z.prev;return ee}traversal.prevElementSibling=prevElementSibling;var manipulation={};Object.defineProperty(manipulation,"__esModule",{value:!0});manipulation.prepend=manipulation.prependChild=manipulation.append=manipulation.appendChild=manipulation.replaceElement=manipulation.removeElement=void 0;function removeElement(ie){if(ie.prev&&(ie.prev.next=ie.next),ie.next&&(ie.next.prev=ie.prev),ie.parent){var Z=ie.parent.children,ee=Z.lastIndexOf(ie);ee>=0&&Z.splice(ee,1)}ie.next=null,ie.prev=null,ie.parent=null}manipulation.removeElement=removeElement;function replaceElement(ie,Z){var ee=Z.prev=ie.prev;ee&&(ee.next=Z);var ae=Z.next=ie.next;ae&&(ae.prev=Z);var ve=Z.parent=ie.parent;if(ve){var ye=ve.children;ye[ye.lastIndexOf(ie)]=Z,ie.parent=null}}manipulation.replaceElement=replaceElement;function appendChild(ie,Z){if(removeElement(Z),Z.next=null,Z.parent=ie,ie.children.push(Z)>1){var ee=ie.children[ie.children.length-2];ee.next=Z,Z.prev=ee}else Z.prev=null}manipulation.appendChild=appendChild;function append(ie,Z){removeElement(Z);var ee=ie.parent,ae=ie.next;if(Z.next=ae,Z.prev=ie,ie.next=Z,Z.parent=ee,ae){if(ae.prev=Z,ee){var ve=ee.children;ve.splice(ve.lastIndexOf(ae),0,Z)}}else ee&&ee.children.push(Z)}manipulation.append=append;function prependChild(ie,Z){if(removeElement(Z),Z.parent=ie,Z.prev=null,ie.children.unshift(Z)!==1){var ee=ie.children[1];ee.prev=Z,Z.next=ee}else Z.next=null}manipulation.prependChild=prependChild;function prepend(ie,Z){removeElement(Z);var ee=ie.parent;if(ee){var ae=ee.children;ae.splice(ae.indexOf(ie),0,Z)}ie.prev&&(ie.prev.next=Z),Z.parent=ee,Z.prev=ie.prev,Z.next=ie,ie.prev=Z}manipulation.prepend=prepend;var querying={};Object.defineProperty(querying,"__esModule",{value:!0});querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var domhandler_1$1=lib$4;function filter$1(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),find(ie,Array.isArray(Z)?Z:[Z],ee,ae)}querying.filter=filter$1;function find(ie,Z,ee,ae){for(var ve=[],ye=[Z],be=[0];;){if(be[0]>=ye[0].length){if(be.length===1)return ve;ye.shift(),be.shift();continue}var Ke=ye[0][be[0]++];if(ie(Ke)&&(ve.push(Ke),--ae<=0))return ve;ee&&(0,domhandler_1$1.hasChildren)(Ke)&&Ke.children.length>0&&(be.unshift(0),ye.unshift(Ke.children))}}querying.find=find;function findOneChild(ie,Z){return Z.find(ie)}querying.findOneChild=findOneChild;function findOne(ie,Z,ee){ee===void 0&&(ee=!0);for(var ae=null,ve=0;ve0&&(ae=findOne(ie,ye.children,!0));else continue}return ae}querying.findOne=findOne;function existsOne(ie,Z){return Z.some(function(ee){return(0,domhandler_1$1.isTag)(ee)&&(ie(ee)||existsOne(ie,ee.children))})}querying.existsOne=existsOne;function findAll(ie,Z){for(var ee=[],ae=[Z],ve=[0];;){if(ve[0]>=ae[0].length){if(ae.length===1)return ee;ae.shift(),ve.shift();continue}var ye=ae[0][ve[0]++];(0,domhandler_1$1.isTag)(ye)&&(ie(ye)&&ee.push(ye),ye.children.length>0&&(ve.unshift(0),ae.unshift(ye.children)))}}querying.findAll=findAll;var legacy={};Object.defineProperty(legacy,"__esModule",{value:!0});legacy.getElementsByTagType=legacy.getElementsByTagName=legacy.getElementById=legacy.getElements=legacy.testElement=void 0;var domhandler_1=lib$4,querying_js_1=querying,Checks={tag_name:function(ie){return typeof ie=="function"?function(Z){return(0,domhandler_1.isTag)(Z)&&ie(Z.name)}:ie==="*"?domhandler_1.isTag:function(Z){return(0,domhandler_1.isTag)(Z)&&Z.name===ie}},tag_type:function(ie){return typeof ie=="function"?function(Z){return ie(Z.type)}:function(Z){return Z.type===ie}},tag_contains:function(ie){return typeof ie=="function"?function(Z){return(0,domhandler_1.isText)(Z)&&ie(Z.data)}:function(Z){return(0,domhandler_1.isText)(Z)&&Z.data===ie}}};function getAttribCheck(ie,Z){return typeof Z=="function"?function(ee){return(0,domhandler_1.isTag)(ee)&&Z(ee.attribs[ie])}:function(ee){return(0,domhandler_1.isTag)(ee)&&ee.attribs[ie]===Z}}function combineFuncs(ie,Z){return function(ee){return ie(ee)||Z(ee)}}function compileTest(ie){var Z=Object.keys(ie).map(function(ee){var ae=ie[ee];return Object.prototype.hasOwnProperty.call(Checks,ee)?Checks[ee](ae):getAttribCheck(ee,ae)});return Z.length===0?null:Z.reduce(combineFuncs)}function testElement(ie,Z){var ee=compileTest(ie);return ee?ee(Z):!0}legacy.testElement=testElement;function getElements(ie,Z,ee,ae){ae===void 0&&(ae=1/0);var ve=compileTest(ie);return ve?(0,querying_js_1.filter)(ve,Z,ee,ae):[]}legacy.getElements=getElements;function getElementById(ie,Z,ee){return ee===void 0&&(ee=!0),Array.isArray(Z)||(Z=[Z]),(0,querying_js_1.findOne)(getAttribCheck("id",ie),Z,ee)}legacy.getElementById=getElementById;function getElementsByTagName(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),(0,querying_js_1.filter)(Checks.tag_name(ie),Z,ee,ae)}legacy.getElementsByTagName=getElementsByTagName;function getElementsByTagType(ie,Z,ee,ae){return ee===void 0&&(ee=!0),ae===void 0&&(ae=1/0),(0,querying_js_1.filter)(Checks.tag_type(ie),Z,ee,ae)}legacy.getElementsByTagType=getElementsByTagType;var helpers={};(function(ie){Object.defineProperty(ie,"__esModule",{value:!0}),ie.uniqueSort=ie.compareDocumentPosition=ie.DocumentPosition=ie.removeSubsets=void 0;var Z=lib$4;function ee(be){for(var Ke=be.length;--Ke>=0;){var Ye=be[Ke];if(Ke>0&&be.lastIndexOf(Ye,Ke-1)>=0){be.splice(Ke,1);continue}for(var Xe=Ye.parent;Xe;Xe=Xe.parent)if(be.includes(Xe)){be.splice(Ke,1);break}}return be}ie.removeSubsets=ee;var ae;(function(be){be[be.DISCONNECTED=1]="DISCONNECTED",be[be.PRECEDING=2]="PRECEDING",be[be.FOLLOWING=4]="FOLLOWING",be[be.CONTAINS=8]="CONTAINS",be[be.CONTAINED_BY=16]="CONTAINED_BY"})(ae=ie.DocumentPosition||(ie.DocumentPosition={}));function ve(be,Ke){var Ye=[],Xe=[];if(be===Ke)return 0;for(var Qe=(0,Z.hasChildren)(be)?be:be.parent;Qe;)Ye.unshift(Qe),Qe=Qe.parent;for(Qe=(0,Z.hasChildren)(Ke)?Ke:Ke.parent;Qe;)Xe.unshift(Qe),Qe=Qe.parent;for(var et=Math.min(Ye.length,Xe.length),Je=0;Jeit.indexOf(tt)?rt===Ke?ae.FOLLOWING|ae.CONTAINED_BY:ae.FOLLOWING:rt===be?ae.PRECEDING|ae.CONTAINS:ae.PRECEDING}ie.compareDocumentPosition=ve;function ye(be){return be=be.filter(function(Ke,Ye,Xe){return!Xe.includes(Ke,Ye+1)}),be.sort(function(Ke,Ye){var Xe=ve(Ke,Ye);return Xe&ae.PRECEDING?-1:Xe&ae.FOLLOWING?1:0}),be}ie.uniqueSort=ye})(helpers);var feeds={};Object.defineProperty(feeds,"__esModule",{value:!0});feeds.getFeed=void 0;var stringify_js_1=stringify$5,legacy_js_1=legacy;function getFeed(ie){var Z=getOneElement(isValidFeed,ie);return Z?Z.name==="feed"?getAtomFeed(Z):getRssFeed(Z):null}feeds.getFeed=getFeed;function getAtomFeed(ie){var Z,ee=ie.children,ae={type:"atom",items:(0,legacy_js_1.getElementsByTagName)("entry",ee).map(function(be){var Ke,Ye=be.children,Xe={media:getMediaElements(Ye)};addConditionally(Xe,"id","id",Ye),addConditionally(Xe,"title","title",Ye);var Qe=(Ke=getOneElement("link",Ye))===null||Ke===void 0?void 0:Ke.attribs.href;Qe&&(Xe.link=Qe);var et=fetch$1("summary",Ye)||fetch$1("content",Ye);et&&(Xe.description=et);var Je=fetch$1("updated",Ye);return Je&&(Xe.pubDate=new Date(Je)),Xe})};addConditionally(ae,"id","id",ee),addConditionally(ae,"title","title",ee);var ve=(Z=getOneElement("link",ee))===null||Z===void 0?void 0:Z.attribs.href;ve&&(ae.link=ve),addConditionally(ae,"description","subtitle",ee);var ye=fetch$1("updated",ee);return ye&&(ae.updated=new Date(ye)),addConditionally(ae,"author","email",ee,!0),ae}function getRssFeed(ie){var Z,ee,ae=(ee=(Z=getOneElement("channel",ie.children))===null||Z===void 0?void 0:Z.children)!==null&&ee!==void 0?ee:[],ve={type:ie.name.substr(0,3),id:"",items:(0,legacy_js_1.getElementsByTagName)("item",ie.children).map(function(be){var Ke=be.children,Ye={media:getMediaElements(Ke)};addConditionally(Ye,"id","guid",Ke),addConditionally(Ye,"title","title",Ke),addConditionally(Ye,"link","link",Ke),addConditionally(Ye,"description","description",Ke);var Xe=fetch$1("pubDate",Ke)||fetch$1("dc:date",Ke);return Xe&&(Ye.pubDate=new Date(Xe)),Ye})};addConditionally(ve,"title","title",ae),addConditionally(ve,"link","link",ae),addConditionally(ve,"description","description",ae);var ye=fetch$1("lastBuildDate",ae);return ye&&(ve.updated=new Date(ye)),addConditionally(ve,"author","managingEditor",ae,!0),ve}var MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(ie){return(0,legacy_js_1.getElementsByTagName)("media:content",ie).map(function(Z){for(var ee=Z.attribs,ae={medium:ee.medium,isDefault:!!ee.isDefault},ve=0,ye=MEDIA_KEYS_STRING;ve{if(typeof ie!="string")throw new TypeError("Expected a string");return ie.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},isPlainObject$2={};Object.defineProperty(isPlainObject$2,"__esModule",{value:!0});/*! * is-plain-object * diff --git a/index-Vzwt8Hh-.js b/index-Vzwt8Hh-.js new file mode 100644 index 0000000..c9a8111 --- /dev/null +++ b/index-Vzwt8Hh-.js @@ -0,0 +1,174 @@ +function eS(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function e(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(n){if(n.ep)return;n.ep=!0;const a=e(n);fetch(n.href,a)}})();var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tS(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var a2={exports:{}},sd={},i2={exports:{}},rt={};/** +* @license React +* react.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var Vl=Symbol.for("react.element"),rS=Symbol.for("react.portal"),nS=Symbol.for("react.fragment"),aS=Symbol.for("react.strict_mode"),iS=Symbol.for("react.profiler"),oS=Symbol.for("react.provider"),sS=Symbol.for("react.context"),lS=Symbol.for("react.forward_ref"),uS=Symbol.for("react.suspense"),cS=Symbol.for("react.memo"),dS=Symbol.for("react.lazy"),o2=Symbol.iterator;function hS(t){return t===null||typeof t!="object"?null:(t=o2&&t[o2]||t["@@iterator"],typeof t=="function"?t:null)}var s2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l2=Object.assign,u2={};function ms(t,e,r){this.props=t,this.context=e,this.refs=u2,this.updater=r||s2}ms.prototype.isReactComponent={},ms.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},ms.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function c2(){}c2.prototype=ms.prototype;function Nm(t,e,r){this.props=t,this.context=e,this.refs=u2,this.updater=r||s2}var Om=Nm.prototype=new c2;Om.constructor=Nm,l2(Om,ms.prototype),Om.isPureReactComponent=!0;var d2=Array.isArray,h2=Object.prototype.hasOwnProperty,Rm={current:null},f2={key:!0,ref:!0,__self:!0,__source:!0};function p2(t,e,r){var n,a={},i=null,l=null;if(e!=null)for(n in e.ref!==void 0&&(l=e.ref),e.key!==void 0&&(i=""+e.key),e)h2.call(e,n)&&!f2.hasOwnProperty(n)&&(a[n]=e[n]);var u=arguments.length-2;if(u===1)a.children=r;else if(11&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||SS,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a{let[l,u]=i;for(let c=0;c{let[l,u]=i;for(let c=0;c{t=n,e=a});return r.resolve=t,r.reject=e,r}function y2(t){return t==null?"":""+t}function CS(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const _S=/###/g;function Wl(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(_S,"."):u}function a(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let l=0;for(;l":">",'"':""","'":"'","/":"/"};function IS(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>MS[e]):t}class NS{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const OS=[" ",",","?","!",";"],RS=new NS(20);function TS(t,e,r){e=e||"",r=r||"";const n=OS.filter(l=>e.indexOf(l)<0&&r.indexOf(l)<0);if(n.length===0)return!0;const a=RS.getRegExp(`(${n.map(l=>l==="?"?"\\?":l).join("|")})`);let i=!a.test(t);if(!i){const l=t.indexOf(r);l>0&&!a.test(t.substring(0,l))&&(i=!0)}return i}function Fm(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let a=t;for(let i=0;i-1&&c0?t.replace("_","-"):t}class w2 extends dd{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,r],n&&(Array.isArray(n)?u.push(...n):typeof n=="string"&&i?u.push(...n.split(i)):u.push(n)));const c=hd(this.data,u);return!c&&!r&&!n&&e.indexOf(".")>-1&&(e=u[0],r=u[1],n=u.slice(2).join(".")),c||!l||typeof n!="string"?c:Fm(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let u=[e,r];n&&(u=u.concat(l?n.split(l):n)),e.indexOf(".")>-1&&(u=e.split("."),a=r,r=u[1]),this.addNamespaces(r),b2(this.data,u,a),i.silent||this.emit("added",e,r,n,a)}addResources(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Object.prototype.toString.apply(n[i])==="[object Array]")&&this.addResource(e,r,i,n[i],{silent:!0});a.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,a,i){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[e,r];e.indexOf(".")>-1&&(u=e.split("."),a=n,n=r,r=u[1]),this.addNamespaces(r);let c=hd(this.data,u)||{};a?k2(c,n,i):c={...c,...n},b2(this.data,u,c),l.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var x2={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,a){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,a))}),e}};const S2={};class xp extends dd{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),CS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ma.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const l=n&&e.indexOf(n)>-1,u=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!TS(e,n,a);if(l&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:i};const d=e.split(n);(n!==a||n===a&&this.options.ns.indexOf(d[0])>-1)&&(i=d.shift()),e=d.join(a)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(e[e.length-1],r),c=u[u.length-1],d=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(f){const m=r.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${m}${l}`,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${m}${l}`}return a?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:l}const g=this.resolve(e,r);let v=g&&g.res;const y=g&&g.usedKey||l,b=g&&g.exactUsedKey||l,S=Object.prototype.toString.apply(v),E=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&v&&typeof v!="string"&&typeof v!="boolean"&&typeof v!="number"&&E.indexOf(S)<0&&!(typeof x=="string"&&S==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const m=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,v,{...r,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(g.res=m,g.usedParams=this.getUsedParamsDetails(r),g):m}if(i){const m=S==="[object Array]",C=m?[]:{},N=m?b:y;for(const O in v)if(Object.prototype.hasOwnProperty.call(v,O)){const A=`${N}${i}${O}`;C[O]=this.translate(A,{...r,joinArrays:!1,ns:u}),C[O]===A&&(C[O]=v[O])}v=C}}else if(w&&typeof x=="string"&&S==="[object Array]")v=v.join(x),v&&(v=this.extendTranslation(v,e,r,n));else{let m=!1,C=!1;const N=r.count!==void 0&&typeof r.count!="string",O=xp.hasDefaultValue(r),A=N?this.pluralResolver.getSuffix(d,r.count,r):"",R=r.ordinal&&N?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",j=N&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),L=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${A}`]||r[`defaultValue${R}`]||r.defaultValue;!this.isValidLookup(v)&&O&&(m=!0,v=L),this.isValidLookup(v)||(C=!0,v=l);const U=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:v,H=O&&L!==v&&this.options.updateMissing;if(C||m||H){if(this.logger.log(H?"updateKey":"missingKey",d,c,l,H?L:v),i){const se=this.resolve(l,{...r,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(let se=0;se{const Z=O&&D!==v?D:U;this.options.missingKeyHandler?this.options.missingKeyHandler(se,c,K,Z,H,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(se,c,K,Z,H,r),this.emit("missingKey",se,c,K,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?q.forEach(se=>{const K=this.pluralResolver.getSuffixes(se,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&K.indexOf(`${this.options.pluralSeparator}zero`)<0&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(D=>{ie([se],l+D,r[`defaultValue${D}`]||L)})}):ie(q,l,L))}v=this.extendTranslation(v,e,r,g,n),C&&v===l&&this.options.appendNamespaceToMissingKey&&(v=`${c}:${l}`),(C||m)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,m?v:void 0):v=this.options.parseMissingKeyHandler(v))}return a?(g.res=v,g.usedParams=this.getUsedParamsDetails(r),g):v}extendTranslation(e,r,n,a,i){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const v=e.match(this.interpolator.nestingRegexp);f=v&&v.length}let g=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,n.lng||this.language,n),d){const v=e.match(this.interpolator.nestingRegexp),y=v&&v.length;f1&&arguments[1]!==void 0?arguments[1]:{},n,a,i,l,u;return typeof e=="string"&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(n))return;const d=this.extractFromKey(c,r),f=d.key;a=f;let g=d.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const v=r.count!==void 0&&typeof r.count!="string",y=v&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),b=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",S=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);g.forEach(E=>{this.isValidLookup(n)||(u=E,!S2[`${S[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(S2[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${a}" for languages "${S.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(x=>{if(this.isValidLookup(n))return;l=x;const w=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,f,x,E,r);else{let C;v&&(C=this.pluralResolver.getSuffix(x,r.count,r));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(w.push(f+C),r.ordinal&&C.indexOf(O)===0&&w.push(f+C.replace(O,this.options.pluralSeparator)),y&&w.push(f+N)),b){const A=`${f}${this.options.contextSeparator}${r.context}`;w.push(A),v&&(w.push(A+C),r.ordinal&&C.indexOf(O)===0&&w.push(A+C.replace(O,this.options.pluralSeparator)),y&&w.push(A+N))}}let m;for(;m=w.pop();)this.isValidLookup(n)||(i=m,n=this.getResource(x,E,m,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:l,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,a):this.resourceStore.getResource(e,r,n,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let a=n?e.replace:e;if(n&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const i of r)delete a[i]}return a}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function jm(t){return t.charAt(0).toUpperCase()+t.slice(1)}class C2{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ma.create("languageUtils")}getScriptPartFromCode(e){if(e=fd(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=fd(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=jm(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=jm(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=jm(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(i=>{if(i===a||!(i.indexOf("-")<0&&a.indexOf("-")<0)&&i.indexOf(a)===0)return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),a=[],i=l=>{l&&(this.isSupportedCode(l)?a.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(l=>{a.indexOf(l)<0&&i(this.formatLanguageCode(l))}),a}}let LS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],FS={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const jS=["v1","v2","v3"],AS=["v4"],_2={zero:0,one:1,two:2,few:3,many:4,other:5};function zS(){const t={};return LS.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:FS[e.fc]}})}),t}class DS{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ma.create("pluralResolver"),(!this.options.compatibilityJSON||AS.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=zS()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(fd(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(a=>`${r}${a}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,i)=>_2[a]-_2[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(e,a,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let a=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const i=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!jS.includes(this.options.compatibilityJSON)}}function E2(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=PS(t,e,r);return!i&&a&&typeof r=="string"&&(i=Fm(t,r,n),i===void 0&&(i=Fm(e,r,n))),i}class BS{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ma.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const r=e.interpolation;this.escape=r.escape!==void 0?r.escape:IS,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?gs(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?gs(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?gs(r.nestingPrefix):r.nestingPrefixEscaped||gs("$t("),this.nestingSuffix=r.nestingSuffix?gs(r.nestingSuffix):r.nestingSuffixEscaped||gs(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,a){let i,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}const f=y=>{if(y.indexOf(this.formatSeparator)<0){const x=E2(r,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...a,...r,interpolationkey:y}):x}const b=y.split(this.formatSeparator),S=b.shift().trim(),E=b.join(this.formatSeparator).trim();return this.format(E2(r,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),E,n,{...a,...r,interpolationkey:S})};this.resetRegExp();const g=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,v=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>d(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?d(this.escape(y)):d(y)}].forEach(y=>{for(u=0;i=y.regex.exec(e);){const b=i[1].trim();if(l=f(b),l===void 0)if(typeof g=="function"){const E=g(e,i,a);l=typeof E=="string"?E:""}else if(a&&Object.prototype.hasOwnProperty.call(a,b))l="";else if(v){l=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=y2(l));const S=y.safeValue(l);if(e=e.replace(i[0],S),v?(y.regex.lastIndex+=l.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,i,l;function u(c,d){const f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;const g=c.split(new RegExp(`${f}[ ]*{`));let v=`{${g[1]}`;c=g[0],v=this.interpolate(v,l);const y=v.match(/'/g),b=v.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{l=JSON.parse(v),d&&(l={...d,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${f}${v}`}return delete l.defaultValue,c}for(;a=this.nestingRegexp.exec(e);){let c=[];l={...n},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const f=a[1].split(this.formatSeparator).map(g=>g.trim());a[1]=f.shift(),c=f,d=!0}if(i=r(u.call(this,a[1].trim(),l),l),i&&a[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=y2(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),i=""),d&&(i=c.reduce((f,g)=>this.format(f,g,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),e=e.replace(a[0],i),this.regexp.lastIndex=0}return e}}function US(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);e==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(!i)return;const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=c),c==="false"&&(r[l.trim()]=!1),c==="true"&&(r[l.trim()]=!0),isNaN(c)||(r[l.trim()]=parseInt(c,10))})}return{formatName:e,formatOptions:r}}function vs(t){const e={};return function(r,n,a){const i=n+JSON.stringify(a);let l=e[i];return l||(l=t(fd(n),a),e[i]=l),l(r)}}class $S{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ma.create("formatter"),this.options=e,this.formats={number:vs((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return i=>a.format(i)}),currency:vs((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>a.format(i)}),datetime:vs((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return i=>a.format(i)}),relativetime:vs((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return i=>a.format(i,n.range||"day")}),list:vs((r,n)=>{const a=new Intl.ListFormat(r,{...n});return i=>a.format(i)})},this.init(e)}init(e){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=vs(r)}format(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((i,l)=>{const{formatName:u,formatOptions:c}=US(l);if(this.formats[u]){let d=i;try{const f=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=f.locale||f.lng||a.locale||a.lng||n;d=this.formats[u](i,g,{...c,...a,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return i},e)}}function VS(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class GS extends dd{constructor(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ma.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(e,r,n,a){const i={},l={},u={},c={};return e.forEach(d=>{let f=!0;r.forEach(g=>{const v=`${d}|${g}`;!n.reload&&this.store.hasResourceBundle(d,g)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?l[v]===void 0&&(l[v]=!0):(this.state[v]=1,f=!1,l[v]===void 0&&(l[v]=!0),i[v]===void 0&&(i[v]=!0),c[g]===void 0&&(c[g]=!0)))}),f||(u[d]=!0)}),(Object.keys(i).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,r,n){const a=e.split("|"),i=a[0],l=a[1];r&&this.emit("failedLoading",i,l,r),n&&this.store.addResourceBundle(i,l,n),this.state[e]=r?-1:2;const u={};this.queue.forEach(c=>{ES(c.loaded,[i],l),VS(c,e),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{u[d]||(u[d]={});const f=c.loaded[d];f.length&&f.forEach(g=>{u[d][g]===void 0&&(u[d][g]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:a,wait:i,callback:l});return}this.readingCalls++;const u=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(d&&f&&a{this.read.call(this,e,r,n,a+1,i*2,l)},i);return}l(d,f)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const d=c(e,r);d&&typeof d.then=="function"?d.then(f=>u(null,f)).catch(u):u(null,d)}catch(d){u(d)}return}return c(e,r,u)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(l=>{this.loadOne(l)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,l),!l&&u&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,u),this.loaded(e,l,u)})}saveMissing(e,r,n,a,i){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...l,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(e,r,n,a,c):f=d(e,r,n,a),f&&typeof f.then=="function"?f.then(g=>u(null,g)).catch(u):u(null,f)}catch(f){u(f)}else d(e,r,n,a,u,c)}!e||!e[0]||this.store.addResource(e[0],r,n,a)}}}function P2(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if(typeof t[1]=="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function M2(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function pd(){}function WS(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{typeof t[e]=="function"&&(t[e]=t[e].bind(t))})}class pc extends dd{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=M2(e),this.services={},this.logger=ma,this.modules={external:[]},WS(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=P2();this.options={...a,...this.options,...M2(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ma.init(i(this.modules.logger),this.options):ma.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=$S);const d=new C2(this.options);this.store=new w2(this.options.resources,this.options);const f=this.services;f.logger=ma,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new DS(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new BS(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new GS(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(g){for(var v=arguments.length,y=new Array(v>1?v-1:0),b=1;b1?v-1:0),b=1;b{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=pd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Gl(),u=()=>{const c=(d,f)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pd;const n=typeof e=="string"?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],i=l=>{!l||l==="cimode"||this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(e,r,n){const a=Gl();return e||(e=this.languages),r||(r=this.options.ns),n||(n=pd),this.services.backendConnector.reload(e,r,i=>{a.resolve(),n(i)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&x2.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const a=Gl();this.emit("languageChanging",e);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,d)=>{d?(i(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const d=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,f=>{l(f,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,r,n){var a=this;const i=function(l,u){let c;if(typeof u!="object"){for(var d=arguments.length,f=new Array(d>2?d-2:0),g=2;g`${c.keyPrefix}${v}${b}`):y=c.keyPrefix?`${c.keyPrefix}${v}${l}`:l,a.t(y,c)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const d=this.services.backendConnector.state[`${u}|${c}`];return d===-1||d===2};if(r.precheck){const u=r.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(n,e)&&(!a||l(i,e)))}loadNamespaces(e,r){const n=Gl();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Gl();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],i=e.filter(l=>a.indexOf(l)<0);return i.length?(this.options.preload=a.concat(i),this.loadResources(l=>{n.resolve(),r&&r(l)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new C2(P2());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new pc(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pd;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},i=new pc(a);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new w2(this.store.data,a),i.services.resourceStore=i.store),i.translator=new xp(i.services,a),i.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d>>1,he=D[oe];if(0>>1;oea(Me,Q))Nea($,Me)?(D[oe]=$,D[Ne]=Q,oe=Ne):(D[oe]=Me,D[me]=Q,oe=me);else if(Nea($,Q))D[oe]=$,D[Ne]=Q,oe=Ne;else break e}}return Z}function a(D,Z){var Q=D.sortIndex-Z.sortIndex;return Q!==0?Q:D.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],d=[],f=1,g=null,v=3,y=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(D){for(var Z=r(d);Z!==null;){if(Z.callback===null)n(d);else if(Z.startTime<=D)n(d),Z.sortIndex=Z.expirationTime,e(c,Z);else break;Z=r(d)}}function C(D){if(S=!1,m(D),!b)if(r(c)!==null)b=!0,se(N);else{var Z=r(d);Z!==null&&K(C,Z.startTime-D)}}function N(D,Z){b=!1,S&&(S=!1,x(R),R=-1),y=!0;var Q=v;try{for(m(Z),g=r(c);g!==null&&(!(g.expirationTime>Z)||D&&!U());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,v=g.priorityLevel;var he=oe(g.expirationTime<=Z);Z=t.unstable_now(),typeof he=="function"?g.callback=he:g===r(c)&&n(c),m(Z)}else n(c);g=r(c)}if(g!==null)var Ce=!0;else{var me=r(d);me!==null&&K(C,me.startTime-Z),Ce=!1}return Ce}finally{g=null,v=Q,y=!1}}var O=!1,A=null,R=-1,j=5,L=-1;function U(){return!(t.unstable_now()-LD||125oe?(D.sortIndex=Q,e(d,D),r(c)===null&&D===r(d)&&(S?(x(R),R=-1):S=!0,K(C,Q-oe))):(D.sortIndex=he,e(c,D),b||y||(b=!0,se(N))),D},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(D){var Z=v;return function(){var Q=v;v=Z;try{return D.apply(this,arguments)}finally{v=Q}}}})(O2),N2.exports=O2;var ql=N2.exports;/** +* @license React +* react-dom.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var R2=I,mn=ql;function ue(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Am=Object.prototype.hasOwnProperty,qS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L2={},F2={};function HS(t){return Am.call(F2,t)?!0:Am.call(L2,t)?!1:qS.test(t)?F2[t]=!0:(L2[t]=!0,!1)}function KS(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function YS(t,e,r,n){if(e===null||typeof e>"u"||KS(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Qr(t,e,r,n,a,i,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=l}var Mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Mr[t]=new Qr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Mr[e]=new Qr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Mr[t]=new Qr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Mr[t]=new Qr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Mr[t]=new Qr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Mr[t]=new Qr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Mr[t]=new Qr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Mr[t]=new Qr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Mr[t]=new Qr(t,5,!1,t.toLowerCase(),null,!1,!1)});var zm=/[\-:]([a-z])/g;function Dm(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(zm,Dm);Mr[e]=new Qr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(zm,Dm);Mr[e]=new Qr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(zm,Dm);Mr[e]=new Qr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Mr[t]=new Qr(t,1,!1,t.toLowerCase(),null,!1,!1)}),Mr.xlinkHref=new Qr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Mr[t]=new Qr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Bm(t,e,r,n){var a=Mr.hasOwnProperty(e)?Mr[e]:null;(a!==null?a.type!==0:n||!(2u||a[l]!==i[u]){var c=` +`+a[l].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=l&&0<=u);break}}}finally{Km=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Yl(t):""}function QS(t){switch(t.tag){case 5:return Yl(t.type);case 16:return Yl("Lazy");case 13:return Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 2:case 15:return t=Ym(t.type,!1),t;case 11:return t=Ym(t.type.render,!1),t;case 1:return t=Ym(t.type,!0),t;default:return""}}function Qm(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ks:return"Fragment";case bs:return"Portal";case $m:return"Profiler";case Um:return"StrictMode";case Gm:return"Suspense";case Wm:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case A2:return(t.displayName||"Context")+".Consumer";case j2:return(t._context.displayName||"Context")+".Provider";case Vm:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case qm:return e=t.displayName||null,e!==null?e:Qm(t.type)||"Memo";case bi:e=t._payload,t=t._init;try{return Qm(t(e))}catch{}}return null}function XS(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qm(e);case 8:return e===Um?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ki(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function B2(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function JS(t){var e=B2(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function gd(t){t._valueTracker||(t._valueTracker=JS(t))}function U2(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=B2(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function vd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Xm(t,e){var r=e.checked;return Dt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function $2(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ki(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function V2(t,e){e=e.checked,e!=null&&Bm(t,"checked",e,!1)}function Jm(t,e){V2(t,e);var r=ki(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Zm(t,e.type,r):e.hasOwnProperty("defaultValue")&&Zm(t,e.type,ki(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function G2(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Zm(t,e,r){(e!=="number"||vd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Ql=Array.isArray;function ws(t,e,r,n){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=yd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xl(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Jl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ZS=["Webkit","ms","Moz","O"];Object.keys(Jl).forEach(function(t){ZS.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Jl[e]=Jl[t]})});function Q2(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Jl.hasOwnProperty(t)&&Jl[t]?(""+e).trim():e+"px"}function X2(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=Q2(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,a):t[r]=a}}var e7=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rg(t,e){if(e){if(e7[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function ng(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ag=null;function ig(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var og=null,xs=null,Ss=null;function J2(t){if(t=ku(t)){if(typeof og!="function")throw Error(ue(280));var e=t.stateNode;e&&(e=Ud(e),og(t.stateNode,t.type,e))}}function Z2(t){xs?Ss?Ss.push(t):Ss=[t]:xs=t}function ek(){if(xs){var t=xs,e=Ss;if(Ss=xs=null,J2(t),e)for(t=0;t>>=0,t===0?32:31-(d7(t)/h7|0)|0}var Sd=64,Cd=4194304;function ru(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function _d(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,a=t.suspendedLanes,i=t.pingedLanes,l=r&268435455;if(l!==0){var u=l&~a;u!==0?n=ru(u):(i&=l,i!==0&&(n=ru(i)))}else l=r&~a,l!==0?n=ru(l):i!==0&&(n=ru(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&a)&&(a=n&-n,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function nu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Yn(e),t[e]=r}function g7(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=du),Mk=" ",Ik=!1;function Nk(t,e){switch(t){case"keyup":return G7.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ok(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Es=!1;function q7(t,e){switch(t){case"compositionend":return Ok(e);case"keypress":return e.which!==32?null:(Ik=!0,Mk);case"textInput":return t=e.data,t===Mk&&Ik?null:t;default:return null}}function H7(t,e){if(Es)return t==="compositionend"||!Cg&&Nk(t,e)?(t=xk(),Nd=yg=_i=null,Es=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zk(r)}}function Bk(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bk(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uk(){for(var t=window,e=vd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=vd(t.document)}return e}function Pg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function r9(t){var e=Uk(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Bk(r.ownerDocument.documentElement,r)){if(n!==null&&Pg(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!t.extend&&i>n&&(a=n,n=i,i=a),a=Dk(r,i);var l=Dk(r,n);a&&l&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ps=null,Mg=null,mu=null,Ig=!1;function $k(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ig||Ps==null||Ps!==vd(n)||(n=Ps,"selectionStart"in n&&Pg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mu&&pu(mu,n)||(mu=n,n=zd(Mg,"onSelect"),0Rs||(t.current=Ug[Rs],Ug[Rs]=null,Rs--)}function Pt(t,e){Rs++,Ug[Rs]=t.current,t.current=e}var Ii={},Dr=Mi(Ii),sn=Mi(!1),xo=Ii;function Ts(t,e){var r=t.type.contextTypes;if(!r)return Ii;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function ln(t){return t=t.childContextTypes,t!=null}function $d(){Ot(sn),Ot(Dr)}function nw(t,e,r){if(Dr.current!==Ii)throw Error(ue(168));Pt(Dr,e),Pt(sn,r)}function aw(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(ue(108,XS(t)||"Unknown",a));return Dt({},r,n)}function Vd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ii,xo=Dr.current,Pt(Dr,t),Pt(sn,sn.current),!0}function iw(t,e,r){var n=t.stateNode;if(!n)throw Error(ue(169));r?(t=aw(t,e,xo),n.__reactInternalMemoizedMergedChildContext=t,Ot(sn),Ot(Dr),Pt(Dr,t)):Ot(sn),Pt(sn,r)}var Ga=null,Gd=!1,$g=!1;function ow(t){Ga===null?Ga=[t]:Ga.push(t)}function p9(t){Gd=!0,ow(t)}function Ni(){if(!$g&&Ga!==null){$g=!0;var t=0,e=bt;try{var r=Ga;for(bt=1;t>=l,a-=l,Wa=1<<32-Yn(e)+a|r<R?(j=A,A=null):j=A.sibling;var L=v(x,A,m[R],C);if(L===null){A===null&&(A=j);break}t&&A&&L.alternate===null&&e(x,A),w=i(L,w,R),O===null?N=L:O.sibling=L,O=L,A=j}if(R===m.length)return r(x,A),Ft&&Co(x,R),N;if(A===null){for(;RR?(j=A,A=null):j=A.sibling;var U=v(x,A,L.value,C);if(U===null){A===null&&(A=j);break}t&&A&&U.alternate===null&&e(x,A),w=i(U,w,R),O===null?N=U:O.sibling=U,O=U,A=j}if(L.done)return r(x,A),Ft&&Co(x,R),N;if(A===null){for(;!L.done;R++,L=m.next())L=g(x,L.value,C),L!==null&&(w=i(L,w,R),O===null?N=L:O.sibling=L,O=L);return Ft&&Co(x,R),N}for(A=n(x,A);!L.done;R++,L=m.next())L=y(A,x,R,L.value,C),L!==null&&(t&&L.alternate!==null&&A.delete(L.key===null?R:L.key),w=i(L,w,R),O===null?N=L:O.sibling=L,O=L);return t&&A.forEach(function(H){return e(x,H)}),Ft&&Co(x,R),N}function E(x,w,m,C){if(typeof m=="object"&&m!==null&&m.type===ks&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case md:e:{for(var N=m.key,O=w;O!==null;){if(O.key===N){if(N=m.type,N===ks){if(O.tag===7){r(x,O.sibling),w=a(O,m.props.children),w.return=x,x=w;break e}}else if(O.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===bi&&kw(N)===O.type){r(x,O.sibling),w=a(O,m.props),w.ref=wu(x,O,m),w.return=x,x=w;break e}r(x,O);break}else e(x,O);O=O.sibling}m.type===ks?(w=Ro(m.props.children,x.mode,C,m.key),w.return=x,x=w):(C=yh(m.type,m.key,m.props,null,x.mode,C),C.ref=wu(x,w,m),C.return=x,x=C)}return l(x);case bs:e:{for(O=m.key;w!==null;){if(w.key===O)if(w.tag===4&&w.stateNode.containerInfo===m.containerInfo&&w.stateNode.implementation===m.implementation){r(x,w.sibling),w=a(w,m.children||[]),w.return=x,x=w;break e}else{r(x,w);break}else e(x,w);w=w.sibling}w=z0(m,x.mode,C),w.return=x,x=w}return l(x);case bi:return O=m._init,E(x,w,O(m._payload),C)}if(Ql(m))return b(x,w,m,C);if(Kl(m))return S(x,w,m,C);Zd(x,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,w!==null&&w.tag===6?(r(x,w.sibling),w=a(w,m),w.return=x,x=w):(r(x,w),w=A0(m,x.mode,C),w.return=x,x=w),l(x)):r(x,w)}return E}var Ds=ww(!0),xw=ww(!1),xu={},ya=Mi(xu),Su=Mi(xu),Cu=Mi(xu);function Eo(t){if(t===xu)throw Error(ue(174));return t}function r0(t,e){switch(Pt(Cu,e),Pt(Su,t),Pt(ya,xu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:tg(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=tg(e,t)}Ot(ya),Pt(ya,e)}function Bs(){Ot(ya),Ot(Su),Ot(Cu)}function Sw(t){Eo(Cu.current);var e=Eo(ya.current),r=tg(e,t.type);e!==r&&(Pt(Su,t),Pt(ya,r))}function n0(t){Su.current===t&&(Ot(ya),Ot(Su))}var Bt=Mi(0);function eh(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var a0=[];function i0(){for(var t=0;tr?r:4,t(!0);var n=o0.transition;o0.transition={};try{t(!1),e()}finally{bt=r,o0.transition=n}}function Uw(){return jn().memoizedState}function y9(t,e,r){var n=ji(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$w(t))Vw(e,r);else if(r=hw(t,e,r,n),r!==null){var a=Jr();ta(r,t,n,a),Gw(r,e,n)}}function b9(t,e,r){var n=ji(t),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($w(t))Vw(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var l=e.lastRenderedState,u=i(l,r);if(a.hasEagerState=!0,a.eagerState=u,Qn(u,l)){var c=e.interleaved;c===null?(a.next=a,Jg(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}r=hw(t,e,a,n),r!==null&&(a=Jr(),ta(r,t,n,a),Gw(r,e,n))}}function $w(t){var e=t.alternate;return t===Ut||e!==null&&e===Ut}function Vw(t,e){_u=rh=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Gw(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,fg(t,r)}}var ih={readContext:Fn,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useInsertionEffect:Br,useLayoutEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useMutableSource:Br,useSyncExternalStore:Br,useId:Br,unstable_isNewReconciler:!1},k9={readContext:Fn,useCallback:function(t,e){return ba().memoizedState=[t,e===void 0?null:e],t},useContext:Fn,useEffect:Tw,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,nh(4194308,4,jw.bind(null,e,t),r)},useLayoutEffect:function(t,e){return nh(4194308,4,t,e)},useInsertionEffect:function(t,e){return nh(4,2,t,e)},useMemo:function(t,e){var r=ba();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=ba();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=y9.bind(null,Ut,t),[n.memoizedState,t]},useRef:function(t){var e=ba();return t={current:t},e.memoizedState=t},useState:Ow,useDebugValue:f0,useDeferredValue:function(t){return ba().memoizedState=t},useTransition:function(){var t=Ow(!1),e=t[0];return t=v9.bind(null,t[1]),ba().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ut,a=ba();if(Ft){if(r===void 0)throw Error(ue(407));r=r()}else{if(r=e(),wr===null)throw Error(ue(349));Po&30||Ew(n,e,r)}a.memoizedState=r;var i={value:r,getSnapshot:e};return a.queue=i,Tw(Mw.bind(null,n,i,t),[t]),n.flags|=2048,Mu(9,Pw.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=ba(),e=wr.identifierPrefix;if(Ft){var r=qa,n=Wa;r=(n&~(1<<32-Yn(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Eu++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=l.createElement(r,{is:n.is}):(t=l.createElement(r),r==="select"&&(l=t,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):t=l.createElementNS(t,r),t[va]=e,t[bu]=n,s5(t,e,!1,!1),e.stateNode=t;e:{switch(l=ng(r,n),r){case"dialog":Nt("cancel",t),Nt("close",t),a=n;break;case"iframe":case"object":case"embed":Nt("load",t),a=n;break;case"video":case"audio":for(a=0;aGs&&(e.flags|=128,n=!0,Iu(i,!1),e.lanes=4194304)}else{if(!n)if(t=eh(l),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Iu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ft)return Ur(e),null}else 2*tr()-i.renderingStartTime>Gs&&r!==1073741824&&(e.flags|=128,n=!0,Iu(i,!1),e.lanes=4194304);i.isBackwards?(l.sibling=e.child,e.child=l):(r=i.last,r!==null?r.sibling=l:e.child=l,i.last=l)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=tr(),e.sibling=null,r=Bt.current,Pt(Bt,n?r&1|2:r&1),e):(Ur(e),null);case 22:case 23:return L0(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?bn&1073741824&&(Ur(e),e.subtreeFlags&6&&(e.flags|=8192)):Ur(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function M9(t,e){switch(Gg(e),e.tag){case 1:return ln(e.type)&&$d(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Bs(),Ot(sn),Ot(Dr),i0(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return n0(e),null;case 13:if(Ot(Bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));js()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ot(Bt),null;case 4:return Bs(),null;case 10:return Qg(e.type._context),null;case 22:case 23:return L0(),null;case 24:return null;default:return null}}var lh=!1,$r=!1,I9=typeof WeakSet=="function"?WeakSet:Set,ke=null;function $s(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qt(t,e,n)}else r.current=null}function c5(t,e,r){try{r()}catch(n){Qt(t,e,n)}}var d5=!1;function N9(t,e){if(Fg=Md,t=Uk(),Pg(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,u=-1,c=-1,d=0,f=0,g=t,v=null;t:for(;;){for(var y;g!==r||a!==0&&g.nodeType!==3||(u=l+a),g!==i||n!==0&&g.nodeType!==3||(c=l+n),g.nodeType===3&&(l+=g.nodeValue.length),(y=g.firstChild)!==null;)v=g,g=y;for(;;){if(g===t)break t;if(v===r&&++d===a&&(u=l),v===i&&++f===n&&(c=l),(y=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=y}r=u===-1||c===-1?null:{start:u,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(jg={focusedElem:t,selectionRange:r},Md=!1,ke=e;ke!==null;)if(e=ke,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ke=t;else for(;ke!==null;){e=ke;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,E=b.memoizedState,x=e.stateNode,w=x.getSnapshotBeforeUpdate(e.elementType===e.type?S:Jn(e.type,S),E);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(C){Qt(e,e.return,C)}if(t=e.sibling,t!==null){t.return=e.return,ke=t;break}ke=e.return}return b=d5,d5=!1,b}function Nu(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&c5(e,r,i)}a=a.next}while(a!==n)}}function uh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function S0(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function h5(t){var e=t.alternate;e!==null&&(t.alternate=null,h5(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[va],delete e[bu],delete e[Bg],delete e[h9],delete e[f9])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function f5(t){return t.tag===5||t.tag===3||t.tag===4}function p5(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||f5(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function C0(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Bd));else if(n!==4&&(t=t.child,t!==null))for(C0(t,e,r),t=t.sibling;t!==null;)C0(t,e,r),t=t.sibling}function _0(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(_0(t,e,r),t=t.sibling;t!==null;)_0(t,e,r),t=t.sibling}var Ir=null,Zn=!1;function Ti(t,e,r){for(r=r.child;r!==null;)m5(t,e,r),r=r.sibling}function m5(t,e,r){if(ga&&typeof ga.onCommitFiberUnmount=="function")try{ga.onCommitFiberUnmount(xd,r)}catch{}switch(r.tag){case 5:$r||$s(r,e);case 6:var n=Ir,a=Zn;Ir=null,Ti(t,e,r),Ir=n,Zn=a,Ir!==null&&(Zn?(t=Ir,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Ir.removeChild(r.stateNode));break;case 18:Ir!==null&&(Zn?(t=Ir,r=r.stateNode,t.nodeType===8?Dg(t.parentNode,r):t.nodeType===1&&Dg(t,r),lu(t)):Dg(Ir,r.stateNode));break;case 4:n=Ir,a=Zn,Ir=r.stateNode.containerInfo,Zn=!0,Ti(t,e,r),Ir=n,Zn=a;break;case 0:case 11:case 14:case 15:if(!$r&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&c5(r,e,l),a=a.next}while(a!==n)}Ti(t,e,r);break;case 1:if(!$r&&($s(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){Qt(r,e,u)}Ti(t,e,r);break;case 21:Ti(t,e,r);break;case 22:r.mode&1?($r=(n=$r)||r.memoizedState!==null,Ti(t,e,r),$r=n):Ti(t,e,r);break;default:Ti(t,e,r)}}function g5(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new I9),e.forEach(function(n){var a=D9.bind(null,t,n);r.has(n)||(r.add(n),n.then(a,a))})}}function ea(t,e){var r=e.deletions;if(r!==null)for(var n=0;na&&(a=l),n&=~i}if(n=a,n=tr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*R9(n/1960))-n,10t?16:t,Fi===null)var n=!1;else{if(t=Fi,Fi=null,ph=0,lt&6)throw Error(ue(331));var a=lt;for(lt|=4,ke=t.current;ke!==null;){var i=ke,l=i.child;if(ke.flags&16){var u=i.deletions;if(u!==null){for(var c=0;ctr()-M0?No(t,0):P0|=r),dn(t,e)}function I5(t,e){e===0&&(t.mode&1?(e=Cd,Cd<<=1,!(Cd&130023424)&&(Cd=4194304)):e=1);var r=Jr();t=Ha(t,e),t!==null&&(nu(t,e,r),dn(t,r))}function z9(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),I5(t,r)}function D9(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ue(314))}n!==null&&n.delete(e),I5(t,r)}var N5;N5=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||sn.current)un=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return un=!1,E9(t,e,r);un=!!(t.flags&131072)}else un=!1,Ft&&e.flags&1048576&&sw(e,qd,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;sh(t,e),t=e.pendingProps;var a=Ts(e,Dr.current);zs(e,r),a=l0(null,e,n,t,a,r);var i=u0();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ln(n)?(i=!0,Vd(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Zg(e),a.updater=Jd,e.stateNode=a,a._reactInternals=e,t0(e,n,t,r),e=v0(null,e,n,!0,i,r)):(e.tag=0,Ft&&i&&Vg(e),Xr(null,e,a,r),e=e.child),e;case 16:n=e.elementType;e:{switch(sh(t,e),t=e.pendingProps,a=n._init,n=a(n._payload),e.type=n,a=e.tag=U9(n),t=Jn(n,t),a){case 0:e=g0(null,e,n,t,r);break e;case 1:e=t5(null,e,n,t,r);break e;case 11:e=Qw(null,e,n,t,r);break e;case 14:e=Xw(null,e,n,Jn(n.type,t),r);break e}throw Error(ue(306,n,""))}return e;case 0:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Jn(n,a),g0(t,e,n,a,r);case 1:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Jn(n,a),t5(t,e,n,a,r);case 3:e:{if(r5(e),t===null)throw Error(ue(387));n=e.pendingProps,i=e.memoizedState,a=i.element,fw(t,e),Xd(e,n,null,r);var l=e.memoizedState;if(n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=Us(Error(ue(423)),e),e=n5(t,e,n,r,a);break e}else if(n!==a){a=Us(Error(ue(424)),e),e=n5(t,e,n,r,a);break e}else for(yn=Pi(e.stateNode.containerInfo.firstChild),vn=e,Ft=!0,Xn=null,r=xw(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(js(),n===a){e=Ya(t,e,r);break e}Xr(t,e,n,r)}e=e.child}return e;case 5:return Sw(e),t===null&&qg(e),n=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,l=a.children,Ag(n,a)?l=null:i!==null&&Ag(n,i)&&(e.flags|=32),e5(t,e),Xr(t,e,l,r),e.child;case 6:return t===null&&qg(e),null;case 13:return a5(t,e,r);case 4:return r0(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ds(e,null,n,r):Xr(t,e,n,r),e.child;case 11:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Jn(n,a),Qw(t,e,n,a,r);case 7:return Xr(t,e,e.pendingProps,r),e.child;case 8:return Xr(t,e,e.pendingProps.children,r),e.child;case 12:return Xr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,a=e.pendingProps,i=e.memoizedProps,l=a.value,Pt(Kd,n._currentValue),n._currentValue=l,i!==null)if(Qn(i.value,l)){if(i.children===a.children&&!sn.current){e=Ya(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var c=u.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Ka(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Xg(i.return,r,e),u.lanes|=r;break}c=c.next}}else if(i.tag===10)l=i.type===e.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(ue(341));l.lanes|=r,u=l.alternate,u!==null&&(u.lanes|=r),Xg(l,r,e),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===e){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Xr(t,e,a.children,r),e=e.child}return e;case 9:return a=e.type,n=e.pendingProps.children,zs(e,r),a=Fn(a),n=n(a),e.flags|=1,Xr(t,e,n,r),e.child;case 14:return n=e.type,a=Jn(n,e.pendingProps),a=Jn(n.type,a),Xw(t,e,n,a,r);case 15:return Jw(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Jn(n,a),sh(t,e),e.tag=1,ln(n)?(t=!0,Vd(e)):t=!1,zs(e,r),yw(e,n,a),t0(e,n,a,r),v0(null,e,n,!0,t,r);case 19:return o5(t,e,r);case 22:return Zw(t,e,r)}throw Error(ue(156,e.tag))};function O5(t,e){return lk(t,e)}function B9(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zn(t,e,r,n){return new B9(t,e,r,n)}function j0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function U9(t){if(typeof t=="function")return j0(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Vm)return 11;if(t===qm)return 14}return 2}function zi(t,e){var r=t.alternate;return r===null?(r=zn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function yh(t,e,r,n,a,i){var l=2;if(n=t,typeof t=="function")j0(t)&&(l=1);else if(typeof t=="string")l=5;else e:switch(t){case ks:return Ro(r.children,a,i,e);case Um:l=8,a|=8;break;case $m:return t=zn(12,r,e,a|2),t.elementType=$m,t.lanes=i,t;case Gm:return t=zn(13,r,e,a),t.elementType=Gm,t.lanes=i,t;case Wm:return t=zn(19,r,e,a),t.elementType=Wm,t.lanes=i,t;case z2:return bh(r,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j2:l=10;break e;case A2:l=9;break e;case Vm:l=11;break e;case qm:l=14;break e;case bi:l=16,n=null;break e}throw Error(ue(130,t==null?t:typeof t,""))}return e=zn(l,r,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Ro(t,e,r,n){return t=zn(7,t,n,e),t.lanes=r,t}function bh(t,e,r,n){return t=zn(22,t,n,e),t.elementType=z2,t.lanes=r,t.stateNode={isHidden:!1},t}function A0(t,e,r){return t=zn(6,t,null,e),t.lanes=r,t}function z0(t,e,r){return e=zn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function $9(t,e,r,n,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hg(0),this.expirationTimes=hg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hg(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D0(t,e,r,n,a,i,l,u,c){return t=new $9(t,e,r,u,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=zn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zg(i),t}function V9(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A5)}catch(t){console.error(t)}}A5(),I2.exports=pn;var Eh=I2.exports;const K9=yi(Eh);var z5,D5=Eh;z5=D5.createRoot,D5.hydrateRoot;function Y9(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function $5(t,e,r){t.loadNamespaces(e,U5(t,r))}function V5(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,U5(t,n))}function Q9(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],a=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const d=e.services.backendConnector.state[`${u}|${c}`];return d===-1||d===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(n,t)&&(!a||l(i,t)))}function X9(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(V0("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,t))return!1}}):Q9(t,e,r)}const J9=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z9={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},eC=t=>Z9[t],tC=t=>t.replace(J9,eC);let rC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:tC};function nC(){return rC}let aC;function iC(){return aC}const G5=I.createContext();class oC{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const sC=(t,e)=>{const r=I.useRef();return I.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function W5(t,e,r,n){return t.getFixedT(e,r,n)}function lC(t,e,r,n){return I.useCallback(W5(t,e,r,n),[t,e,r,n])}function Fu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:a}=I.useContext(G5)||{},i=r||n||iC();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new oC),!i){V0("You will need to pass in an i18next instance by using initReactI18next");const N=(A,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(A)?A[A.length-1]:A,O=[N,{},!1];return O.t=N,O.i18n={},O.ready=!1,O}i.options.react&&i.options.react.wait!==void 0&&V0("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...nC(),...i.options.react,...e},{useSuspense:u,keyPrefix:c}=l;let d=t||a||i.options&&i.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(d);const f=(i.isInitialized||i.initializedStoreOnce)&&d.every(N=>X9(N,i,l)),g=lC(i,e.lng||null,l.nsMode==="fallback"?d:d[0],c),v=()=>g,y=()=>W5(i,e.lng||null,l.nsMode==="fallback"?d:d[0],c),[b,S]=I.useState(v);let E=d.join();e.lng&&(E=`${e.lng}${E}`);const x=sC(E),w=I.useRef(!0);I.useEffect(()=>{const{bindI18n:N,bindI18nStore:O}=l;w.current=!0,!f&&!u&&(e.lng?V5(i,e.lng,d,()=>{w.current&&S(y)}):$5(i,d,()=>{w.current&&S(y)})),f&&x&&x!==E&&w.current&&S(y);function A(){w.current&&S(y)}return N&&i&&i.on(N,A),O&&i&&i.store.on(O,A),()=>{w.current=!1,N&&i&&N.split(" ").forEach(R=>i.off(R,A)),O&&i&&O.split(" ").forEach(R=>i.store.off(R,A))}},[i,E]);const m=I.useRef(!0);I.useEffect(()=>{w.current&&!m.current&&S(v),m.current=!1},[i,c]);const C=[b,i,f];if(C.t=b,C.i18n=i,C.ready=f,f||!f&&!u)return C;throw new Promise(N=>{e.lng?V5(i,e.lng,d,()=>N()):$5(i,d,()=>N())})}function uC(t){let{i18n:e,defaultNS:r,children:n}=t;const a=I.useMemo(()=>({i18n:e,defaultNS:r}),[e,r]);return I.createElement(G5.Provider,{value:a},n)}/** +* @remix-run/router v1.15.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function ju(){return ju=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function G0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function dC(){return Math.random().toString(36).substr(2,8)}function H5(t,e){return{usr:t.state,key:t.key,idx:e}}function W0(t,e,r,n){return r===void 0&&(r=null),ju({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?qs(e):e,{state:r,key:e&&e.key||n||dC()})}function Ph(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function qs(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function hC(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,l=a.history,u=Di.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(ju({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function g(){u=Di.Pop;let E=f(),x=E==null?null:E-d;d=E,c&&c({action:u,location:S.location,delta:x})}function v(E,x){u=Di.Push;let w=W0(S.location,E,x);r&&r(w,E),d=f()+1;let m=H5(w,d),C=S.createHref(w);try{l.pushState(m,"",C)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(C)}i&&c&&c({action:u,location:S.location,delta:1})}function y(E,x){u=Di.Replace;let w=W0(S.location,E,x);r&&r(w,E),d=f();let m=H5(w,d),C=S.createHref(w);l.replaceState(m,"",C),i&&c&&c({action:u,location:S.location,delta:0})}function b(E){let x=a.location.origin!=="null"?a.location.origin:a.location.href,w=typeof E=="string"?E:Ph(E);return $t(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let S={get action(){return u},get location(){return t(a,l)},listen(E){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(q5,g),c=E,()=>{a.removeEventListener(q5,g),c=null}},createHref(E){return e(a,E)},createURL:b,encodeLocation(E){let x=b(E);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:y,go(E){return l.go(E)}};return S}var K5;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(K5||(K5={}));function fC(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?qs(e):e,a=Hs(n.pathname||"/",r);if(a==null)return null;let i=Y5(t);pC(i);let l=null;for(let u=0;l==null&&u{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&($t(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=Bi([n,c.relativePath]),f=r.concat(c);i.children&&i.children.length>0&&($t(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),Y5(i.children,e,f,d)),!(i.path==null&&!i.index)&&e.push({path:d,score:wC(d,i.index),routesMeta:f})};return t.forEach((i,l)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))a(i,l);else for(let c of Q5(i.path))a(i,l,c)}),e}function Q5(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let l=Q5(n.join("/")),u=[];return u.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&u.push(...l),u.map(c=>t.startsWith("/")&&c===""?"/":c)}function pC(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:xC(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const mC=/^:[\w-]+$/,gC=3,vC=2,yC=1,bC=10,kC=-2,X5=t=>t==="*";function wC(t,e){let r=t.split("/"),n=r.length;return r.some(X5)&&(n+=kC),e&&(n+=vC),r.filter(a=>!X5(a)).reduce((a,i)=>a+(mC.test(i)?gC:i===""?yC:bC),n)}function xC(t,e){return t.length===e.length&&t.slice(0,-1).every((r,n)=>r===e[n])?t[t.length-1]-e[e.length-1]:0}function SC(t,e){let{routesMeta:r}=t,n={},a="/",i=[];for(let l=0;l{let{paramName:g,isOptional:v}=d;if(g==="*"){let b=u[f]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const y=u[f];return v&&!y?c[g]=void 0:c[g]=EC(y||"",g),c},{}),pathname:i,pathnameBase:l,pattern:t}}function CC(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),G0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function _C(t){try{return decodeURI(t)}catch(e){return G0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function EC(t,e){try{return decodeURIComponent(t)}catch(r){return G0(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function Hs(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function PC(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?qs(t):t;return{pathname:r?r.startsWith("/")?r:MC(r,e):e,search:OC(n),hash:RC(a)}}function MC(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function q0(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function IC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function J5(t,e){let r=IC(t);return e?r.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Z5(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=qs(t):(a=ju({},t),$t(!a.pathname||!a.pathname.includes("?"),q0("?","pathname","search",a)),$t(!a.pathname||!a.pathname.includes("#"),q0("#","pathname","hash",a)),$t(!a.search||!a.search.includes("#"),q0("#","search","hash",a)));let i=t===""||a.pathname==="",l=i?"/":a.pathname,u;if(l==null)u=r;else{let g=e.length-1;if(!n&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),g-=1;a.pathname=v.join("/")}u=g>=0?e[g]:"/"}let c=PC(a,u),d=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Bi=t=>t.join("/").replace(/\/\/+/g,"/"),NC=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),OC=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,RC=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function TC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const e3=["post","put","patch","delete"];new Set(e3);const LC=["get",...e3];new Set(LC);/** +* React Router v6.22.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Au(){return Au=Object.assign?Object.assign.bind():function(t){for(var e=1;eMh(t,e),[e,t])}function n3(t){I.useContext(Ui).static||I.useLayoutEffect(t)}function jC(){let{isDataRoute:t}=I.useContext($i);return t?XC():AC()}function AC(){Ks()||$t(!1);let t=I.useContext(Ih),{basename:e,future:r,navigator:n}=I.useContext(Ui),{matches:a}=I.useContext($i),{pathname:i}=Ys(),l=JSON.stringify(J5(a,r.v7_relativeSplatPath)),u=I.useRef(!1);return n3(()=>{u.current=!0}),I.useCallback(function(c,d){if(d===void 0&&(d={}),!u.current)return;if(typeof c=="number"){n.go(c);return}let f=Z5(c,JSON.parse(l),i,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Bi([e,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[e,n,l,i,t])}const zC=I.createContext(null);function DC(t){let e=I.useContext($i).outlet;return e&&I.createElement(zC.Provider,{value:t},e)}function Dn(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=I.useContext(Ui),{matches:a}=I.useContext($i),{pathname:i}=Ys(),l=JSON.stringify(J5(a,n.v7_relativeSplatPath));return I.useMemo(()=>Z5(t,JSON.parse(l),i,r==="path"),[t,l,i,r])}function BC(t,e){return UC(t,e)}function UC(t,e,r,n){Ks()||$t(!1);let{navigator:a}=I.useContext(Ui),{matches:i}=I.useContext($i),l=i[i.length-1],u=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=Ys(),f;if(e){var g;let E=typeof e=="string"?qs(e):e;c==="/"||(g=E.pathname)!=null&&g.startsWith(c)||$t(!1),f=E}else f=d;let v=f.pathname||"/",y=c==="/"?v:v.slice(c.length)||"/",b=fC(t,{pathname:y}),S=qC(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Bi([c,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:Bi([c,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,r,n);return e&&S?I.createElement(Nh.Provider,{value:{location:Au({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Di.Pop}},S):S}function $C(){let t=QC(),e=TC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),r?I.createElement("pre",{style:n},r):null,null)}const VC=I.createElement($C,null);class GC extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?I.createElement($i.Provider,{value:this.props.routeContext},I.createElement(r3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WC(t){let{routeContext:e,match:r,children:n}=t,a=I.useContext(Ih);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement($i.Provider,{value:e},n)}function qC(t,e,r,n){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let l=t,u=(a=r)==null?void 0:a.errors;if(u!=null){let f=l.findIndex(g=>g.route.id&&u?.[g.route.id]);f>=0||$t(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,g,v)=>{let y,b=!1,S=null,E=null;r&&(y=u&&g.route.id?u[g.route.id]:void 0,S=g.route.errorElement||VC,c&&(d<0&&v===0?(JC("route-fallback",!1),b=!0,E=null):d===v&&(b=!0,E=g.route.hydrateFallbackElement||null)));let x=e.concat(l.slice(0,v+1)),w=()=>{let m;return y?m=S:b?m=E:g.route.Component?m=I.createElement(g.route.Component,null):g.route.element?m=g.route.element:m=f,I.createElement(WC,{match:g,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:m})};return r&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?I.createElement(GC,{location:r.location,revalidation:r.revalidation,component:S,error:y,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):w()},null)}var a3=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(a3||{}),Oh=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Oh||{});function HC(t){let e=I.useContext(Ih);return e||$t(!1),e}function KC(t){let e=I.useContext(t3);return e||$t(!1),e}function YC(t){let e=I.useContext($i);return e||$t(!1),e}function i3(t){let e=YC(),r=e.matches[e.matches.length-1];return r.route.id||$t(!1),r.route.id}function QC(){var t;let e=I.useContext(r3),r=KC(Oh.UseRouteError),n=i3(Oh.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function XC(){let{router:t}=HC(a3.UseNavigateStable),e=i3(Oh.UseNavigateStable),r=I.useRef(!1);return n3(()=>{r.current=!0}),I.useCallback(function(n,a){a===void 0&&(a={}),r.current&&(typeof n=="number"?t.navigate(n):t.navigate(n,Au({fromRouteId:e},a)))},[t,e])}const o3={};function JC(t,e,r){!e&&!o3[t]&&(o3[t]=!0)}function ZC(t){return DC(t.context)}function Qs(t){$t(!1)}function e_(t){let{basename:e="/",children:r=null,location:n,navigationType:a=Di.Pop,navigator:i,static:l=!1,future:u}=t;Ks()&&$t(!1);let c=e.replace(/^\/*/,"/"),d=I.useMemo(()=>({basename:c,navigator:i,static:l,future:Au({v7_relativeSplatPath:!1},u)}),[c,u,i,l]);typeof n=="string"&&(n=qs(n));let{pathname:f="/",search:g="",hash:v="",state:y=null,key:b="default"}=n,S=I.useMemo(()=>{let E=Hs(f,c);return E==null?null:{location:{pathname:E,search:g,hash:v,state:y,key:b},navigationType:a}},[c,f,g,v,y,b,a]);return S==null?null:I.createElement(Ui.Provider,{value:d},I.createElement(Nh.Provider,{children:r,value:S}))}function t_(t){let{children:e,location:r}=t;return BC(H0(e),r)}new Promise(()=>{});function H0(t,e){e===void 0&&(e=[]);let r=[];return I.Children.forEach(t,(n,a)=>{if(!I.isValidElement(n))return;let i=[...e,a];if(n.type===I.Fragment){r.push.apply(r,H0(n.props.children,i));return}n.type!==Qs&&$t(!1),!n.props.index||!n.props.children||$t(!1);let l={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=H0(n.props.children,i)),r.push(l)}),r}/** +* React Router DOM v6.22.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Rh(){return Rh=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[a]=t[a]);return r}function r_(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function n_(t,e){return t.button===0&&(!e||e==="_self")&&!r_(t)}const a_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],i_=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],o_="6";try{window.__reactRouterVersion=o_}catch{}const s_=I.createContext({isTransitioning:!1}),l_="startTransition",l3=g2[l_];function u_(t){let{basename:e,children:r,future:n,window:a}=t,i=I.useRef();i.current==null&&(i.current=cC({window:a,v5Compat:!0}));let l=i.current,[u,c]=I.useState({action:l.action,location:l.location}),{v7_startTransition:d}=n||{},f=I.useCallback(g=>{d&&l3?l3(()=>c(g)):c(g)},[c,d]);return I.useLayoutEffect(()=>l.listen(f),[l,f]),I.createElement(e_,{basename:e,children:r,location:u.location,navigationType:u.action,navigator:l,future:n})}const c_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",d_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Th=I.forwardRef(function(t,e){let{onClick:r,relative:n,reloadDocument:a,replace:i,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=s3(t,a_),{basename:v}=I.useContext(Ui),y,b=!1;if(typeof c=="string"&&d_.test(c)&&(y=c,c_))try{let w=new URL(window.location.href),m=c.startsWith("//")?new URL(w.protocol+c):new URL(c),C=Hs(m.pathname,v);m.origin===w.origin&&C!=null?c=C+m.search+m.hash:b=!0}catch{}let S=FC(c,{relative:n}),E=f_(c,{replace:i,state:l,target:u,preventScrollReset:d,relative:n,unstable_viewTransition:f});function x(w){r&&r(w),w.defaultPrevented||E(w)}return I.createElement("a",Rh({},g,{href:y||S,onClick:b||a?r:x,ref:e,target:u}))}),Lh=I.forwardRef(function(t,e){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:i=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,f=s3(t,i_),g=Dn(u,{relative:f.relative}),v=Ys(),y=I.useContext(t3),{navigator:b,basename:S}=I.useContext(Ui),E=y!=null&&p_(g)&&c===!0,x=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,w=v.pathname,m=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(w=w.toLowerCase(),m=m?m.toLowerCase():null,x=x.toLowerCase()),m&&S&&(m=Hs(m,S)||m);const C=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let N=w===x||!i&&w.startsWith(x)&&w.charAt(C)==="/",O=m!=null&&(m===x||!i&&m.startsWith(x)&&m.charAt(x.length)==="/"),A={isActive:N,isPending:O,isTransitioning:E},R=N?r:void 0,j;typeof a=="function"?j=a(A):j=[a,N?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(A):l;return I.createElement(Th,Rh({},f,{"aria-current":R,className:j,ref:e,style:L,to:u,unstable_viewTransition:c}),typeof d=="function"?d(A):d)});var K0;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(K0||(K0={}));var u3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(u3||(u3={}));function h_(t){let e=I.useContext(Ih);return e||$t(!1),e}function f_(t,e){let{target:r,replace:n,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:u}=e===void 0?{}:e,c=jC(),d=Ys(),f=Dn(t,{relative:l});return I.useCallback(g=>{if(n_(g,r)){g.preventDefault();let v=n!==void 0?n:Ph(d)===Ph(f);c(t,{replace:v,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:u})}},[d,c,f,n,a,r,t,i,l,u])}function p_(t,e){e===void 0&&(e={});let r=I.useContext(s_);r==null&&$t(!1);let{basename:n}=h_(K0.useViewTransitionState),a=Dn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Hs(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=Hs(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Mh(a.pathname,l)!=null||Mh(a.pathname,i)!=null}function m_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const g_=I.forwardRef(m_),v_=g_;function y_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 15-6 6m0 0-6-6m6 6V9a6 6 0 0 1 12 0v3"}))}const b_=I.forwardRef(y_),k_=b_;function w_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 9 6-6m0 0 6 6m-6-6v12a6 6 0 0 1-12 0v-3"}))}const x_=I.forwardRef(w_),S_=x_;function C_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const __=I.forwardRef(C_),E_=__;function P_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const M_=I.forwardRef(P_),I_=M_;function N_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const O_=I.forwardRef(N_),R_=O_;function T_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const L_=I.forwardRef(T_),F_=L_;function j_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))}const A_=I.forwardRef(j_),z_=A_;function D_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const B_=I.forwardRef(D_),U_=B_;function $_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const V_=I.forwardRef($_),G_=V_;function W_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"}))}const q_=I.forwardRef(W_),H_=q_;function K_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const Y_=I.forwardRef(K_),Q_=Y_;function X_({title:t,titleId:e,...r},n){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":e},r),t?I.createElement("title",{id:e},t):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const J_=I.forwardRef(X_),Z_=J_;var c3={exports:{}};(function(t,e){(function(r,n){n()})(vi,function(){function r(d,f){return typeof f>"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}function n(d,f,g){var v=new XMLHttpRequest;v.open("GET",d),v.responseType="blob",v.onload=function(){c(v.response,f,g)},v.onerror=function(){console.error("could not download file")},v.send()}function a(d){var f=new XMLHttpRequest;f.open("HEAD",d,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function i(d){try{d.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(f)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof vi=="object"&&vi.global===vi?vi:void 0,u=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(d,f,g){var v=l.URL||l.webkitURL,y=document.createElement("a");f=f||d.name||"download",y.download=f,y.rel="noopener",typeof d=="string"?(y.href=d,y.origin===location.origin?i(y):a(y.href)?n(d,f,g):i(y,y.target="_blank")):(y.href=v.createObjectURL(d),setTimeout(function(){v.revokeObjectURL(y.href)},4e4),setTimeout(function(){i(y)},0))}:"msSaveOrOpenBlob"in navigator?function(d,f,g){if(f=f||d.name||"download",typeof d!="string")navigator.msSaveOrOpenBlob(r(d,g),f);else if(a(d))n(d,f,g);else{var v=document.createElement("a");v.href=d,v.target="_blank",setTimeout(function(){i(v)})}}:function(d,f,g,v){if(v=v||open("","_blank"),v&&(v.document.title=v.document.body.innerText="downloading..."),typeof d=="string")return n(d,f,g);var y=d.type==="application/octet-stream",b=/constructor/i.test(l.HTMLElement)||l.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||y&&b||u)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var m=E.result;m=S?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=m:location=m,v=null},E.readAsDataURL(d)}else{var x=l.URL||l.webkitURL,w=x.createObjectURL(d);v?v.location=w:location.href=w,v=null,setTimeout(function(){x.revokeObjectURL(w)},4e4)}});l.saveAs=c.saveAs=c,t.exports=c})})(c3);var eE=c3.exports;const zu=z.createContext({theme:"material",dark:!0,touchRipple:!0});function tE(t,e){return typeof window>"u"?I.useEffect(t,e):I.useLayoutEffect(t,e)}const d3=function(t,e){e===void 0&&(e=!0);const[r,n]=I.useState(t);return tE(()=>{if(e){if(t==="ios"||t==="material")r!==t&&n(t);else if(r==="parent"&&typeof window<"u"&&typeof document<"u"){const a=document.documentElement;a&&(a.classList.contains("ios")?n("ios"):(a.classList.contains("md")||a.classList.contains("material"))&&n("material"))}}},[t]),e?r:t},rE=t=>{const{theme:e,dark:r,touchRipple:n=!0,autoThemeDetection:a=!0,children:i}=t,l=d3(e,a);return z.createElement(zu.Provider,{value:{theme:l,dark:r,touchRipple:n}},i)};function P(){const t=[];for(var e=arguments.length,r=new Array(e),n=0;n{typeof i=="object"&&i.constructor===Object?Object.keys(i).forEach(l=>{i[l]&&t.push(l)}):Array.isArray(i)?t.push(...i):typeof i=="function"?t.push(i()):i&&i.value?t.push(i.value):i&&t.push(i)});const a=[];return t.forEach(i=>{a.indexOf(i)<0&&a.push(i)}),a.filter(i=>!!i).join(" ")}const Vt=function(t,e){return e===void 0&&(e=""),!e||typeof e!="string"?t:["static","relative","absolute","fixed","sticky"].filter(r=>e.indexOf(r)>=0).length>0?"":t},nE=(t,e,r)=>{const{safeAreas:n}=t;return P(e==="ios"&&"k-ios",e==="material"&&"k-material","k-app w-full h-full min-h-screen",n&&"safe-areas",Vt("relative",r),r)};function Y0(){return Y0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,theme:a="material",dark:i=!0,touchRipple:l=!0,safeAreas:u=!0,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=d3(a),b=nE({...t,safeAreas:u},y,n);return z.createElement(rE,{theme:y,dark:i,touchRipple:l,autoThemeDetection:!1},z.createElement(g,Y0({ref:f,className:b},v),c))});h3.displayName="App";const Q0=(t,e,r)=>{if(typeof t=="string")return t;const n=[t.common,t[e]];return r&&t[r]&&(typeof t[r]=="string"?n.push(t[r]):n.push(t[r].common,t[r][e])),n},aE=(t,e,r)=>{const n={},a=["common","ios","material"];return Object.keys(t).forEach(i=>{const l=i==="base"?r:"";if(!(typeof t[i]!="string"&&Object.keys(t[i]).filter(c=>!a.includes(c)).length>0)){n[i]=P(Q0(t[i],e),l);return}n[i]={};const u=Q0(t[i],e);n[i].default=P(u,l),Object.keys(t[i]).filter(c=>!a.includes(c)).forEach(c=>{n[i][c]=P(u,Q0(t[i],e,c),l)})}),n},Ie=function(t){let{ios:e,material:r}=t===void 0?{}:t,n=I.useContext(zu).theme||"ios";return e&&(n="ios"),r&&(n="material"),(a,i)=>aE(a,n,i)},iE=(t,e)=>({base:{common:P("transition-transform z-40 left-1/2 bottom-0 transform -translate-x-1/2 max-w-md w-full overflow-hidden",Vt("fixed",e)),ios:"pt-2 px-2 pb-2-safe duration-300",material:"pb-safe last-child-hairline-b-none rounded-t-2xl duration-400 ease-material-in",opened:"",closed:"translate-y-full"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}});function X0(){return X0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,opened:l,backdrop:u=!0,onBackdropClick:c,children:d,...f}=t,g=I.useRef(null);I.useImperativeHandle(e,()=>({el:g.current}));const v=l?"opened":"closed",y=r,b={...f},S=Ie({ios:a,material:i})(iE(t,n),n);return z.createElement(z.Fragment,null,u&&z.createElement("div",{className:S.backdrop[v],onClick:c}),z.createElement(y,X0({ref:g,className:S.base[v]},b),d))});oE.displayName="Actions";const sE=t=>{const{dividers:e}=t;return{base:{common:"relative",ios:"mt-2 first:mt-0 last-child-hairline-b-none",material:P(e&&"hairline-b")}}};function J0(){return J0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,dividers:l=!0,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=r,g={...c},v=Ie({ios:a,material:i})(sE({dividers:l,...t}),n);return z.createElement(f,J0({ref:d,className:v.base},g),u)});lE.displayName="ActionsGroup";const kt=function(t){let{ios:e,material:r}=t===void 0?{}:t,n=I.useContext(zu).theme||"ios";return e&&(n="ios"),r&&(n="material"),n};class uE{constructor(e,r,n){const a=this;if(!e)return;a.el=e;const{left:i,top:l,width:u,height:c}=e.getBoundingClientRect(),d={x:r-i,y:n-l};let f=Math.max((c**2+u**2)**.5,48);const g=e.classList.contains("k-touch-ripple-inset");g&&(f=Math.max(Math.min(u,c),48));const v=typeof window<"u"&&window.getComputedStyle(e,null).getPropertyValue("overflow")==="hidden";if(!g&&v){const b=((d.x-u/2)**2+(d.y-c/2)**2)**.5,S=(f/2+b)/(f/2);a.rippleTransform=`translate3d(0px, 0px, 0) scale(${S})`}else a.rippleTransform=`translate3d(${-d.x+u/2}px, ${-d.y+c/2}px, 0) scale(1)`;a.rippleWaveEl=document.createElement("span"),a.rippleWaveEl.classList.add("k-touch-ripple-wave"),a.rippleWaveEl.setAttribute("hidden",""),a.rippleWaveEl.style=` + width: ${f}px; + height: ${f}px; + margin-top:-${f/2}px; + margin-left:-${f/2}px; + left:${d.x}px; + top:${d.y}px; --k-ripple-transform: ${a.rippleTransform}`,e.insertAdjacentElement("afterbegin",a.rippleWaveEl);const y=()=>{a.rippleWaveEl.removeEventListener("animationend",y),a.rippleWaveEl&&(a.rippleWaveEl.classList.contains("k-touch-ripple-wave-out")||(a.rippleWaveEl.classList.add("k-touch-ripple-wave-in"),a.shouldBeRemoved&&a.out()))};return a.rippleWaveEl.addEventListener("animationend",y),a}destroy(){let e=this;e.rippleWaveEl&&e.el.removeChild(e.rippleWaveEl),Object.keys(e).forEach(r=>{e[r]=null,delete e[r]}),e=null}out(){const e=this,{rippleWaveEl:r}=this;clearTimeout(e.removeTimeout),r.classList.add("k-touch-ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300);const n=()=>{e.rippleWaveEl.removeEventListener("animationend",n),clearTimeout(e.removeTimeout),e.destroy()};e.rippleWaveEl.addEventListener("animationend",n)}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&e.out())}}const ra=(t,e,r)=>{const n=I.useContext(zu);r||(r=t);const a=I.useRef(null),i=()=>{a.current&&a.current.remove(),a.current=null},l=y=>{a.current=new uE(t.current,y.pageX,y.pageY)},u=()=>{i()},c=()=>{i()},d=()=>{if(!n.touchRipple)return;const y=r.current;y.addEventListener("pointerdown",l),y.addEventListener("pointermove",u),y.addEventListener("pointerup",c),y.addEventListener("pointercancel",c),y.addEventListener("contextmenu",c)},f=()=>{const y=r.current;y.removeEventListener("pointerdown",l),y.removeEventListener("pointermove",u),y.removeEventListener("pointerup",c),y.removeEventListener("pointercancel",c),y.removeEventListener("contextmenu",c)},g=()=>{!r||!r.current||!e||d()},v=()=>{!r||!r.current||!e||f()};I.useEffect(()=>(g(),()=>v()))},He=()=>{const t=I.useContext(zu);return e=>t.dark?e:""},cE=(t,e,r)=>{const{fontSizeIos:n,fontSizeMaterial:a,bold:i,dividers:l}=t;return{base:{common:P("flex items-center w-full px-4 relative z-10 overflow-hidden",l&&"hairline-b"),ios:P("h-14",e.textIos,e.bgIos,e.activeBgIos,n,"first:rounded-t-xl last:rounded-b-xl justify-center",i&&"font-semibold"),material:P("h-12",e.textMaterial,e.bgMaterial,e.activeBgMaterial,a,"justify-start",r("dark:touch-ripple-white"),i&&"font-medium")}}},dE=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),activeBgIos:P("active:bg-neutral-200",e("dark:active:bg-neutral-700")),activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t}};function Z0(){return Z0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:l,bold:u,boldIos:c=!1,boldMaterial:d=!1,fontSizeIos:f="text-xl",fontSizeMaterial:g="text-base",href:v,touchRipple:y=!0,dividers:b=void 0,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));let w=r;typeof t.component>"u"&&(v||v==="")&&(w="a");const m={href:v,...E},C=kt({ios:i,material:l}),N=Ie({ios:i,material:l}),O=He();ra(x,C==="material"&&y);const A=dE(a,O),R=N(cE({fontSizeIos:f,fontSizeMaterial:g,bold:typeof u>"u"?C==="ios"?c:d:u,dividers:typeof b>"u"?C==="ios":b,...t},A,O),n);return z.createElement(w,Z0({ref:x,role:"button",tabIndex:"0",className:R.base},m),S)});hE.displayName="ActionsButton";const fE=(t,e)=>{const{fontSizeIos:r,fontSizeMaterial:n,dividers:a}=t;return{base:{common:P(`flex items-center w-full px-4 relative z-10 overflow-hidden ${e.activeBg}`,a&&"hairline-b"),ios:P("h-14",e.bgIos,e.textIos,r,"first:rounded-t-xl last:rounded-b-xl justify-center"),material:P("h-12",e.bgMaterial,e.textMaterial,n,"font-medium","justify-start")}}},pE=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),textIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function e1(){return e1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,fontSizeIos:u="text-sm",fontSizeMaterial:c="text-sm",dividers:d=void 0,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...g},S=kt({ios:i,material:l}),E=Ie({ios:i,material:l}),x=He(),w=pE(a,x),m=E(fE({fontSizeIos:u,fontSizeMaterial:c,dividers:typeof d>"u"?S==="ios":d,...t},w),n);return z.createElement(y,e1({ref:v,className:m.base},b),f)});mE.displayName="ActionsLabel";const gE=(t,e)=>({base:{common:`${e.text} ${e.bg} inline-flex items-center justify-center rounded-full leading-none`,ios:"font-semibold",material:"font-medium",sm:"text-2xs min-w-4 min-h-4 px-0.5",md:"text-xs min-w-5 min-h-5 px-1.5 py-0.5"}}),vE=function(t){return t===void 0&&(t={}),{bg:"bg-primary",text:"text-white",...t}};function t1(){return t1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,small:i,ios:l,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=Ie({ios:l,material:u}),b=vE(a),S=i?"sm":"md",E=y(gE(t,b),n);return z.createElement(g,t1({ref:f,className:E.base[S]},v),c)});f3.displayName="Badge";const yE=(t,e,r)=>{const{inset:n,nested:a,margin:i,padding:l,strong:u,outline:c}=t;return{base:{common:P("text-sm z-10",Vt("relative",r),!n&&!a&&c&&"hairline-t hairline-b",n&&c&&"border",n&&"px-4",!n&&"pl-4-safe pr-4-safe",!a&&i,(u||c)&&l),ios:P(e.textIos,u&&e.strongBgIos,n&&c&&e.outlineIos),material:P(e.textMaterial,u&&e.strongBgMaterial,n&&c&&e.outlineMaterial)},inset:{common:"ml-4-safe mr-4-safe overflow-hidden",ios:"rounded-lg",material:"rounded-2xl"}}},bE=function(t,e){return t===void 0&&(t={}),{outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-15")),outlineMaterial:P("border-md-light-outline",e("border-md-dark-outline")),strongBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),strongBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t}};function r1(){return r1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,margin:i="my-8",padding:l="py-4",inset:u,insetIos:c,insetMaterial:d,strong:f,strongIos:g,strongMaterial:v,outline:y,outlineIos:b,outlineMaterial:S,nested:E,ios:x,material:w,children:m,...C}=t,N=I.useRef(null);I.useImperativeHandle(e,()=>({el:N.current}));const O=r,A={...C},R=kt({ios:x,material:w}),j=Ie({ios:x,material:w}),L=He(),U=bE(a,L),H=typeof f>"u"?R==="ios"?g:v:f,q=typeof y>"u"?R==="ios"?b:S:y,ne=typeof u>"u"?R==="ios"?c:d:u,ie=j(yE({...t,margin:i,padding:l,inset:ne,strong:H,outline:q},U,n)),se=P(ie.base,ne&&ie.inset,n);return z.createElement(O,r1({ref:N,className:se},A),m)});Xa.displayName="Block";const kE=(t,e)=>{const{inset:r}=t;return{base:{common:P("mb-8 flex items-center -mt-6 text-sm",r?"pl-8-safe pr-8-safe":"pl-4-safe pr-4-safe"),ios:e.textIos,material:e.textMaterial}}},wE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-75",e("dark:text-white dark:text-opacity-75")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function n1(){return n1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,inset:u,insetIos:c,insetMaterial:d,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=kt(),b=typeof u>"u"?y==="ios"?c:d:u,S=r,E={...g},x=Ie({ios:i,material:l}),w=He(),m=wE(a,w),C=x(kE({...t,inset:b},m),n);return z.createElement(S,n1({ref:v,className:C.base},E),f)});xE.displayName="BlockFooter";const SE=(t,e)=>{const{inset:r}=t;return{base:{common:P("mt-8 flex items-center -mb-6 text-sm",r?"pl-8-safe pr-8-safe":"pl-4-safe pr-4-safe"),ios:e.textIos,material:e.textMaterial}}},CE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black",e("dark:text-white")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function a1(){return a1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,inset:u,insetIos:c,insetMaterial:d,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...g},S=kt(),E=typeof u>"u"?S==="ios"?c:d:u,x=Ie({ios:i,material:l}),w=He(),m=CE(a,w),C=x(SE({...t,inset:E},m),n);return z.createElement(y,a1({ref:v,className:C.base},b),f)});_E.displayName="BlockHeader";const EE=(t,e)=>{const{withBlock:r,medium:n,large:a}=t;return{base:{common:`pl-4-safe pr-4-safe mt-8 flex justify-between items-center ${r?"-mb-6":"mb-2"}`,ios:P(`font-semibold ${e.textIos}`,a&&"text-[1.5rem]",n&&"text-[1.125rem]",!n&&!a&&"text-[1rem]"),material:P(`font-medium ${e.textMaterial}`,a&&"text-[1.375rem]",n&&"text-[1rem]",!n&&!a&&"text-[0.875rem]")}}},PE=function(t,e){return t===void 0&&(t={}),{textIos:"",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function i1(){return i1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,withBlock:i=!0,medium:l,large:u,ios:c,material:d,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=r,b={...g},S=Ie({ios:c,material:d}),E=He(),x=PE(a,E),w=S(EE({...t,withBlock:i},x),n);return z.createElement(y,i1({ref:v,className:w.base},b),f)});ME.displayName="BlockTitle";const IE=t=>{const{fontSizeIos:e,fontSizeMaterial:r}=t;return{base:{common:"flex items-center justify-start overflow-auto whitespace-nowrap py-1 px-0 space-x-3 no-scrollbar rtl:space-x-reverse",ios:e,material:r}}};function o1(){return o1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,fontSizeIos:a="text-[17px]",fontSizeMaterial:i="text-[14px]",ios:l,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=Ie({ios:l,material:u})(IE({...t,fontSizeIos:a,fontSizeMaterial:i}),n);return z.createElement(g,o1({ref:f,className:y.base},v),c)});NE.displayName="Breadcrumbs";const OE=(t,e)=>{const{active:r}=t;return{base:{common:P("flex items-center overflow-hidden"),ios:P(e.textIos,e.bgIos,r?e.textActiveIos:e.textIos,r&&"font-semibold"),material:P("font-medium px-2 py-1 rounded-lg",e.bgMaterial,r?e.textActiveMaterial:e.textMaterial)}}},RE=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),textMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),bgIos:"",bgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),textActiveIos:P("text-black",e("dark:text-white")),textActiveMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),...t}};function s1(){return s1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,colors:l,active:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=Ie({ios:a,material:i}),b=He(),S=RE(l,b),E=y(OE({...t},S),n);return z.createElement(g,s1({ref:f,className:E.base,role:"menuitem",tabIndex:"0"},v),c)});TE.displayName="BreadcrumbsItem";const LE=()=>({base:{common:"w-3 opacity-35 flex justify-center",ios:"",material:""},icon:{common:"rtl:rotate-180",ios:"h-3",material:"h-2.5"}});function l1(){return l1=Object.assign?Object.assign.bind():function(t){for(var e=1;ez.createElement("svg",l1({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},t),z.createElement("path",{d:"M11.518406,10.5648622 C11.4831857,10.6163453 11.4426714,10.6653692 11.3968592,10.7111814 L2.5584348,19.5496058 C1.9753444,20.1326962 1.03186648,20.1345946 0.44199608,19.5447242 C-0.14379032,18.9589377 -0.14922592,18.0146258 0.43711448,17.4282854 L7.87507783,9.9903221 L0.4431923,2.5584366 C-0.1398981,1.9753462 -0.1417965,1.0318683 0.448074,0.4419979 C1.0338604,-0.1437886 1.9781723,-0.1492241 2.56451268,0.4371163 L11.4029371,9.2755407 C11.7556117,9.6282153 11.7969345,10.1725307 11.518406,10.5648622 Z"}));function u1(){return u1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,ios:a,material:i,children:l,...u}=t,c=I.useRef(null);I.useImperativeHandle(e,()=>({el:c.current}));const d=r,f={...u},g=Ie({ios:a,material:i})(LE({...t}),n);return z.createElement(d,u1({ref:c,className:g.base},f),z.createElement(p3,{className:g.icon}),l)});FE.displayName="BreadcrumbsSeparator";const jE=(t,e)=>({base:{common:`flex items-center cursor-pointer space-x-0.75 rtl:space-x-reverse ${e.bg}`,ios:P("rounded active:opacity-30 px-1.5 h-[1em] duration-300 active:duration-0",e.bgIos),material:P("py-3 px-2 rounded-lg",e.bgMaterial)},dot:{common:`w-1 h-1 rounded-full ${e.dotBg}`,ios:e.dotBgIos,material:e.dotBgMaterial}}),AE=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-black bg-opacity-15",e("dark:bg-white dark:bg-opacity-15")),bgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),dotBgIos:P("bg-black",e("dark:bg-white")),dotBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function c1(){return c1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=He(),g=AE(a,f),v=r,y={...c},b=Ie({ios:i,material:l})(jE({...t},g),n);return z.createElement(v,c1({ref:d,role:"button",tabIndex:"0",className:b.base},y),z.createElement("span",{className:b.dot}),z.createElement("span",{className:b.dot}),z.createElement("span",{className:b.dot}),u)});zE.displayName="BreadcrumbsCollapsed";const DE=(t,e,r,n)=>{const{inline:a,segmented:i,segmentedStrong:l,segmentedActive:u,disabled:c}=t;return{base:{common:P("flex text-center justify-center items-center appearance-none py-1 transition-colors focus:outline-none cursor-pointer select-none overflow-hidden z-10",a?"inline-flex":"w-full flex",Vt("relative",r),c&&"pointer-events-none",l&&u&&"k-segmented-strong-button-active"),ios:"uppercase duration-100 font-semibold px-2",material:"duration-300 font-medium px-4",square:{ios:i&&!l?"first:rounded-s last:rounded-e":"rounded",material:i&&!l?"first:rounded-lg-s last:rounded-lg-e":"rounded-lg"},rounded:i&&!l?"":"rounded-full"},style:{fill:{common:P(c&&P(e.disabledBg,e.disabledText)),ios:P(c?P(e.disabledBg,e.disabledText):`${e.fillTextIos} ${e.fillBgIos} ${e.fillActiveBgIos}`),material:P(c?P(e.disabledBg,e.disabledText):P(e.fillTextMaterial,e.fillBgMaterial,e.fillActiveBgMaterial,e.fillTouchRipple))},outline:{common:P(c?P(e.disabledText,e.disabledBorder):P("active:bg-opacity-15",e.touchRipple)),ios:P(!i&&"border-2",!c&&!i&&e.outlineBorderIos,!c&&P(e.textIos,e.activeBgIos)),material:P(!i&&"border",!c&&!i&&e.outlineBorderMaterial,!c&&P(e.textMaterial,e.activeBgMaterial))},clear:{common:P(c?e.disabledText:`active:bg-opacity-15 ${e.touchRipple}`),ios:!c&&P(e.textIos,e.activeBgIos),material:!c&&P(e.textMaterial,e.activeBgMaterial)},tonal:{common:c?P(e.disabledBg,e.disabledText):P(e.touchRipple),ios:!c&&P(e.tonalTextIos,e.tonalBgIos,e.activeBgIos,"bg-opacity-15 active:bg-opacity-25"),material:!c&&P(e.tonalTextMaterial,e.tonalBgMaterial,e.activeBgMaterial)},segmentedStrong:P("active:bg-black active:bg-opacity-10",n("dark:active:bg-white dark:active:bg-opacity-5 dark:touch-ripple-white")),segmentedStrongActive:"duration-0"},size:{small:{ios:"text-xs h-7",material:"text-sm h-8"},medium:{common:"text-sm",ios:"h-7",material:"h-10"},large:{ios:"h-11",material:"h-12"}},raised:"shadow active:shadow-lg"}},BE=function(t,e){return t===void 0&&(t={}),{activeBgIos:"active:bg-primary",activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:P("text-white"),fillTextMaterial:P("text-md-light-on-primary",e("dark:text-md-dark-on-primary")),fillActiveBgIos:"active:bg-ios-primary-shade",fillActiveBgMaterial:"",fillBgIos:"bg-primary",fillBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),fillTouchRipple:P("touch-ripple-white","dark:touch-ripple-primary"),outlineBorderIos:"border-primary",outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),tonalBgIos:"bg-primary",tonalBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:P("text-black text-opacity-30",e("dark:text-white dark:text-opacity-30")),disabledBg:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-10")),disabledBorder:P("border-black border-opacity-10",e("dark:border-white dark:border-opacity-10")),...t}};function d1(){return d1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:l,disabled:u,href:c,outline:d,outlineIos:f,outlineMaterial:g,clear:v,clearIos:y,clearMaterial:b,tonal:S,tonalIos:E,tonalMaterial:x,rounded:w,roundedIos:m,roundedMaterial:C,small:N,smallIos:O,smallMaterial:A,large:R,largeIos:j,largeMaterial:L,raised:U,raisedIos:H,raisedMaterial:q,inline:ne,segmented:ie,segmentedStrong:se,segmentedActive:K,touchRipple:D=!0,children:Z,...Q}=t,oe=I.useRef(null);I.useImperativeHandle(e,()=>({el:oe.current}));let he=r;typeof t.component>"u"&&(c||c==="")&&(he="a");const Ce={href:c,...Q},me=kt({ios:i,material:l}),Me=Ie({ios:i,material:l}),Ne=He();ra(oe,me==="material"&&D);const $=(Ye=>{const it={};return Object.keys(Ye).forEach(ze=>{it[ze]=typeof Ye[ze]>"u"?me==="ios"?t[`${ze}Ios`]:t[`${ze}Material`]:Ye[ze]}),it})({outline:d,clear:v,tonal:S,rounded:w,small:N,large:R,raised:U}),re=$.large?"large":$.small?"small":"medium";let le=$.outline?"outline":$.clear||ie&&!K?"clear":$.tonal?"tonal":"fill";se&&(le="segmentedStrong"),se&&K&&(le="segmentedStrongActive");const Se=BE(a,Ne),Oe=Me(DE({...t,...$},Se,n,Ne)),Fe=P(Oe.base[$.rounded?"rounded":"square"],Oe.style[le],Oe.size[re],$.raised&&Oe.raised,n);return z.createElement(he,d1({ref:oe,className:Fe,disabled:u,role:"button",tabIndex:"0"},Ce),Z)});Vr.displayName="Button";const UE=(t,e)=>{const{margin:r,headerDivider:n,footerDivider:a,contentWrapPadding:i}=t;return{base:{common:P(r,"overflow-hidden"),ios:P("rounded-lg",e.bgIos,e.textIos),material:P("rounded-2xl",e.bgMaterial,e.textMaterial),plain:"",raised:"shadow",outline:{common:P("border"),ios:e.outlineIos,material:e.outlineMaterial}},header:{common:P(n&&"border-b","p-4"),ios:P(n&&e.outlineIos,t.headerFontSizeIos),material:P(n&&e.outlineMaterial,t.headerFontSizeMaterial)},content:P(i,"text-sm"),footer:{common:P(n&&"border-t","text-sm p-4"),ios:P(e.footerTextIos,a&&e.outlineIos),material:P(e.footerTextMaterial,a&&e.outlineMaterial)}}},$E=function(t,e){return t===void 0&&(t={}),{textIos:P(""),textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),bgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),bgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),footerTextIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),footerTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-20")),outlineMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function h1(){return h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,margin:a="m-4",colors:i,header:l,footer:u,ios:c,material:d,headerFontSizeIos:f="text-[17px]",headerFontSizeMaterial:g="text-[22px]",contentWrap:v=!0,contentWrapPadding:y="p-4",raised:b,raisedIos:S,raisedMaterial:E,outline:x,outlineIos:w,outlineMaterial:m,headerDivider:C=!1,footerDivider:N=!1,children:O,...A}=t,R=I.useRef(null);I.useImperativeHandle(e,()=>({el:R.current}));const j=r,L={...A},U=kt(),H=Ie({ios:c,material:d}),q=He(),ne=$E(i,q),ie=typeof x>"u"?U==="ios"?w:m:x,se=typeof b>"u"?U==="ios"?S:E:b,K=ie?"outline":se?"raised":"plain",D=H(UE({...t,margin:a,contentWrapPadding:y,headerDivider:C,footerDivider:N,headerFontSizeIos:f,headerFontSizeMaterial:g,outline:ie,raised:se},ne),n);return z.createElement(j,h1({ref:R,className:D.base[K]},L),l&&z.createElement("div",{className:D.header},l),v?z.createElement("div",{className:D.content},O):O,u&&z.createElement("div",{className:D.footer},u))});m3.displayName="Card";const VE=(t,e,r,n)=>({base:P("cursor-pointer inline-flex align-middle",Vt("relative",r),n("dark:touch-ripple-white")),iconWrap:{common:P("flex items-center justify-center text-white",n("dark:text-black")),ios:"w-5.5 h-5.5 rounded-full border",material:"w-4.5 h-4.5 rounded-sm border-2",notChecked:{ios:e.borderIos,material:e.borderMaterial},checked:{ios:`${e.bgCheckedIos} ${e.borderCheckedIos}`,material:`${e.bgCheckedMaterial} ${e.borderCheckedMaterial}`}},icon:{notChecked:"opacity-0",checked:"opacity-100"},indeterminateIcon:{common:P("bg-white w-3/4",n("dark:bg-black")),ios:"h-0.5 rounded-full",material:"h-0.5"},input:"hidden"}),GE=function(t,e){return t===void 0&&(t={}),{borderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),bgCheckedIos:"bg-primary",bgCheckedMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderCheckedIos:"border-primary",borderCheckedMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),...t}};function Fh(){return Fh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{ios:e,material:r,fill:n,...a}=t;return kt({ios:e,material:r})==="ios"?z.createElement("svg",Fh({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},a),z.createElement("path",{fill:n||"currentColor",fillRule:"evenodd",d:"M10.6461792,0.119820016 C11.0022676,0.346673312 11.1070333,0.819240884 10.88018,1.17532923 L5.59004012,9.47918548 C5.44456028,9.70754308 5.19802823,9.83254199 4.94596825,9.83309245 C4.59813173,9.83364386 4.39457446,9.67360825 4.28105047,9.53831563 L1.17887189,5.84128316 C0.907480501,5.5178515 0.949667479,5.03565214 1.27309914,4.76426075 C1.59653081,4.49286936 2.07873017,4.53505633 2.35012156,4.858488 L4.8346263,7.81909046 L9.59067001,0.353820775 C9.81752331,-0.00226757161 10.2900909,-0.10703328 10.6461792,0.119820016 Z",transform:"translate(4 5.483)"})):z.createElement("svg",Fh({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 18 14",fill:"currentcolor"},a),z.createElement("polygon",{fill:n,points:"6 11.17 1.83 7 .41 8.41 6 14 18 2 16.59 .59"}))};function f1(){return f1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:l,indeterminate:u,name:c,value:d,disabled:f,readOnly:g,onChange:v,ios:y,material:b,touchRipple:S=!0,children:E,...x}=t,w=I.useRef(null),m=I.useRef(null);I.useImperativeHandle(e,()=>({el:m.current,inputEl:w.current}));const C=r,N={...x},O=kt({ios:y,material:b}),A=Ie({ios:y,material:b}),R=He();ra(m,O==="material"&&S);const j=GE(a,R),L=l||i&&!v||u?"checked":"notChecked",U=A(VE(t,j,n,R),n);return I.useEffect(()=>{w.current&&(w.current.indeterminate=!!u)},[u]),z.createElement(C,f1({ref:m,className:U.base},N),z.createElement("input",{ref:w,type:"checkbox",name:c,value:d,disabled:f,readOnly:g,checked:l,defaultChecked:i,onChange:v,className:U.input}),z.createElement("i",{className:U.iconWrap[L]},u?z.createElement("span",{className:U.indeterminateIcon}):z.createElement(g3,{ios:y,material:b,className:U.icon[L]})),E)});WE.displayName="Checkbox";const qE=(t,e)=>({base:{common:"text-sm inline-flex items-center justify-center align-middle rounded-full px-3",ios:"rounded-full h-7",material:"rounded-lg h-8 font-medium",fill:{ios:P(e.fillBg||e.fillBgIos,e.fillText||e.fillTextIos),material:P(e.fillBg||e.fillBgMaterial,e.fillText||e.fillTextMaterial)},outline:{common:"border",ios:P(e.outlineText||e.outlineTextIos,e.outlineBorder||e.outlineBorderIos),material:P(e.outlineText||e.outlineTextMaterial,e.outlineBorder||e.outlineBorderMaterial)}},media:{common:"-my-1 me-1 select-none",ios:"-ms-3",material:"-ms-2"},deleteButton:"-me-2 -my-1 ms-1 h-full flex items-center justify-center w-6 cursor-pointer opacity-50 active:opacity-100 select-none"}),HE=function(t,e){return t===void 0&&(t={}),{fillTextIos:"text-current",fillTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),fillBgIos:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-10")),fillBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),outlineTextIos:P("text-current"),outlineTextMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),outlineBorderIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-20")),outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function jh(){return jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?z.createElement("svg",jh({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},r),z.createElement("path",{d:"M14,0 C21.7319865,0 28,6.2680135 28,14 C28,21.7319865 21.7319865,28 14,28 C6.2680135,28 0,21.7319865 0,14 C0,6.2680135 6.2680135,0 14,0 Z M18.9393398,6.93933983 L14,11.8786797 L9.06066017,6.93933983 L6.93933983,9.06066017 L11.8786797,14 L6.93933983,18.9393398 L9.06066017,21.0606602 L14,16.1213203 L18.9393398,21.0606602 L21.0606602,18.9393398 L16.1213203,14 L21.0606602,9.06066017 L18.9393398,6.93933983 Z"})):z.createElement("svg",jh({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 10.59L15.59 7L17 8.41L13.41 12L17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59Z",fill:"currentcolor"}))};function p1(){return p1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,media:i,deleteButton:l,onDelete:u,ios:c,material:d,outline:f,children:g,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=r,S={...v},E=Ie({ios:c,material:d}),x=kt({ios:c,material:d}),w=He(),m=f?"outline":"fill",C=HE(a,w),N=E(qE(t,C),n);return z.createElement(b,p1({ref:y,className:N.base[m]},S),i&&z.createElement("div",{className:N.media},i),g,l&&z.createElement("div",{className:N.deleteButton,role:"button",tabIndex:"0",onClick:u},z.createElement(Du,{theme:x,className:"h-4 w-4"})))});KE.displayName="Chip";const YE=(t,e,r,n)=>{let{hasButtons:a}=n;const{titleFontSizeMaterial:i,titleFontSizeIos:l,translucent:u,sizeIos:c,sizeMaterial:d}=t;return{base:{common:P("left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-40 max-h-full overflow-hidden duration-400",Vt("fixed",r)),ios:P("rounded-xl max-w-full",c,e.bgIos,u&&"translucent"),material:P("rounded-[1.75rem] p-6 max-w-[90%]",d,e.bgMaterial),opened:"",closed:"scale-[0.85] opacity-0 pointer-events-none"},contentWrap:{common:"flex flex-col items-center justify-center",material:"space-y-3",ios:P("p-4 space-y-1 relative",a&&"hairline-b")},title:{common:P("w-full"),ios:P(e.titleIos,l,"font-semibold text-center"),material:P(e.titleMaterial,i)},content:{common:P("text-sm w-full"),ios:P(e.contentTextIos,"text-center"),material:P(e.contentTextMaterial)},buttons:{common:"flex items-center",ios:P("justify-center last-child-hairline-r-none"),material:P("justify-end pt-6 space-x-2 rtl:space-x-reverse")},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},QE=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-neutral-800")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),titleIos:"",titleMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),contentTextIos:"",contentTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function m1(){return m1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,opened:i,backdrop:l=!0,onBackdropClick:u,translucent:c=!0,sizeIos:d="w-[16.875rem]",sizeMaterial:f="w-[19.5rem]",titleFontSizeIos:g="text-[18px]",titleFontSizeMaterial:v="text-[24px]",title:y,content:b,buttons:S,ios:E,material:x,children:w,...m}=t,C=I.useRef(null);I.useImperativeHandle(e,()=>({el:C.current}));const N=i?"opened":"closed",O=r,A={...m},R=Ie({ios:E,material:x}),j=He(),L=QE(a,j),U=R(YE({...t,titleFontSizeIos:g,titleFontSizeMaterial:v,translucent:c,sizeIos:d,sizeMaterial:f},L,n,{hasButtons:!!S}),n);return z.createElement(z.Fragment,null,l&&z.createElement("div",{className:U.backdrop[N],onClick:u}),z.createElement(O,m1({ref:C,className:U.base[N]},A),z.createElement("div",{className:U.contentWrap},y&&z.createElement("div",{className:U.title},y),(b||w)&&z.createElement("div",{className:U.content},b,w)),S&&z.createElement("div",{className:U.buttons},S)))});XE.displayName="Dialog";const JE=(t,e)=>{const{strong:r,disabled:n}=t;return{base:{ios:P("text-center text-[17px] flex items-center justify-center h-11 w-full hairline-r rtl:hairline-l relative first:rounded-bl-xl last:rounded-br-xl rtl:first:rounded-br-xl rtl:first:rounded-bl-none rtl:last:rounded-bl-xl rtl:last:rounded-br-none",n?e.disabledTextIos:e.textIos,r&&"font-semibold",!n&&e.activeBgIos)}}},ZE=function(t,e){return t===void 0&&(t={}),{activeBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),textIos:"text-primary",disabledTextIos:P("text-black text-opacity-30",e("dark:text-white dark:text-opacity-30")),...t}};function Ah(){return Ah=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="button",className:n,colors:a,ios:i,material:l,disabled:u,strong:c,strongIos:d,strongMaterial:f,children:g,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b={...v},S=kt({ios:i,material:l}),E=Ie({ios:i,material:l}),x=He(),w=ZE(a,x),m=typeof c>"u"?S==="ios"?d:f:c,C=E(JE({...t,strong:m},w),n),N=r;return S==="ios"?z.createElement(N,Ah({className:C.base,disabled:u,role:"button",tabIndex:"0"},b),g):z.createElement(Vr,Ah({component:r,inline:!0,rounded:!0,disabled:u,clear:!m,className:n},b),g)});eP.displayName="DialogButton";const tP=(t,e)=>({base:{common:"flex items-center justify-center space-x-2 rtl:!space-x-reverse cursor-pointer overflow-hidden select-none",ios:`h-12 duration-100 rounded-full shadow-lg ${e.bgIos} ${e.activeBgIos} ${e.textIos}`,material:`duration-300 rounded-2xl shadow ${e.bgMaterial} ${e.activeBgMaterial} ${e.textMaterial} ${e.touchRipple}`,iconOnly:{ios:"w-12",material:"w-14 h-14"},withText:{common:"px-4",material:"h-14"}},text:{common:"text-sm",ios:"font-semibold uppercase",material:"font-medium"},icon:{common:"h-1em w-1em",ios:"text-icon-ios",material:"text-icon-material"}}),rP=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-primary",bgMaterial:P("bg-md-light-primary-container",e("dark:bg-md-dark-primary-container")),activeBgIos:"active:bg-ios-primary-shade",activeBgMaterial:"",textIos:"text-white",textMaterial:P("text-md-light-on-primary-container",e("dark:text-md-dark-on-primary-container")),touchRipple:P("touch-ripple-primary",e("dark:touch-ripple-white")),...t}};function g1(){return g1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,colors:a,href:i,text:l,textPosition:u="after",icon:c,ios:d,material:f,touchRipple:g=!0,children:v,...y}=t,b=I.useRef(null);I.useImperativeHandle(e,()=>({el:b.current}));const S=r,E={...y},x=kt({ios:d,material:f}),w=Ie({ios:d,material:f}),m=He();ra(b,x==="material"&&g);const C=rP(a,m),N=w(tP(t,C),n);return z.createElement(S,g1({className:l?N.base.withText:N.base.iconOnly,href:i,ref:b,role:"button",tabIndex:"0"},E),l&&u==="before"&&z.createElement("span",{className:N.text},l),c&&z.createElement("span",{className:N.icon},c),l&&u==="after"&&z.createElement("span",{className:N.text},l),v)});nP.displayName="Fab";const aP=(t,e)=>({base:`${Vt("relative",e)} inline-block not-italic`,badge:"absolute -end-1.5 -top-0.5"});function v1(){return v1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="i",className:n,ios:a,material:i,badge:l,badgeColors:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=Ie(),b=kt(),S=y(aP(t,n),n);return z.createElement(g,v1({ref:f,className:S.base},v),b==="ios"?a:i,typeof l<"u"&&l!==null&&z.createElement(f3,{small:!0,className:S.badge,colors:u},l),c)});kn.displayName="Icon";const iP=(t,e,r)=>{let{textColor:n,needsTouchRipple:a}=e;const{iconOnly:i,tabbar:l}=t;return{base:{common:P(!l&&n,"inline-flex space-x-1 rtl:!space-x-reverse justify-center items-center cursor-pointer select-none",a&&`touch-ripple-primary ${Vt("relative",r)} z-10`),notTabbar:{ios:"active:opacity-30 duration-300 active:duration-0",material:a?"":"active:opacity-55"}},tabbar:{common:P(Vt("relative",r),"w-full h-full duration-300"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:P("h-full max-h-12",i&&"k-touch-ripple-inset"),material:"px-3 text-sm font-medium"},navbar:{common:P("h-full max-h-12",i&&"k-touch-ripple-inset"),material:"px-3"}}},oP=function(t,e){return t===void 0&&(t={}),{textIos:"text-primary",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),navbarTextIos:"text-primary",navbarTextMaterial:"",...t}};function y1(){return y1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,colors:a,navbar:i,toolbar:l,iconOnly:u,linkProps:c={},tabbar:d,tabbarActive:f,touchRipple:g=void 0,ios:v,material:y,onClick:b,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const w=r,m={...c,...E},C=kt({ios:v,material:y}),N=Ie({ios:v,material:y}),O=He(),A=C==="material"&&(g||(l||d||i)&&typeof g>"u");ra(x,A);const R=oP(a,O),j=t.navbar?C==="material"?R.navbarTextMaterial:R.navbarTextIos:C==="material"?R.textMaterial:R.textIos,L=d&&!f?R.tabbarInactive:j,U=f?"active":"inactive",H=N(iP(t,{textColor:L,needsTouchRipple:A},n)),q=P(H.base[d?"default":"notTabbar"],l&&H.toolbar,i&&H.navbar,d&&H.tabbar[U],n);return z.createElement(w,y1({ref:x,className:q},m,{role:"link",tabIndex:"0",onClick:b}),S)});b1.displayName="Link";const sP=(t,e,r)=>{const{nested:n,margin:a,inset:i,strong:l,outline:u}=t;return{base:{common:P(!n&&a,!i&&!n&&u&&"hairline-t hairline-b",i&&u&&"border",Vt("relative",r),"z-10"),ios:P(l&&e.strongBgIos,i&&u&&e.outlineIos),material:P(l&&e.strongBgMaterial,i&&u&&e.outlineMaterial)},ul:{common:P(i&&"no-safe-areas","last-child-hairline-b-none")},inset:{common:"ml-4-safe mr-4-safe overflow-hidden",ios:"rounded-lg",material:"rounded-2xl"},menuList:{common:"py-1"}}},lP=function(t,e){return t===void 0&&(t={}),{outlineIos:P("border-black border-opacity-20",e("dark:border-white dark:border-opacity-15")),outlineMaterial:P("border-md-light-outline",e("border-md-dark-outline")),strongBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),strongBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),...t}},v3=z.createContext(!1);function k1(){return k1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,margin:i="my-8",nested:l,menuList:u,dividers:c,dividersIos:d=!0,dividersMaterial:f=!1,inset:g,insetIos:v,insetMaterial:y,strong:b,strongIos:S,strongMaterial:E,outline:x,outlineIos:w,outlineMaterial:m,ios:C,material:N,children:O,...A}=t,R=I.useRef(null);I.useImperativeHandle(e,()=>({el:R.current}));const j=r,L={...A},U=kt(),H=Ie({ios:C,material:N}),q=He(),ne=typeof c>"u"?U==="ios"?d:f:c,ie=typeof b>"u"?U==="ios"?S:E:b,se=typeof x>"u"?U==="ios"?w:m:x,K=typeof g>"u"?U==="ios"?v:y:g,D=lP(a,q),Z=H(sP({...t,margin:i,inset:K,strong:ie,outline:se},D,n)),Q=P(Z.base,K&&Z.inset,u&&Z.menuList,n);return z.createElement(v3.Provider,{value:ne},z.createElement(j,k1({ref:R,className:Q},L),z.createElement("ul",{className:Z.ul},O)))});w1.displayName="List";function x1(){return x1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,a=I.useRef(null);I.useImperativeHandle(e,()=>({el:a.current}));const i={...n};return z.createElement("li",{ref:a},z.createElement(w1,x1({nested:!0},i),r))});uP.displayName="ListGroup";const cP=(t,e,r)=>{const{dividers:n}=t;return{base:"",button:{common:P(Vt("relative",r),n&&"hairline-b active:hairline-transparent",`flex items-center justify-center px-4 space-x-1 w-full duration-300 active:duration-0 focus:outline-none ${e.touchRipple} overflow-hidden select-none`),ios:P("h-11",e.textIos,e.activeBgIos,e.activeBgIos),material:P("h-12",e.textMaterial,e.activeBgMaterial)}}},dP=function(t,e){return t===void 0&&(t={}),{textIos:"text-primary",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),activeBgIos:"active:bg-primary active:bg-opacity-15",activeBgMaterial:"",touchRipple:"touch-ripple-primary",...t}},y3=()=>I.useContext(v3);function zh(){return zh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",className:n,colors:a,href:i,target:l,type:u,value:c,linkComponent:d="a",linkProps:f={},ios:g,material:v,touchRipple:y=!0,children:b,...S}=t,E=I.useRef(null),x=I.useRef(null),w=y3();I.useImperativeHandle(e,()=>({el:E.current}));const m=r,C={...S},N=kt({ios:g,material:v}),O=Ie({ios:g,material:v});ra(x,N==="material"&&y);const A=He(),R=dP(a,A),j=O(cP({...t,dividers:w},R,n),n),L=!!i||i==="",U={href:!L||i===!0||i===!1?void 0:i||"",target:l,type:u,value:c,...f},H=L?d:"button";return z.createElement(m,zh({ref:E,className:j.base},C),z.createElement(H,zh({ref:x,className:j.button},U),b))});hP.displayName="ListButton";const fP=(t,e,r)=>{let{className:n,isMediaItem:a,theme:i,textColor:l,needsTouchRipple:u,isMenuListItemActive:c,autoStrongTitle:d}=r;const{menuListItem:f,dividers:g,mediaClassName:v="",mediaClass:y="",innerClassName:b="",innerClass:S="",contentClassName:E="",contentClass:x="",titleWrapClassName:w="",titleWrapClass:m="",titleFontSizeIos:C,titleFontSizeMaterial:N,strongTitle:O,contacts:A}=t;return{base:{common:f?`${l} py-1`:"",material:A&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:P(`flex items-center ${E||x}`),ios:P(!f&&P(e.primaryTextIos,"ps-4-safe"),f&&"rounded-lg ml-2-safe mr-2-safe ps-2"),material:P(!f&&P(e.primaryTextMaterial,a?"ml-2-safe mr-2-safe rounded-2xl ps-2":"ps-4-safe",A&&"ml-10"),f&&"rounded-full min-h-[3.5rem] ml-4-safe mr-4-safe ps-4"),link:P("duration-300 active:duration-0 cursor-pointer select-none",g&&i==="ios"&&"active:hairline-transparent",u&&P("relative overflow-hidden z-10",e.touchRipple),P(c?i==="ios"?e.menuListItemActiveBgIos:e.menuListItemActiveBgMaterial:f?i==="ios"?e.menuListItemBgIos:e.menuListItemBgMaterial:i==="ios"?e.activeBgIos:e.activeBgMaterial))},media:{common:`shrink-0 flex ${v||y}`,ios:"py-2 me-4",material:P("py-3",f?"me-3":"me-4")},inner:{common:P("w-full relative",!f&&g&&"hairline-b",b||S),ios:"py-2.5 pe-4-safe",material:P("py-3",a&&!f?"pe-2":"pe-4-safe")},titleWrap:{common:P(`flex justify-between items-center ${w||m}`),ios:P(!f&&C),material:P(!f&&N)},title:{common:"shrink",menuListItem:P("text-sm",O===!0||d?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:P("shrink-0 ms-auto ps-1 flex items-center space-x-1"),ios:e.secondaryTextIos,material:P(e.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:P("text-sm line-clamp-2"),ios:e.secondaryTextIos,material:e.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:e.secondaryTextIos,material:e.secondaryTextMaterial},footer:{common:P("text-xs mt-0.5"),ios:e.secondaryTextIos,material:e.secondaryTextMaterial},groupTitle:{common:P("pl-4-safe pr-4-safe py-1 flex items-center z-20",Vt("relative",n)),ios:`h-8${g?" hairline-t":""} -mt-px ${C} ${e.secondaryTextIos} ${e.groupTitleBgIos} ${A&&P("font-semibold top-11-safe sticky",e.groupTitleContactsTextIos,e.groupTitleContactsBgIos)}`,material:`h-12 ${N} ${e.secondaryTextMaterial} ${e.groupTitleBgMaterial} ${A&&P("pointer-events-none overflow-visible h-12 box-border text-xl font-medium flex max-w-full items-center px-4 top-16-safe sticky",e.groupTitleContactsTextMaterial,e.groupTitleContactsBgMaterial)}`}}},pP=function(t,e){return t===void 0&&(t={}),{primaryTextIos:P("text-black",e("dark:text-white")),primaryTextMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),secondaryTextIos:P("text-black text-opacity-55",e("dark:text-white dark:text-opacity-55")),secondaryTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),activeBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),activeBgMaterial:"",groupTitleBgIos:P("bg-ios-light-surface-variant",e("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),menuListItemTextIos:P("text-black",e("dark:text-white")),menuListItemTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:P("active:bg-black active:bg-opacity-10",e("dark:active:bg-white dark:active:bg-opacity-10")),menuListItemBgMaterial:P("bg-md-light-surface-1",e("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:P("text-primary",e("dark:text-white")),menuListItemActiveTextMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:P("bg-primary bg-opacity-15",e("dark:bg-primary")),menuListItemActiveBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),touchRipple:P("touch-ripple-black",e("dark:touch-ripple-white")),groupTitleContactsTextIos:P("text-opacity-90",e("dark:text-opacity-90")),groupTitleContactsTextMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),groupTitleContactsBgIos:P(e("dark:bg-[#323234]")),groupTitleContactsBgMaterial:P("bg-transparent",e("dark:bg-transparent")),...t}};function Dh(){return Dh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",colors:n,className:a,mediaClassName:i="",innerClassName:l="",innerChildren:u,contentClassName:c="",contentChildren:d,titleWrapClassName:f="",titleFontSizeIos:g="text-[17px]",titleFontSizeMaterial:v="text-[16px]",title:y,subtitle:b,text:S,after:E,media:x,header:w,footer:m,menuListItem:C,menuListItemActive:N,groupTitle:O,strongTitle:A="auto",label:R,chevron:j=void 0,chevronIos:L=!0,chevronMaterial:U=!0,chevronIcon:H,href:q,target:ne,link:ie,linkComponent:se="a",linkProps:K={},dividers:D,contacts:Z,ios:Q,material:oe,touchRipple:he=!0,children:Ce,...me}=t,Me=I.useRef(null),Ne=I.useRef(null);I.useImperativeHandle(e,()=>({el:Ne.current}));const $=r,re={...me},le=typeof D>"u"?y3():D,Se=kt({ios:Q,material:oe}),Oe=Ie({ios:Q,material:oe}),Fe=He(),Ye=typeof j>"u"?Se==="ios"?L:U:j,it=pP(n,Fe),ze=C&&N,Wt=it[`${ze?"menuListItemActiveText":C?"menuListItemText":"text"}${Se==="ios"?"Ios":"Material"}`],dt=!!q||q===""||C||ie,ht=!!R,De=Se==="material"&&(ht||dt)&&he;ra(Me,De);const Cn=q===!0||q===!1||typeof q>"u"?void 0:q||"",Zt=dt?se:ht?"label":"div",Or=dt?{href:Cn,target:ne,...K}:{},mr=y&&(b||S),qt=A==="auto"&&mr,_t=Oe(fP({...t,titleFontSizeIos:g,titleFontSizeMaterial:v,dividers:le,strongTitle:A,mediaClassName:i,innerClassName:l,contentClassName:c,titleWrapClassName:f},it,{isMediaItem:mr,theme:Se,textColor:Wt,needsTouchRipple:De,isMenuListItemActive:ze,darkClasses:Fe,autoStrongTitle:qt,className:a}),a),Ea=dt||ht?_t.itemContent.link:_t.itemContent.default,Pa=C?_t.title.menuListItem:A===!0||qt?_t.title.strong:_t.title.default;return O?z.createElement($,{className:P(_t.groupTitle,a)},y,Ce):z.createElement($,Dh({ref:Ne,className:_t.base},re),z.createElement(Zt,Dh({ref:Me,className:Ea},Or),x&&z.createElement("div",{className:_t.media},x),z.createElement("div",{className:_t.inner},w&&z.createElement("div",{className:_t.header},w),(y||E)&&z.createElement("div",{className:_t.titleWrap},y&&z.createElement("div",{className:Pa},y),E&&z.createElement("div",{className:_t.after},E),dt&&Ye&&!C&&(H||z.createElement(p3,{className:_t.chevron}))),b&&z.createElement("div",{className:_t.subtitle},b),S&&z.createElement("div",{className:_t.text},S),m&&z.createElement("div",{className:_t.footer},m),u),d),Ce)});S1.displayName="ListItem";function C1(){return C1=Object.assign?Object.assign.bind():function(t){for(var e=1;ez.createElement("svg",C1({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},t),z.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),gP=(t,e,r)=>{let{isFloatingTransformed:n,isFocused:a,darkClasses:i,getLabelColor:l,hasLabel:u}=r;const{error:c,type:d,outline:f,inputClassName:g="",inputClass:v=""}=t;return{base:{common:"",ios:P(f&&"my-4"),material:P("py-2")},itemContent:{common:"relative",ios:P(f&&"ml-4 mr-4 rounded-lg",!f&&e.bgIos),material:P("min-h-[56px] ml-4 mr-4",f?P("rounded"):P(e.bgMaterial,"rounded-t relative "))},inner:{common:"",material:P(f?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:P("duration-200 text-xs",l(),f&&"flex"),ios:P(f&&"-mt-4"),material:P(f&&"-mt-4"),stacked:"",floating:{common:P("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",n&&"scale-133"),ios:n?f?"translate-y-6":"translate-y-4":"",material:n?f?"translate-y-8":"translate-y-3":""}},labelText:{common:P(f&&"relative p-1 block -m-1"),ios:P(f&&P("-top-1",e.outlineLabelBgIos)),material:P(f&&P("-top-2",e.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:P((!u||f)&&"-mt-2.5","-mb-2.5"),stacked:"",floating:""},media:{material:""},titleWrap:{material:`duration-200 ${l()}`},input:{common:`block text-base appearance-none w-full focus:outline-none bg-transparent ${g||v}`,ios:"h-10",material:"h-6",notFloating:{common:P("placeholder-black placeholder-opacity-30",i("dark:placeholder-white dark:placeholder-opacity-30")),material:P(d==="textarea"&&"py-1"),ios:P(d==="textarea"&&"py-2")},floating:n?"placeholder-transparent":P("placeholder-black placeholder-opacity-30",i("dark:placeholder-white dark:placeholder-opacity-30"))},errorInfo:{common:"text-xs relative z-10",ios:"mt-1",material:""},error:e.errorText,info:"opacity-50",clearButton:{common:"absolute end-0 top-1/2 transform -translate-y-1/2 cursor-pointer",ios:P("w-3.5 h-3.5 opacity-45 active:opacity-30",e.labelTextIos),material:P("w-6 h-6 active:opacity-55",e.labelTextMaterial)},dropdown:"absolute end-0 top-1/2 transform -translate-y-1/2 pointer-events-none opacity-50",border:{common:"pointer-events-none absolute start-0 bottom-0 duration-200 w-full",ios:f&&P(c?e.errorBorder:a?e.outlineBorderFocusIos:e.outlineBorderIos,"h-full border rounded-lg -z-10"),material:P(c?e.errorBorder:a?e.outlineBorderFocusMaterial:e.outlineBorderMaterial,f&&P("h-full border rounded -z-10",a&&"border-2"),!f&&P("border-b h-px origin-bottom",a&&"scale-y-[2]"))}}},vP=function(t,e){return t===void 0&&(t={}),{bgIos:"",bgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),outlineBorderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:P("border-md-light-on-surface",e("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),outlineLabelBgIos:P("bg-ios-light-surface-1",e("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...t}};function _1(){return _1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="li",className:n,colors:a,label:i,floatingLabel:l,outline:u,outlineIos:c,outlineMaterial:d,media:f,input:g,info:v,error:y,clearButton:b,dropdown:S,inputId:E,inputStyle:x,inputClassName:w="",name:m,value:C,defaultValue:N,type:O="text",inputMode:A,readOnly:R,required:j,disabled:L,placeholder:U,size:H,accept:q,autoComplete:ne,autoCorrect:ie,autoCapitalize:se,spellCheck:K,autoFocus:D,autoSave:Z,max:Q,min:oe,step:he,maxLength:Ce,minLength:me,multiple:Me,pattern:Ne,tabIndex:$,onInput:re,onChange:le,onFocus:Se,onBlur:Oe,onClear:Fe,ios:Ye,material:it,children:ze,...Wt}=t,dt=I.useRef(null),ht=I.useRef(null);I.useImperativeHandle(e,()=>({el:ht.current,inputEl:dt.current}));const[De,Cn]=I.useState(!1),Zt=kt({ios:Ye,material:it}),Or=Ie({ios:Ye,material:it}),mr=He(),qt=vP(a,mr),_t=i&&l?"floating":"stacked",Ea=_t==="floating"?"floating":"notFloating",Pa=()=>{if(dt.current)return dt.current.value},ao=i&&l&&!(()=>{const Zr=Pa();return typeof C>"u"?Zr||Zr===0:C||C===0})()&&!De,_n=()=>y?qt.errorText:Zt==="material"?De?qt.labelTextFocusMaterial:qt.labelTextMaterial:Zt==="ios"?De?qt.labelTextFocusIos:qt.labelTextIos:"",Ma=Zr=>{Cn(!0),Se&&Se(Zr)},Yo=Zr=>{Cn(!1),Oe&&Oe(Zr)},oi=typeof u>"u"?Zt==="ios"?c:d:u,Ht=Or(gP({...t,outline:oi},qt,{isFloatingTransformed:ao,isFocused:De,darkClasses:mr,getLabelColor:_n,inputClassName:w,hasLabel:!!i})),Ia={...Wt},Qo=()=>{if(g)return g;const Zr=O==="select"||O==="textarea"?O:"input",bl=Zr==="input";return z.createElement(Zr,{id:E,ref:dt,className:Ht.input[Ea],style:x,name:m,type:bl?O:void 0,placeholder:U,inputMode:A,size:H,accept:q,autoComplete:ne,autoCorrect:ie,autoCapitalize:se,spellCheck:K,autoFocus:D,autoSave:Z,disabled:L,max:Q,maxLength:Ce,min:oe,minLength:me,step:he,multiple:Me,readOnly:R,required:j,pattern:Ne,tabIndex:$,value:C,defaultValue:N,onInput:re,onChange:le,onFocus:Ma,onBlur:Yo},O==="select"?ze:null)},sa=z.createElement(z.Fragment,null,y&&y!==!0&&z.createElement("div",{className:P(Ht.errorInfo,Ht.error)},y),v&&!y&&z.createElement("div",{className:P(Ht.errorInfo,Ht.info)},v)),yl=z.createElement(z.Fragment,null,i&&z.createElement("div",{className:Ht.label[_t]},z.createElement("div",{className:Ht.labelText},i)),z.createElement("div",{className:Ht.inputWrap[_t]},Qo(),b&&z.createElement(Du,{theme:Zt,onClick:Fe,className:Ht.clearButton}),S&&z.createElement(mP,{className:Ht.dropdown})),sa);return z.createElement(S1,_1({ref:ht,component:r,media:f,className:Ht.base,title:null,mediaClassName:Ht.media,innerClassName:Ht.inner[_t],contentClassName:Ht.itemContent,titleWrapClassName:Ht.titleWrap,innerChildren:yl,contentChildren:(oi||Zt==="material")&&z.createElement("span",{className:Ht.border}),dividers:Zt==="material"||oi?!1:void 0},Ia),O!=="select"?ze:null)});yP.displayName="ListInput";function E1(){return E1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,a=I.useRef(null);I.useImperativeHandle(e,()=>({el:a.current}));const i={...n};return z.createElement(w1,E1({ref:a,menuList:!0},i),r)});bP.displayName="MenuList";function P1(){return P1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{active:r,href:n,children:a,...i}=t,l=I.useRef(null);I.useImperativeHandle(e,()=>({el:l.current}));const u={...i};return z.createElement(S1,P1({ref:l,menuListItem:!0,menuListItemActive:r,href:n||!1},u),a)});kP.displayName="MenuListItem";const wP=(t,e)=>{const{type:r}=t;return{message:{common:"max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2"},messageSent:{common:P("self-end",e.messageSent)},messageReceived:{common:e.messageReceived},messageName:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageHeader:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageFooter:{common:"text-xs",ios:P("mb-0.5 ms-4",e.messageNameIos),material:P("ms-4 mb-0.5",e.messageNameMd)},messageAvatar:{common:P("rounded-full relative bg-cover self-end shrink-0 me-1.5 w-8 h-8")},messageContent:{common:"flex flex-col"},messageBubble:{...r==="sent"&&{ios:P("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",e.bubbleSentIos),material:P("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",e.bubbleSentMd)},...r==="received"&&{ios:P("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",e.bubbleReceivedIos),material:P("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",e.bubbleReceivedMd)}},messageTextHeader:{common:"w-full text-left leading-tight text-sm opacity-80"},messageTextFooter:{common:"w-full text-left leading-tight text-sm opacity-80"},messageText:{common:"w-full text-left leading-tight"}}},xP=function(t,e){return t===void 0&&(t={}),{messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:P("text-black text-opacity-45",e("dark:text-white dark:text-opacity-45")),messageNameMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),bubbleSentIos:P("bg-primary"),bubbleSentMd:P("bg-md-light-primary",e("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:P("bg-[#e5e5ea]",e("dark:bg-[#252525]")),bubbleReceivedMd:P(e("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...t}};function M1(){return M1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,text:l,name:u,type:c="sent",header:d,footer:f,textHeader:g,textFooter:v,avatar:y,ios:b,material:S,children:E,...x}=t,w=I.useRef(null);I.useImperativeHandle(e,()=>({el:w.current}));const m=Ie({ios:b,material:S}),C=He(),N=xP(a,C),O=m(wP({...t},N)),A=r,R={...x},j=P(n,O.message,{[O.messageSent]:c==="sent",[O.messageReceived]:c==="received"});return z.createElement(A,M1({id:i,ref:w,className:j},R),y&&z.createElement("div",{className:O.messageAvatar},y),z.createElement("div",{className:O.messageContent},u&&z.createElement("div",{className:O.messageName},u),d&&z.createElement("div",{className:O.messageHeader},d),z.createElement("div",{className:O.messageBubble},g&&z.createElement("div",{className:O.messageTextHeader},g),l&&z.createElement("div",{className:O.messageText},l),v&&z.createElement("div",{className:O.messageTextFooter},v)),f&&z.createElement("div",{className:O.messageFooter},f)))});SP.displayName="Message";const CP=(t,e,r)=>{let{isFocused:n}=r;const{rightClassName:a="",rightClass:i="",leftClassName:l="",leftClass:u=""}=t;return{base:{common:"fixed bottom-0 start-0 w-full"},toolbar:{material:e.bgMessage},left:{common:P("mt-1 -ms-2",l||u),ios:P("px-2",e.toolbarIconIos),material:P("",e.toolbarIconMd)},right:{common:P("mt-1 -me-2",a||i),ios:P("px-2",e.toolbarIconIos)},messagebarArea:{common:"w-full"},messagebarInput:{common:P("block w-full focus:outline-none resize-none",n&&"outline-offset-0"),ios:P("border h-8 rounded-3xl px-4 leading-4 py-1.5",e.inputBgIos,e.borderIos,e.placeholderIos),material:P("rounded-3xl h-12 px-4 py-4 leading-4 ",e.inputBgMd,e.placeholderMd)}}},_P=function(t,e){return t===void 0&&(t={}),{toolbarIconIos:P("fill-primary",e("dark:fill-md-dark-primary")),toolbarIconMd:P("fill-black"),inputBgIos:P("bg-transparent"),borderIos:P("border-[#c8c8cd]",e("dark:border-white dark:border-opacity-30")),inputBgMd:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-variant")),placeholderIos:P(e("dark:placeholder-white dark:placeholder-opacity-40")),placeholderMd:P("placeholder-md-light-on-surface-variant",e("dark:placeholder-md-dark-on-surface-variant")),bgIos:P("bg-white",e("dark:bg-black")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}},EP=(t,e,r)=>{const{bgClassName:n="",bgClass:a="",outline:i,translucent:l,innerClassName:u="",innerClass:c="",tabbar:d,tabbarIcons:f,top:g}=t;return{base:{common:P("w-full z-20",Vt("relative",r),!g&&"pb-safe")},bg:{common:P("absolute w-full h-full left-0 top-0",i&&(g?"hairline-b":"hairline-t"),n||a),ios:P(e.bgIos,l&&"translucent"),material:P(`${e.bgMaterial}`)},inner:{common:P("flex relative justify-between items-center w-full overflow-hidden",u||c),ios:P("pl-2-safe pr-2-safe",f?"h-12.5":"h-11"),material:P(d?"":"pl-2-safe pr-2-safe",f?"h-20":"h-14")},highlight:{common:P(g?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:e.tabbarHighlightBgIos,material:e.tabbarHighlightBgMaterial}}},PP=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface-2",e("dark:bg-ios-dark-surface-2")),bgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"bg-primary",tabbarHighlightBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function I1(){return I1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,translucent:i=!0,bgClassName:l="",innerClassName:u="",outline:c,tabbar:d,tabbarIcons:f,tabbarLabels:g,top:v,ios:y,material:b,children:S,...E}=t,x=I.useRef(null),w=I.useRef(null);I.useImperativeHandle(e,()=>({el:w.current}));const m=r,[C,N]=I.useState({transform:"",width:""}),O=kt({ios:y,material:b}),A=Ie({ios:y,material:b}),R=He(),j={...E},L=PP(a,R),U=A(EP({...t,outline:typeof c>"u"?O==="ios":c,translucent:i,bgClassName:l,innerClassName:u},L,n),n),H=O==="material"&&d&&!f;return I.useEffect(()=>{if(H&&x.current){const q=x.current.previousElementSibling,ne=1/q.children.length*100,ie=[...q.children].indexOf(q.querySelector(".k-tabbar-link-active"));N({...C,width:`${ne}%`,transform:`translateX(${ie*100}%)`})}},[S]),z.createElement(m,I1({ref:w,className:U.base},j),z.createElement("div",{className:U.bg}),z.createElement("div",{className:U.inner},S),H&&z.createElement("span",{className:U.highlight,style:C,ref:x}))});N1.displayName="Toolbar";function O1(){return O1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,style:l,name:u,placeholder:c="Message",value:d,outline:f=!1,leftClassName:g="",rightClassName:v="",textareaId:y,disabled:b,size:S,left:E,right:x,ios:w,material:m,onInput:C,onChange:N,onFocus:O,children:A,...R}=t,j=I.useRef(null),L=I.useRef(null);I.useImperativeHandle(e,()=>({el:j.current,areaElRef:L.current}));const[U,H]=I.useState(!1),q=Ie({ios:w,material:m}),ne=He(),ie=_P(a,ne),se=Q=>{H(!0),O&&O(Q)},K=q(CP({...t},ie,{isFocused:U})),D=r,Z={...R};return z.createElement(D,O1({ref:j,id:i,style:l,className:K.base},Z),z.createElement(N1,{colors:ie,outline:f},E&&z.createElement("div",{className:K.left},E),z.createElement("div",{className:K.messagebarArea},z.createElement("textarea",{id:y,ref:L,type:"textarea",className:K.messagebarInput,placeholder:c,name:u,size:S,disabled:b,onInput:C,onChange:N,onFocus:se,value:d})),x&&z.createElement("div",{className:K.right},x)))});MP.displayName="Messagebar";const IP=()=>({base:{common:P("flex flex-col relative z-1 px-2"),ios:"mb-12",material:"mb-16"}});function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,id:i,ios:l,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=Ie({ios:l,material:u})(IP({...t})),v=r,y={...d};return z.createElement(v,R1({id:i,className:g.base,ref:f},y),c)});NP.displayName="Messages";const OP=(t,e)=>({base:{common:P("text-center text-xs leading-none"),ios:P("w-full mt-2.5",e.titleIos),material:P("mt-4",e.titleMd)}}),RP=function(t,e){return t===void 0&&(t={}),{titleIos:P("text-black text-opacity-45",e("dark:text-white dark:text-opacity-45")),titleMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function T1(){return T1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,id:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=Ie({ios:i,material:l}),v=He(),y=RP(a,v),b=g(OP({...t},y)),S=r,E={...d};return z.createElement(S,T1({id:u,className:b.base,ref:f},E),c)});TP.displayName="MessagesTitle";const LP=(t,e,r)=>{const{outline:n,translucent:a,large:i,medium:l,transparent:u,left:c,right:d,fontSizeIos:f,fontSizeMaterial:g,titleFontSizeIos:v,titleFontSizeMaterial:y,titleLargeFontSizeIos:b,titleLargeFontSizeMaterial:S,titleMediumFontSizeIos:E,titleMediumFontSizeMaterial:x,bgClassName:w="",bgClass:m="",subnavbarClassName:C="",subnavbarClass:N="",innerClassName:O="",innerClass:A="",leftClassName:R="",leftClass:j="",titleClassName:L="",titleClass:U="",subtitleClassName:H="",subtitleClass:q="",rightClassName:ne="",rightClass:ie="",centerTitle:se}=t;return{base:{common:P("w-full z-20 top-0 pt-safe",(i||l)&&"pointer-events-none",Vt("sticky",r)),ios:P(f,e.textIos),material:P(g,e.textMaterial)},bg:{common:P("absolute w-full h-full left-0 top-0",n&&"hairline-b",w||m),ios:P(e.bgIos,a&&"translucent"),material:`${e.bgMaterial}`},subnavbar:{common:P("relative flex items-center",C||N,(i||l)&&"pointer-events-auto"),ios:"h-11 pl-2-safe pr-2-safe",material:"h-14 pl-4-safe pr-4-safe"},inner:{common:P("flex relative items-center w-full overflow-hidden",O||A,(i||l)&&"pointer-events-auto z-10"),ios:P("pl-2-safe pr-2-safe h-11",!c&&d?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe"},titleContainer:{common:P("flex items-center px-4 relative",(i||l)&&"pointer-events-auto"),ios:P(l&&P(E,"h-11 font-semibold"),i&&P(b,"h-13 font-bold")),material:P(l&&P(x,"h-12 pb-4"),i&&P(S,"h-[5.5rem]"))},left:{common:P("flex justify-center items-center h-full",R||j),ios:"me-2 transform transform-gpu",material:"mx-1"},title:{common:P("whitespace-nowrap leading-tight",L||U,(i||l||u)&&"opacity-0",se?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:P(`${v} font-semibold`,!se&&"first:mx-2"),material:P(`${y} font-normal`,!se&&"first:mx-4")},subtitle:{common:P("font-normal leading-none",H||q),ios:"text-2xs opacity-55",material:"text-sm opacity-85"},right:{common:P("flex justify-center items-center h-full",ne||ie),ios:P("transform transform-gpu",se?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},FP=(t,e)=>({bgIos:P("bg-ios-light-surface-2",e("dark:bg-ios-dark-surface-2")),bgMaterial:P("bg-md-light-surface-2",e("dark:bg-md-dark-surface-2")),textIos:P("text-black",e("dark:text-white")),textMaterial:P("text-md-light-on-surface",e("dark:text-md-dark-on-surface")),...t});function L1(){return L1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,bgClassName:a="",innerClassName:i="",leftClassName:l="",titleClassName:u="",subtitleClassName:c="",rightClassName:d="",subnavbarClassName:f="",centerTitle:g,colors:v,translucent:y=!0,outline:b,medium:S,large:E,transparent:x,fontSizeIos:w="text-[17px]",fontSizeMaterial:m="text-[16px]",titleFontSizeIos:C="text-[17px]",titleFontSizeMaterial:N="text-[22px]",titleMediumFontSizeIos:O="text-[24px]",titleMediumFontSizeMaterial:A="text-[24px]",titleLargeFontSizeIos:R="text-[34px]",titleLargeFontSizeMaterial:j="text-[28px]",scrollEl:L,left:U,title:H,subtitle:q,right:ne,subnavbar:ie,ios:se,material:K,children:D,...Z}=t,Q=I.useRef(null),oe=I.useRef(0),he=I.useRef(null),Ce=I.useRef(null),me=I.useRef(null),Me=I.useRef(null),Ne=I.useRef(null),$=I.useRef(null);I.useImperativeHandle(e,()=>({el:Q.current}));const re=r,le=kt({ios:se,material:K}),Se=Ie({ios:se,material:K}),Oe=He(),Fe={...Z},Ye=FP(v,Oe),it=De=>{const{scrollTop:Cn}=De.target;if(!x&&!E&&!S){$.current&&(Me.current&&(Me.current.style.opacity=""),he.current&&(he.current.style.opacity=""));return}const Zt=oe.current,Or=Math.max(Math.min(Cn/Zt,1),0);he.current.style.opacity=x?-.5+Or*1.5:"",(S||E)&&(he.current.style.transform=`translateY(-${Or*Zt}px)`),me.current&&(me.current.style.transform=`translateY(-${Or*Zt}px)`,me.current.style.opacity=1-Or*2),Me.current&&(Me.current.style.opacity=-.5+Or*1.5),(S||E)&&Ne.current&&(Ne.current.style.transform=`translateY(-${Or*Zt}px)`)},ze=()=>typeof L>"u"?Q.current&&Q.current.parentNode:L.current||L,Wt=()=>{if(!E&&!S&&!x){$.current&&(it({target:{scrollTop:0}}),$.current=!1);return}$.current=!0,me.current?oe.current=me.current.offsetHeight:oe.current=Ce.current.offsetHeight;const De=ze();De?(De.addEventListener("scroll",it),it({target:De})):it({target:{scrollTop:0}})},dt=()=>{const De=ze();De&&De.removeEventListener("scroll",it)};I.useEffect(()=>(Wt(),dt));const ht=Se(LP({...t,centerTitle:typeof g>"u"?le==="ios":g,translucent:y,outline:typeof b>"u"?le==="ios":b,fontSizeIos:w,fontSizeMaterial:m,titleFontSizeIos:C,titleFontSizeMaterial:N,titleMediumFontSizeIos:O,titleMediumFontSizeMaterial:A,titleLargeFontSizeIos:R,titleLargeFontSizeMaterial:j,bgClassName:a,innerClassName:i,leftClassName:l,titleClassName:u,subtitleClassName:c,rightClassName:d,subnavbarClassName:f},Ye,n),n);return z.createElement(re,L1({ref:Q,className:ht.base},Fe),z.createElement("div",{className:ht.bg,ref:he}),z.createElement("div",{className:ht.inner,ref:Ce},U&&z.createElement("div",{className:ht.left},U),(H||q)&&z.createElement("div",{className:ht.title,ref:Me},H,q&&z.createElement("div",{className:ht.subtitle},q)),ne&&z.createElement("div",{className:ht.right},ne),D),(E||S)&&z.createElement("div",{className:ht.titleContainer,ref:me},H),ie&&z.createElement("div",{className:ht.subnavbar,ref:Ne},ie))});b3.displayName="Navbar";function Bh(){return Bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?z.createElement("svg",Bh({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"20",viewBox:"0 0 12 20",fill:"currentcolor"},r),z.createElement("path",{d:"M0.18261596,9.4221638 C0.21783626,9.37068075 0.25835058,9.32165682 0.30416276,9.27584463 L9.1425872,0.4374202 C9.7256776,-0.14567018 10.6691555,-0.1475686 11.2590259,0.44230183 C11.8448123,1.02808827 11.8502479,1.97240019 11.2639075,2.55874056 L3.82594417,9.9967039 L11.2578297,17.4285894 C11.8409201,18.0116798 11.8428185,18.9551577 11.252948,19.5450281 C10.6671616,20.1308146 9.7228497,20.1362501 9.13650932,19.5499097 L0.2980849,10.7114853 C-0.0545897,10.3588107 -0.0959125,9.8144953 0.18261596,9.4221638 Z"})):z.createElement("svg",Bh({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentcolor"},r),z.createElement("polygon",{points:"16 7 3.83 7 9.42 1.41 8 0 0 8 8 16 9.41 14.59 3.83 9 16 9"}))},jP=()=>({base:{common:"cursor-pointer",material:"min-w-12 k-touch-ripple-inset"},icon:"rtl:rotate-180"});function F1(){return F1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="a",className:n,text:a="Back",showText:i="auto",ios:l,material:u,onClick:c,children:d,...f}=t,g=I.useRef(null);I.useImperativeHandle(e,()=>({el:g.current}));const v={...f},y=kt({ios:l,material:u}),b=Ie({ios:l,material:u}),S=i==="auto"&&y==="ios"||i===!0,E=b(jP(),n);return z.createElement(b1,F1({ref:g,component:r,className:E.base,navbar:!0},v,{onClick:c}),z.createElement("span",{className:E.icon},z.createElement(k3,{theme:y})),S&&z.createElement("span",null,a),d)});AP.displayName="NavbarBackLink";const zP=(t,e,r)=>{const{opened:n,translucent:a}=t;return{base:{common:P(Vt("absolute",r),"z-50 transform transition-transform-opacity box-border duration-500",!n&&"-translate-y-full opacity-0 pointer-events-none transition duration-500","md:w-[568px] md:end-auto md:start-1/2 md:-ms-[256px]"),ios:P("rounded-xl px-2.5 py-2.5 start-2 end-2 top-2 shadow-lg",e.bgIos,a&&"translucent"),material:P("rounded-2xl py-5 px-4 start-4 end-4 top-4",e.bgMaterial)},content:{common:"",ios:"mt-2.5 ",material:P("mt-2")},header:{common:P("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:P("me-2"),material:"me-4"},contentTitle:{material:P("flex flex-row items-center")},title:{ios:P("tracking-wide text-[13px] uppercase",e.titleIos),material:P("font-medium")},titleRightText:{ios:P("me-1 ms-auto text-[13px]",e.titleRightIos),material:P("ms-1 text-xs before:w-0.75 before:h-0.75 before:rounded-full before:inline-block before:align-middle before:me-1",e.titleRightMd)},button:{ios:P("me-1 ms-auto cursor-pointer"),material:P("ms-auto cursor-pointer")},deleteIcon:{ios:P("w-5 h-5",e.deleteIconIos),material:P("w-6 h-6",e.deleteIconMd)},subtitle:{ios:P("text-[15px] font-semibold",e.subtitleIos),material:P("text-sm")},text:{ios:P("text-[15px]"),material:P("text-sm",e.textMaterial)}}},DP=(t,e)=>({bgIos:P("bg-white",e("dark:bg-[#1e1e1e]")),bgMaterial:P("bg-md-light-surface-5",e("dark:bg-md-dark-surface-5")),titleIos:P("text-black",e("dark:text-white")),titleRightIos:P("text-opacity-45 text-black",e("dark:text-white dark:text-opacity-45")),titleRightMd:P("text-md-light-on-surface-variant before:bg-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant before:dark:bg-md-dark-on-surface-variant")),subtitleIos:P("text-black ",e("dark:text-white")),textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant ")),deleteIconIos:P("fill-stone-400 active:fill-stone-200",e("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t});function Uh(){return Uh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,button:i,icon:l,title:u,titleRightText:c,subtitle:d,text:f,translucent:g=!0,opened:v,onClose:y,ios:b,material:S,children:E,...x}=t,w=I.useRef(null);I.useImperativeHandle(e,()=>({el:w.current}));const m=r,C={...x},N=kt({ios:b,material:S}),O=Ie({ios:b,material:S}),A=He(),R=DP(a,A),j=O(zP({...t,translucent:g},R,n),n);return N==="ios"?z.createElement(m,Uh({ref:w,className:j.base},C),z.createElement("div",{className:j.header},l&&z.createElement("div",{className:j.icon},l),u&&z.createElement("div",{className:j.title},u),c&&z.createElement("div",{className:j.titleRightText},c),i&&z.createElement("div",{className:j.button,role:"button",tabIndex:"0",onClick:y},z.createElement(Du,{theme:N,className:j.deleteIcon}))),z.createElement("div",{className:j.content},d&&z.createElement("div",{className:j.subtitle},d),f&&z.createElement("div",{className:j.text},f),E)):z.createElement(m,Uh({ref:w,className:j.base},C),z.createElement("div",{className:j.header},l&&z.createElement("div",{className:j.icon},l),z.createElement("div",{className:j.contentWrapper},z.createElement("div",{className:j.contentTitle},u&&z.createElement("div",{className:j.title},u),c&&z.createElement("div",{className:j.titleRightText},c)),z.createElement("div",{className:j.content},d&&z.createElement("div",{className:j.subtitle},d),f&&z.createElement("div",{className:j.text},f),E)),i&&z.createElement("div",{className:j.button,role:"button",tabIndex:"0",onClick:y},z.createElement(Du,{theme:N,className:j.deleteIcon}))))});BP.displayName="Notification";const UP=(t,e,r)=>({base:{common:P("h-full w-full left-0 top-0 overflow-auto",Vt("absolute",r)),ios:e.bgIos,material:e.bgMaterial}}),$P=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface",e("dark:bg-ios-dark-surface")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}};function j1(){return j1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=r,g={...c},v=Ie({ios:i,material:l}),y=He(),b=$P(a,y),S=v(UP(t,b,n),n);return z.createElement(f,j1({ref:d,className:S.base},g),u)});A1.displayName="Page";const VP=(t,e,r)=>{const{size:n,floating:a}=t;return{base:{common:P("transition-transform transform duration-400 z-40 max-w-full overflow-hidden",a?"top-2-safe bottom-2-safe !h-auto":"top-0 max-h-full",e.bg,Vt("fixed",r),n),ios:"",material:"ease-material-in"},left:{common:P("no-safe-areas-right",a?"right-full -mr-2 rounded-2xl":"right-full"),material:P(!a&&"rounded-r-2xl"),opened:"translate-x-full",closed:"-translate-x-2"},right:{common:P("no-safe-areas-left",a?"left-full -ml-2 rounded-2xl":"left-full"),material:P(!a&&"rounded-l-2xl"),opened:"-translate-x-full",closed:"translate-x-2"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},GP=function(t,e){return t===void 0&&(t={}),{bg:P("bg-white",e("dark:bg-black")),...t}};function z1(){return z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,size:i="w-72 h-screen",side:l="left",opened:u,backdrop:c=!0,floating:d=!1,onBackdropClick:f,ios:g,material:v,children:y,...b}=t,S=I.useRef(null);I.useImperativeHandle(e,()=>({el:S.current}));const E=u?"opened":"closed",x=r,w={...b},m=Ie({ios:g,material:v}),C=He(),N=GP(a,C),O=m(VP({...t,size:i,floating:d},N,n),n),A=P(O.base,O[l][E]);return z.createElement(z.Fragment,null,c&&z.createElement("div",{className:O.backdrop[E],onClick:f}),z.createElement(x,z1({ref:S,className:A},w),y))});WP.displayName="Panel";const qP=t=>{let{popoverEl:e,targetEl:r,angleEl:n,needsAngle:a,targetX:i,targetY:l,targetWidth:u=0,targetHeight:c=0,theme:d}=t;r.current?r=r.current:r.value?r=r.value:r.el?r=r.el:r.$el&&(r=r.$el),typeof r=="string"&&(r=document.querySelector(r));let f=document.body.offsetWidth,g=document.body.offsetHeight;f===0&&(f=window.innerWidth),g===0&&(g=window.innerHeight);const[v,y]=[e.offsetWidth,e.offsetHeight];let b=0,S,E,x="";a&&(b=n.offsetWidth/2);let w,m;const C=window.getComputedStyle(r);let N=parseInt(C.getPropertyValue("--k-safe-area-top"),10)||0,O=parseInt(C.getPropertyValue("--k-safe-area-left"),10)||0,A=parseInt(C.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(N)&&(N=0),Number.isNaN(O)&&(O=0),Number.isNaN(A)&&(A=0),r){u=r.offsetWidth,c=r.offsetHeight;const ie=r.getBoundingClientRect();w=ie.left,m=ie.top}else typeof i<"u"&&l!=="undefined"&&(w=i,m=l);let[R,j,L]=[0,0,0];const U=d==="ios"?13:23;let H="top";y+bf-5-A&&(R=f-5-A-v),H==="top"&&(x="bottom"),H==="bottom"&&(x="top"),L-=R,S=v/2-b+L,S=Math.max(Math.min(S,v-b*2-U),U)):H==="middle"&&(R=w-v-b,x="right",(R<5||R+v+A>f||Rf&&(R=f-v-5-A),R"u"?void 0:`${E}px`,angleLeft:typeof S>"u"?void 0:`${S}px`,anglePosition:x,popoverTop:`${j}px`,popoverLeft:`${R}px`,popoverPosition:`${q}-${ne}`}},HP=(t,e,r)=>{const{size:n,translucent:a,angleClassName:i,angleClass:l}=t;return{base:{common:P("transition-transform-opacity z-40 no-safe-areas",Vt("fixed",r),n),ios:"duration-300",material:"duration-400 ease-material-in",opened:"",closed:{common:"opacity-0 pointer-events-none",ios:"",material:"scale-x-90 scale-y-75"}},inner:{common:P("overflow-hidden relative"),ios:P("rounded-xl",a&&"translucent",e.bgIos),material:P("rounded-[1.75rem]",e.bgMaterial)},angleWrap:{common:P(i||l||"","pointer-events-none"),ios:P("absolute w-6.5 h-6.5 z-50 overflow-hidden",a&&"opacity-80"),material:P("absolute w-6.5 h-6.5 z-50 overflow-hidden"),bottom:"top-full",top:"bottom-full",left:"right-full",right:"left-full"},angleArrow:{common:P("absolute rounded w-full h-full transform rotate-45"),ios:e.bgIos,material:e.bgMaterial,bottom:"-top-4.75",top:"top-4.75",left:"left-4.75",right:"-left-4.75"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}}},KP=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-ios-light-surface-3",e("dark:bg-ios-dark-surface-3")),bgMaterial:P("bg-md-light-surface-3",e("dark:bg-md-dark-surface-3")),...t}};function D1(){return D1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,angle:a=!0,angleClassName:i="",colors:l,size:u="w-64",opened:c,backdrop:d=!0,onBackdropClick:f,target:g,targetX:v,targetY:y,targetWidth:b,targetHeight:S,translucent:E=!0,ios:x,material:w,children:m,style:C={},...N}=t,O=I.useRef(null),A=I.useRef(null),[R,j]=I.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"});I.useImperativeHandle(e,()=>({el:O.current}));const L=c?"opened":"closed",U=r,H={...N},q=kt({ios:x,material:w}),ne=Ie({ios:x,material:w}),ie=He(),se=KP(l,ie),K=ne(HP({...t,size:u,angleClassName:i,translucent:E},se,n),n),D=()=>{!g||!O.current||!c||j(qP({popoverEl:O.current,targetEl:g,angleEl:A.current,needsAngle:a,targetX:v,targetY:y,targetHeight:S,targetWidth:b,theme:q}))},Z=()=>{typeof window>"u"||window.addEventListener("resize",D)},Q=()=>{typeof window>"u"||window.removeEventListener("resize",D)};I.useEffect(()=>(Z(),()=>Q())),I.useEffect(()=>{D()},[c]);const oe=R.set?{...C||{},left:R.popoverLeft,top:R.popoverTop}:C,he=R.set?{left:R.angleLeft,top:R.angleTop}:void 0,Ce={"top-right":"origin-bottom-left","top-left":"origin-bottom-right","middle-left":"origin-right","middle-right":"origin-left","bottom-right":"origin-top-left","bottom-left":"origin-top-right"},me=P(K.base[L],q==="material"&&Ce[R.popoverPosition]);return z.createElement(z.Fragment,null,d&&z.createElement("div",{className:K.backdrop[L],onClick:f}),z.createElement(U,D1({ref:O,className:me,style:oe},H),a&&z.createElement("div",{ref:A,style:he,className:K.angleWrap[R.anglePosition]},z.createElement("div",{className:K.angleArrow[R.anglePosition]})),z.createElement("div",{className:K.inner},m)))});YP.displayName="Popover";const QP=(t,e,r)=>{const{size:n}=t;return{base:{common:P("left-1/2 top-1/2 transition-transform transform -translate-x-1/2 z-40 max-w-full max-h-full overflow-hidden md:no-safe-areas",e.bg,Vt("fixed",r),n),ios:"duration-400 md:rounded-lg",material:" md:rounded-[1.75rem]",opened:{common:"-translate-y-1/2",material:P("ease-material-in-popup duration-[600ms]")},closed:{common:"translate-y-full",material:"duration-400"}},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},XP=function(t,e){return t===void 0&&(t={}),{bg:P("bg-white",e("dark:bg-black")),...t}};function B1(){return B1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,size:i="w-screen h-screen md:w-160 md:h-160",opened:l,backdrop:u=!0,onBackdropClick:c,ios:d,material:f,children:g,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=l?"opened":"closed",S=r,E={...v},x=Ie({ios:d,material:f}),w=He(),m=XP(a,w),C=x(QP({...t,size:i},m,n),n);return z.createElement(z.Fragment,null,u&&z.createElement("div",{className:C.backdrop[b],onClick:c}),z.createElement(S,B1({ref:y,className:C.base[b]},E),g))});w3.displayName="Popup";function U1(){return U1=Object.assign?Object.assign.bind():function(t){for(var e=1;ez.createElement("svg",U1({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},t),z.createElement("path",{d:"M10,0 C10.5522847,0 11,0.44771525 11,1 L11,6 C11,6.55228475 10.5522847,7 10,7 C9.44771525,7 9,6.55228475 9,6 L9,1 C9,0.44771525 9.44771525,0 10,0 Z"}),z.createElement("path",{d:"M10,13 C10.5522847,13 11,13.4477153 11,14 L11,19 C11,19.5522847 10.5522847,20 10,20 C9.44771525,20 9,19.5522847 9,19 L9,14 C9,13.4477153 9.44771525,13 10,13 Z",opacity:".64"}),z.createElement("path",{d:"M13,10 C13,9.44771525 13.4477153,9 14,9 L19,9 C19.5522847,9 20,9.44771525 20,10 C20,10.5522847 19.5522847,11 19,11 L14,11 C13.4477153,11 13,10.5522847 13,10 Z",opacity:".82"}),z.createElement("path",{d:"M-3.8285687e-16,10 C-3.8285687e-16,9.44771525 0.44771525,9 1,9 L6,9 C6.55228475,9 7,9.44771525 7,10 C7,10.5522847 6.55228475,11 6,11 L1,11 C0.44771525,11 -3.8285687e-16,10.5522847 -3.8285687e-16,10 Z",opacity:".46"}),z.createElement("path",{d:"M2.92912627,2.92912627 C3.31965056,2.53860197 3.95281554,2.53860197 4.34333983,2.92912627 L7.87887373,6.46466017 C8.26939803,6.85518446 8.26939803,7.48834944 7.87887373,7.87887373 C7.48834944,8.26939803 6.85518446,8.26939803 6.46466017,7.87887373 L2.92912627,4.34333983 C2.53860197,3.95281554 2.53860197,3.31965056 2.92912627,2.92912627 Z",opacity:".37"}),z.createElement("path",{d:"M12.1211263,12.1211263 C12.5116506,11.730602 13.1448155,11.730602 13.5353398,12.1211263 L17.0708737,15.6566602 C17.461398,16.0471845 17.461398,16.6803494 17.0708737,17.0708737 C16.6803494,17.461398 16.0471845,17.461398 15.6566602,17.0708737 L12.1211263,13.5353398 C11.730602,13.1448155 11.730602,12.5116506 12.1211263,12.1211263 Z",opacity:".73"}),z.createElement("path",{d:"M12.1211263,7.87887373 C11.730602,7.48834944 11.730602,6.85518446 12.1211263,6.46466017 L15.6566602,2.92912627 C16.0471845,2.53860197 16.6803494,2.53860197 17.0708737,2.92912627 C17.461398,3.31965056 17.461398,3.95281554 17.0708737,4.34333983 L13.5353398,7.87887373 C13.1448155,8.26939803 12.5116506,8.26939803 12.1211263,7.87887373 Z",opacity:".91"}),z.createElement("path",{d:"M2.92912627,17.0708737 C2.53860197,16.6803494 2.53860197,16.0471845 2.92912627,15.6566602 L6.46466017,12.1211263 C6.85518446,11.730602 7.48834944,11.730602 7.87887373,12.1211263 C8.26939803,12.5116506 8.26939803,13.1448155 7.87887373,13.5353398 L4.34333983,17.0708737 C3.95281554,17.461398 3.31965056,17.461398 2.92912627,17.0708737 Z",opacity:".55"}));function $1(){return $1=Object.assign?Object.assign.bind():function(t){for(var e=1;ez.createElement("svg",$1({viewBox:"0 0 36 36"},t,{fill:"none",stroke:"currentcolor"}),z.createElement("circle",{cx:"18",cy:"18",r:"16"})),eM=(t,e,r)=>{const{size:n}=t;return{base:{common:P(r==="ios"?"k-ios-preloader":"k-material-preloader",`inline-block ${n}`),ios:e.iconIos,material:`stroke-4 ${e.iconMaterial}`},inner:{common:"block w-full h-full"}}},tM=function(t,e){return t===void 0&&(t={}),{iconIos:"text-primary",iconMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function V1(){return V1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,size:i="w-8 h-8",ios:l,material:u,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=kt({ios:l,material:u}),b=Ie({ios:l,material:u}),S=He(),E=tM(a,S),x=y==="ios"?JP:ZP,w=b(eM({...t,size:i},E,y),n);return z.createElement(g,V1({ref:f,className:w.base},v),z.createElement("span",{className:w.inner},z.createElement(x,{className:"w-full h-full"})),c)});rM.displayName="Preloader";const nM=t=>({base:{common:"block h-1 bg-opacity-30 dark:bg-opacity-30 overflow-hidden rtl:rotate-180",ios:"bg-black rounded-full",material:t.bgMaterial},inner:{common:"block duration-200 w-full h-full",ios:t.bgIos,material:t.bgMaterial}}),aM=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-primary",bgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),...t}};function G1(){return G1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,ios:i,material:l,progress:u=0,children:c,...d}=t,f=I.useRef(null);I.useImperativeHandle(e,()=>({el:f.current}));const g=r,v={...d},y=Ie({ios:i,material:l}),b=He(),S=aM(a,b),E=y(nM(S),n);return z.createElement(g,G1({ref:f,className:E.base},v),z.createElement("span",{className:E.inner,style:{transform:`translateX(-${100-u/1*100}%)`}}),c)});iM.displayName="Progressbar";const oM=(t,e,r,n)=>({base:P("cursor-pointer inline-flex align-middle",Vt("relative",r),n("dark:touch-ripple-white")),iconWrap:{common:"flex items-center justify-center rounded-full",ios:"w-5.5 h-5.5 border",material:"w-5 h-5 border-2",notChecked:{ios:e.borderIos,material:e.borderMaterial},checked:{ios:e.borderCheckedIos,material:e.borderCheckedMaterial}},icon:{ios:"text-primary",material:`w-3 h-3 rounded-full ${e.bgCheckedMaterial}`,notChecked:"opacity-0",checked:"opacity-100"},indeterminateIcon:{common:"bg-white w-3/4",ios:"h-0.25",material:"h-0.5"},input:{common:"hidden"}}),sM=function(t,e){return t===void 0&&(t={}),{borderIos:P("border-black border-opacity-30",e("dark:border-white dark:border-opacity-30")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),bgCheckedIos:"bg-primary",bgCheckedMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderCheckedIos:"border-primary",borderCheckedMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),...t}};function W1(){return W1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:l,name:u,value:c,disabled:d,readOnly:f,onChange:g,ios:v,material:y,touchRipple:b=!0,children:S,...E}=t,x=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const w=r,m={...E},C=kt({ios:v,material:y}),N=Ie({ios:v,material:y}),O=He();ra(x,C==="material"&&b);const A=sM(a,O),R=l||i&&!g?"checked":"notChecked",j=N(oM(t,A,n,O),n);return z.createElement(w,W1({ref:x,className:j.base},m),z.createElement("input",{type:"radio",name:u,value:c,disabled:d,readOnly:f,checked:l,defaultChecked:i,onChange:g,className:j.input}),z.createElement("i",{className:j.iconWrap[R]},C==="ios"?z.createElement(g3,{className:j.icon[R]}):z.createElement("span",{className:j.icon[R]})),S)});lM.displayName="Radio";const uM=(t,e,r)=>({base:{common:"block relative select-none w-full self-center touch-pan-y",ios:"h-7",material:"h-5"},trackBg:{common:P("absolute top-1/2 left-0 w-full transform -translate-y-1/2 bg-black bg-opacity-20",r("dark:bg-white dark:bg-opacity-20")),ios:"h-1 rounded-full",material:"h-0.5"},trackValue:{common:"absolute top-1/2 start-0 w-full transform -translate-y-1/2",ios:`h-1 rounded-full ${e.valueBgIos}`,material:`h-0.5 ${e.valueBgMaterial}`},input:{common:"appearance-none w-full bg-transparent cursor-pointer block focus:outline-none relative",ios:"h-7",material:"h-5"},inputThumb:{common:"range-thumb:relative range-thumb:appearance-none range-thumb:rounded-full range-thumb:border-none",ios:`range-thumb:w-7 range-thumb:h-7 range-thumb:-mt-3.5 ${e.thumbBgIos} range-thumb:shadow-ios-toggle`,material:`range-thumb:w-3 range-thumb:h-3 ${e.thumbBgMaterial} range-thumb:-mt-1.5 range-thumb:transform range-thumb:duration-200 active:range-thumb:scale-150`},inputTrack:{common:"range-track:appearance-none range-track:h-px"}}),cM=function(t,e){return t===void 0&&(t={}),{valueBgIos:"bg-primary",valueBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),thumbBgIos:"range-thumb:bg-white",thumbBgMaterial:P("range-thumb:bg-md-light-primary",e("dark:range-thumb:bg-md-dark-primary")),...t}};function q1(){return q1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,children:u,inputId:c,name:d,value:f=void 0,defaultValue:g,readOnly:v,disabled:y,step:b=1,min:S=0,max:E=100,onInput:x,onChange:w,onFocus:m,onBlur:C,...N}=t,O=I.useRef(null);I.useImperativeHandle(e,()=>({el:O.current}));const A=r,R={...N},j=Ie({ios:i,material:l}),L=He(),U=cM(a,L),H=j(uM(t,U,L),n),q=((f||0)-S)/(E-S)*100;return z.createElement(A,q1({ref:O,className:H.base},R),z.createElement("span",{className:H.trackBg}),z.createElement("span",{className:H.trackValue,style:{width:`${q}%`}}),z.createElement("input",{className:P(H.input,H.inputThumb,H.inputTrack),type:"range",id:c,name:d,min:S,max:E,step:b,value:f,defaultValue:g,readOnly:v,disabled:y,onInput:x,onChange:w,onFocus:m,onBlur:C}))});dM.displayName="Range";const hM=(t,e,r)=>{let{isEnabled:n,darkClasses:a}=r;return{base:{common:"relative flex overflow-hidden items-center",ios:"px-2 w-full",material:"px-0 py-2 -mx-2 w-[calc(100%+32px)]"},inner:{common:"w-full shrink-1 relative",ios:"transition-all duration-300"},searchIconWrap:{common:"absolute inset-y-0 flex items-center z-40",ios:"start-2",material:"start-4"},clearButton:{common:"absolute justify-center inset-y-0 flex items-center z-40 cursor-pointer end-0",ios:"w-8 h-8",material:"w-12 h-12"},input:{common:"block appearance-none w-full py-2 focus:outline-none z-30",ios:P("h-8 bg-black/10 pl-7 pr-7 rounded-lg text-base",a("dark:placeholder-white dark:placeholder-opacity-30 dark:bg-white/10"),e.placeholderIos,e.inputBgIos),material:P("h-12 ps-12 pe-4 rounded-full",e.placeholderMaterial,e.inputBgMaterial)},deleteIcon:{common:"",ios:"w-3.5 h-3.5 opacity-45",material:"w-6 h-6 active:opacity-20"},searchIcon:{common:"",ios:P("w-4 h-4 opacity-45"),material:P("w-5 h-5 z-30",n?"opacity-0 transform rotate-90 scale-50 transition-transform-opacity duration-400 ":"block transform transition-transform-opacity scale-100 rotate-0 duration-400")},cancelButton:{ios:P("ps-2 flex items-center h-8 cursor-pointer bg-transparent text-primary shrink-0 z-40 transition-all duration-300 active:opacity-30",n?"":"opacity-0"),material:P("absolute left-4 cursor-pointer",n?"z-40 transform scale-100 rotate-0 transition-transform-opacity duration-400":"opacity-0 transform -rotate-90 scale-50 transition-transform-opacity duration-400")}}},fM=function(t,e){return t===void 0&&(t={}),{inputBgIos:"",inputBgMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),placeholderIos:"",placeholderMaterial:P("placeholder-md-light-on-surface-variant",e("dark:placeholder-md-dark-on-surface-variant")),...t}};function $h(){return $h=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{theme:e,...r}=t;return e==="ios"?z.createElement("svg",$h({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 56 56",fill:"currentcolor"},r),z.createElement("path",{d:"M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"})):z.createElement("svg",$h({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"currentcolor"},r),z.createElement("path",{d:"M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"}))};function H1(){return H1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,placeholder:i="Search",value:l,inputId:u,inputStyle:c,disableButton:d=!1,disableButtonText:f="Cancel",clearButton:g=!0,onInput:v,onChange:y,onFocus:b,onBlur:S,onClear:E,onDisable:x,ios:w,material:m,...C}=t,N=I.useRef(null),O=I.useRef(null),A=I.useRef(null),[R,j]=I.useState(0),L=I.useRef(null),U=I.useRef(!1);I.useImperativeHandle(e,()=>({el:O.current,searchEl:N.current}));const[H,q]=I.useState(!1),ne=kt({ios:w,material:m}),ie=Ie({ios:w,material:m}),se=He(),K=fM(a,se),D=le=>{v&&v(le)},Z=le=>{y&&y(le)},Q=le=>{q(!0),b&&b(le)},oe=le=>{S&&S(le)},he=()=>{l||(L.current=setTimeout(()=>{q(!1)}))},Ce=()=>{clearTimeout(L.current)},me=le=>{le.preventDefault(),q(!1),N.current&&N.current.blur(),x&&x(),E&&E()};I.useEffect(()=>{A.current&&j(A.current.offsetWidth),requestAnimationFrame(()=>{requestAnimationFrame(()=>{U.current=!0})})},[]);const Me=ie(hM({...t},K,{isEnabled:H,darkClasses:se})),Ne=ne==="ios"?z.createElement("button",{type:"button",ref:A,style:{marginRight:H?0:`-${R}px`,transitionDuration:U.current?"":"0ms"},className:Me.cancelButton,onClick:me,onPointerDown:le=>le.preventDefault()},f):z.createElement(k3,{theme:ne,onClick:me,className:P(Me.cancelButton),onPointerDown:le=>le.preventDefault()}),$=r,re={...C};return z.createElement($,H1({ref:O,className:Me.base},re,{onBlurCapture:he,onFocusCapture:Ce}),z.createElement("div",{className:Me.inner},z.createElement("span",{className:Me.searchIconWrap},z.createElement(pM,{ios:w,material:m,className:Me.searchIcon})),z.createElement("input",{id:u,ref:N,className:P(Me.input),style:c,type:"text",name:"search",placeholder:i,value:l,onInput:D,onChange:Z,onFocus:Q,onBlur:oe}),l&&g&&z.createElement("button",{className:Me.clearButton,onClick:E,type:"button"},z.createElement(Du,{theme:ne,className:Me.deleteIcon}))),d&&Ne)});mM.displayName="Searchbar";const gM=(t,e,r)=>{const{outline:n,rounded:a}=t;return{base:{common:"flex justify-center items-center overflow-hidden w-full",square:{ios:"rounded",material:"rounded-lg"},rounded:"rounded-full"},raised:n?"shadow":"shadow divide-x divide-black divide-opacity-10 rtl:divide-x-reverse",outline:{common:"",ios:`${e.borderIos} border-2`,material:`${e.borderMaterial} border`},outlineInner:{common:"-m-0.5 flex w-full justify-center items-center rtl:divide-x-reverse",ios:`divide-x-2 ${e.divideIos}`,material:`divide-x ${e.divideMaterial}`},strong:{common:P("p-0.5 space-x-1 relative"),ios:e.strongBgIos,material:e.strongBgMaterial},strongHighlight:{common:P("absolute start-0.5 top-0.5 bottom-0.5 !ms-0 pointer-events-none duration-200",a&&"rounded-full","bg-white shadow",r("dark:bg-opacity-15 dark:touch-ripple-white")),ios:P(!a&&"rounded"),material:P(!a&&"rounded-md")}}},vM=function(t,e){return t===void 0&&(t={}),{strongBgIos:P("bg-black bg-opacity-5",e("dark:bg-white dark:bg-opacity-10")),strongBgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),borderIos:"border-primary",borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),divideIos:"divide-primary",divideMaterial:P("divide-md-light-outline",e("dark:divide-md-dark-outline")),...t}};function K1(){return K1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,ios:i,material:l,raised:u,outline:c,strong:d,rounded:f,children:g,...v}=t,y=I.useRef(null),b=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const[S,E]=I.useState({transform:"",width:""}),x=r,w={...v},m=Ie({ios:i,material:l}),C=He(),N=vM(a,C),O=m(gM(t,N,C)),A=P(f?O.base.rounded:O.base.square,u&&O.raised,c&&O.outline,d&&O.strong,n);return I.useEffect(()=>{if(d&&b.current){const R=b.current.parentElement,j=R.children.length-1,L=[...R.children].indexOf(R.querySelector(".k-segmented-strong-button-active")),U="4px";E({...S,width:`calc((100% - 2px * 2 - ${U} * (${j} - 1)) / ${j})`,transform:`translateX(calc((${L} * 100% + ${L} * ${U}) * var(--k-rtl-reverse)))`})}},[g]),z.createElement(x,K1({ref:y,className:A},w),c?z.createElement("span",{className:O.outlineInner},g):g,d&&z.createElement("span",{ref:b,className:O.strongHighlight,style:S}))});yM.displayName="Segmented";function Y1(){return Y1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{active:r,children:n,outline:a,strong:i,clear:l,rounded:u,...c}=t,d=I.useRef(null);return I.useImperativeHandle(e,()=>({el:d.current})),z.createElement(Vr,Y1({ref:d,segmented:!0,segmentedActive:r,segmentedStrong:i,rounded:u&&i},c),n)});bM.displayName="SegmentedButton";const kM=(t,e,r)=>({base:{common:P("left-0 top-full transition-transform duration-400 z-40 overflow-hidden",Vt("fixed",r)),ios:"",material:`rounded-t-2xl ease-material-in ${e.bgIos}`,opened:`-translate-y-full ${e.bgMaterial}`,closed:""},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black bg-opacity-50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}),wM=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-white",e("dark:bg-black")),bgMaterial:P("bg-md-light-surface",e("dark:bg-md-dark-surface")),...t}};function Q1(){return Q1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,opened:i,backdrop:l=!0,onBackdropClick:u,ios:c,material:d,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y=i?"opened":"closed",b=r,S={...g},E=Ie({ios:c,material:d}),x=He(),w=wM(a,x),m=E(kM(t,w,n),n);return z.createElement(z.Fragment,null,l&&z.createElement("div",{className:m.backdrop[y],onClick:u}),z.createElement(b,Q1({ref:v,className:m.base[y]},S),f))});xM.displayName="Sheet";const SM=(t,e)=>{const{buttonsOnly:r}=t;return{base:`${e.text} inline-flex items-stretch`,raised:"shadow",size:{small:{ios:"h-6",material:"h-8"},medium:{ios:"h-7",material:"h-10"},large:{ios:"h-11",material:"h-12"}},shape:{square:{ios:"rounded",material:"rounded-lg"},rounded:"rounded-full"},button:{common:"relative flex items-center justify-center w-10 cursor-pointer overflow-hidden z-10 select-none"},buttonLeftShape:{square:{ios:"rounded-s",material:"rounded-s-lg"},rounded:"rounded-s-full"},buttonRightShape:{square:{ios:"rounded-e",material:"rounded-e-lg"},rounded:"rounded-e-full"},buttonStyle:{fill:{common:P(e.fillTouchRipple,r&&"first:border-r border-black border-opacity-10 rtl:first:border-l rtl:first:border-r-0"),ios:P(e.fillBgIos,e.fillTextIos,e.fillActiveBgIos),material:P(e.fillBgMaterial,e.fillTextMaterial,e.fillActiveBgMaterial)},outline:{common:P(e.touchRipple,"active:bg-opacity-15",r&&"first:border-r-0 rtl:last:border-r-0"),ios:P("border-2",e.textIos,e.activeBgIos,e.outlineBorderIos,r&&"rtl:first:border-r-2"),material:P("border",e.textMaterial,e.activeBgMaterial,e.outlineBorderMaterial,r&&"rtl:first:border-r")},clear:{common:`${e.touchRipple} active:bg-opacity-15 last:border-l rtl:last:border-l-0 rtl:first:border-l border-black border-opacity-10`,ios:P(e.textIos,e.activeBgIos),material:P(e.textMaterial,e.activeBgMaterial)}},input:{common:"focus:outline-none text-center appearance-none bg-transparent"},value:{common:"w-11 flex items-center justify-center font-medium",ios:`text-base ${e.textIos}`,material:`text-sm ${e.textMaterial}`,fill:{common:"",ios:`border-t-2 border-b-2 ${e.outlineBorderIos}`,material:`border-t border-b ${e.outlineBorderMaterial}`},outline:{common:"",ios:`border-t-2 border-b-2 ${e.outlineBorderIos}`,material:`border-t border-b ${e.outlineBorderMaterial}`},clear:"border-l border-black border-opacity-10"},hBar:"w-4 h-0.5 bg-current block",vBar:"w-0.5 h-4 bg-current block absolute inset-1/2 transform -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2"}},CM=function(t,e){return t===void 0&&(t={}),{activeBgIos:"active:bg-primary",activeBgMaterial:"",textIos:"text-primary",textMaterial:P("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:P("text-white"),fillTextMaterial:P("text-md-light-on-primary",e("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary",fillBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),fillActiveBgIos:"active:bg-ios-primary-shade",fillActiveBgMaterial:"",fillTouchRipple:P("touch-ripple-white","dark:touch-ripple-primary"),outlineBorderIos:"border-primary",outlineBorderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),touchRipple:"touch-ripple-primary",...t}};function X1(){return X1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="span",className:n,colors:a,value:i=0,defaultValue:l,input:u=!1,inputType:c="text",inputPlaceholder:d,inputDisabled:f,inputReadOnly:g,buttonsOnly:v,rounded:y,roundedIos:b,roundedMaterial:S,small:E,smallIos:x,smallMaterial:w,large:m,largeIos:C,largeMaterial:N,raised:O,raisedIos:A,raisedMaterial:R,outline:j,outlineIos:L,outlineMaterial:U,onInput:H,onChange:q,onFocus:ne,onBlur:ie,onMinus:se,onPlus:K,ios:D,material:Z,touchRipple:Q=!0,children:oe,...he}=t,Ce=I.useRef(null),me=I.useRef(null),Me=I.useRef(null);I.useImperativeHandle(e,()=>({el:Ce.current}));const Ne=r,$=kt({ios:D,material:Z}),re=Ie({ios:D,material:Z});ra(me,$==="material"&&Q),ra(Me,$==="material"&&Q);const le=typeof y>"u"?$==="ios"?b:S:y,Se=typeof E>"u"?$==="ios"?x:w:E,Oe=typeof m>"u"?$==="ios"?C:N:m,Fe=typeof O>"u"?$==="ios"?A:R:O,Ye=typeof j>"u"?$==="ios"?L:U:j,it=He(),ze=CM(a,it),Wt=Oe?"large":Se?"small":"medium",dt=Ye&&Fe?"clear":Ye?"outline":"fill",ht=le?"rounded":"square",De=re(SM({...t,rounded:le,small:Se,large:Oe,raised:Fe,outline:Ye},ze)),Cn={...he},Zt=P(De.base,Fe&&De.raised,De.size[Wt],De.shape[ht],n),Or=P(De.button,De.buttonStyle[dt],De.buttonLeftShape[ht]),mr=P(De.button,De.buttonStyle[dt],De.buttonRightShape[ht]),qt=P(u&&De.input,De.value[dt]);return z.createElement(Ne,X1({ref:Ce,className:Zt},Cn),z.createElement("span",{ref:me,className:Or,role:"button",tabIndex:"0",onClick:se},z.createElement("span",{className:De.hBar})),u&&!v&&z.createElement("input",{className:qt,placeholder:d,type:c,value:i,defaultValue:l,disabled:f,readOnly:g,onInput:H,onChange:q,onFocus:ne,onBlur:ie}),!u&&!v&&z.createElement("span",{className:qt},i),z.createElement("span",{ref:Me,className:mr,role:"button",tabIndex:"0",onClick:K},z.createElement("span",{className:De.hBar}),z.createElement("span",{className:De.vBar})))});_M.displayName="Stepper";function J1(){return J1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{labels:r,icons:n,children:a,...i}=t,l=I.useRef(null);I.useImperativeHandle(e,()=>({el:l.current}));const u={...i};return z.createElement(N1,J1({ref:l,tabbar:!0,tabbarIcons:n,tabbarLabels:r},u),a)});x3.displayName="Tabbar";const EM=function(t,e){let{hasIcon:r,hasLabel:n,active:a}=t===void 0?{}:t;return e===void 0&&(e={}),{content:{common:"flex flex-col items-center justify-center h-full",ios:P("py-1",a?e.textActiveIos:e.textIos),material:P("py-2",r&&n&&"space-y-1",a?e.textActiveMaterial:e.textMaterial)},iconContainer:{common:"flex items-center justify-center k-tabbar-link-icon relative",ios:P("w-7 h-7"),material:P("w-16 h-8 rounded-full")},iconBg:{common:"absolute left-0 top-0 w-full h-full rounded-full duration-200 -z-10 pointer-events-none",ios:P(a?e.iconBgActiveIos:e.iconBgIos),material:P(a?e.iconBgActiveMaterial:e.iconBgMaterial,!a&&"scale-x-[0.5] opacity-0")},label:{ios:P(r?"text-xs font-medium":"",""),material:P(r?"text-xs":"text-sm","font-medium")}}},PM=function(t,e){return t===void 0&&(t={}),{textIos:P("text-black text-opacity-40",e("dark:text-white dark:text-opacity-55")),textActiveIos:"text-primary",textMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),textActiveMaterial:P("text-md-light-on-secondary-container",e("dark:text-md-dark-on-secondary-container")),iconBgIos:"",iconBgActiveIos:"",iconBgMaterial:"",iconBgActiveMaterial:P("bg-md-light-secondary-container",e("dark:bg-md-dark-secondary-container")),...t}};function Z1(){return Z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,active:n,ios:a,material:i,colors:l,linkProps:u={},icon:c,label:d,children:f,...g}=t,v=I.useRef(null);I.useImperativeHandle(e,()=>({el:v.current}));const y={...u,...g},b=He(),S=PM(l,b),E=Ie({ios:a,material:i}),x=!!c,w=d||f&&f.length,m=E(EM({hasLabel:w,hasIcon:x,active:n},S));return z.createElement(b1,Z1({ref:v,tabbar:!0,tabbarActive:n,className:r},y),z.createElement("span",{className:m.content},c&&z.createElement("span",{className:m.iconContainer},z.createElement("span",{className:m.iconBg}),c),(d||f&&f.length)&&z.createElement("span",{className:m.label},d,f)))});Bu.displayName="TabbarLink";const MM=()=>({base:{common:"w-full border-none p-0 m-0 border-collapse text-left table",ios:"",material:""}});function ev(){return ev=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...l}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(MM({...t})),d={...l};return z.createElement("table",ev({className:c.base,ref:u},d),i)});IM.displayName="Table";const NM=()=>({base:{common:"text-sm",ios:"",material:""}});function tv(){return tv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...l}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(NM({...t})),d={...l};return z.createElement("tbody",tv({className:c.base,ref:u},d),i)});OM.displayName="TableBody";const RM=(t,e,r)=>{const{header:n}=t;return{base:{common:P("align-middle",r),ios:P(n?`text-xs font-semibold overflow-hidden whitespace-nowrap leading-4 h-11 bg-transparent ${e.textHeaderIos} py-0 px-4`:"h-11 relative py-0 px-4"),material:P(n?`${e.textHeaderMaterial} px-6 py-0 text-xs font-medium overflow-hidden text-ellipsis whitespace-nowrap leading-4 h-14 bg-transparent`:"py-0 first:px-6 px-7 h-12")}}},TM=function(t,e){return t===void 0&&(t={}),{textHeaderIos:P("text-black/45",e("dark:text-white/55")),textHeaderMaterial:P("text-md-light-on-surface-variant",e("dark:text-md-dark-on-surface-variant")),...t}};function rv(){return rv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,colors:n,header:a,ios:i,material:l,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=a?"th":"td",g=Ie({ios:i,material:l}),v=He(),y=TM(n,v),b=g(RM({...t},y,r)),S={...c};return z.createElement(f,rv({className:b.base,ref:d},S),u)});LM.displayName="TableCell";const FM=()=>({base:{common:"align-middle relative",ios:"hairline-b",material:""}});function nv(){return nv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,ios:n,material:a,children:i,...l}=t,u=I.useRef(null);I.useImperativeHandle(e,()=>({el:u.current}));const c=Ie({ios:n,material:a})(FM({...t})),d={...l};return z.createElement("thead",nv({className:c.base,ref:u},d),i)});jM.displayName="TableHead";const AM=(t,e)=>{const{header:r}=t;return{base:{common:"align-middle relative",ios:r?"":P(e.bgIos,"hairline-b last:hairline-transparent"),material:r?"":P(e.bgMaterial,`border-t ${e.dividerMaterial}`)}}},zM=function(t,e){return t===void 0&&(t={}),{bgIos:P("hover:bg-black/5",e("dark:hover:bg-white/10")),bgMaterial:P("hover:bg-md-light-secondary-container",e("dark:hover:bg-md-dark-secondary-container")),dividerMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),...t}};function av(){return av=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{className:r,colors:n,header:a,ios:i,material:l,children:u,...c}=t,d=I.useRef(null);I.useImperativeHandle(e,()=>({el:d.current}));const f=Ie({ios:i,material:l}),g=He(),v=zM(n,g),y=f(AM({...t},v)),b={...c};return z.createElement("tr",av({className:y.base,ref:d},b),u)});DM.displayName="TableRow";const BM=(t,e,r)=>{const{translucent:n,opened:a}=t;return{base:{common:P(Vt("fixed",r),"z-50 transform transition-transform-opacity w-full sm:w-auto start-0 bottom-0 sm:max-w-lg",!a&&"translate-y-full opacity-0 pointer-events-none"),ios:P("sm:rounded-lg duration-300",e.textIos,e.bgIos,n&&"translucent"),material:P("sm:rounded-2xl duration-200",e.textMaterial,e.bgMaterial),left:"sm:start-4-safe sm:bottom-4-safe",right:"sm:end-4-safe sm:bottom-4-safe sm:start-auto",center:"sm:left-1/2 sm:bottom-4-safe sm:-translate-x-1/2"},content:{common:"flex items-center justify-between",ios:"pl-4-safe pr-4-safe pt-3 pb-3-safe sm:px-4 sm:py-3",material:"pl-6-safe pr-6-safe py-3.5 pb-3.5-safe sm:px-6 sm:py-3.5"},button:{common:"-my-2 shrink-0 ms-4",ios:"",material:"-me-2"}}},UM=function(t,e){return t===void 0&&(t={}),{bgIos:"bg-black",bgMaterial:P("bg-md-light-surface-5",e("dark:bg-md-dark-surface-5")),textIos:"text-white",textMaterial:P("text-md-light-primary",e("dark:text-md-dark-primary")),...t}};function iv(){return iv=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="div",className:n,colors:a,translucent:i=!0,button:l,position:u="left",opened:c,ios:d,material:f,children:g,...v}=t,y=I.useRef(null);I.useImperativeHandle(e,()=>({el:y.current}));const b=r,S={...v},E=Ie({ios:d,material:f}),x=He(),w=UM(a,x),m=E(BM({...t,translucent:i},w,n),n);return z.createElement(b,iv({ref:y,className:m.base[u]},S),z.createElement("div",{className:m.content},g,l&&z.createElement("div",{className:m.button},l)))});$M.displayName="Toast";const VM=(t,e,r,n)=>({base:{common:P(Vt("relative",r),"cursor-pointer select-none inline-block align-middle relative duration-300 rounded-full group",n("dark:touch-ripple-white")),ios:"h-8 w-13 p-0.5",material:"w-13 h-8 border-2",notChecked:{ios:e.bgIos,material:P(e.bgMaterial,e.borderMaterial)},checked:{ios:`${e.checkedBgIos}`,material:P(e.checkedBgMaterial,e.checkedBorderMaterial)}},inner:{ios:P("w-full h-full bg-white rounded-full block duration-300 transform",n("dark:bg-opacity-0")),notChecked:{},checked:{ios:"scale-0"}},thumbWrap:{common:"rounded-full absolute duration-300 transform",ios:"w-7 h-7 start-0.5 top-0.5",material:"w-6 h-6 start-0.5 top-0.5",checked:{ios:P("translate-x-5 rtl:!-translate-x-5"),material:P("translate-x-5 rtl:!-translate-x-5")},notChecked:""},thumb:{common:"w-full h-full rounded-full absolute duration-300 transform start-0 top-0",ios:"shadow-ios-toggle",material:"group-active:scale-[1.1]",checked:{ios:P(e.checkedThumbBgIos),material:P(e.checkedThumbBgMaterial)},notChecked:{ios:e.thumbBgIos,material:P("scale-[0.666]",e.thumbBgMaterial)}},input:{common:"hidden"}}),GM=function(t,e){return t===void 0&&(t={}),{bgIos:P("bg-black bg-opacity-10",e("dark:bg-white dark:bg-opacity-20")),checkedBgIos:"bg-primary",thumbBgIos:"bg-white",checkedThumbBgIos:"bg-white",bgMaterial:P("bg-md-light-surface-variant",e("dark:bg-md-dark-surface-variant")),checkedBgMaterial:P("bg-md-light-primary",e("dark:bg-md-dark-primary")),borderMaterial:P("border-md-light-outline",e("dark:border-md-dark-outline")),checkedBorderMaterial:P("border-md-light-primary",e("dark:border-md-dark-primary")),thumbBgMaterial:P("bg-md-light-outline",e("dark:bg-md-dark-outline")),checkedThumbBgMaterial:P("bg-md-light-on-primary",e("dark:bg-md-dark-on-primary")),...t}};function ov(){return ov=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{component:r="label",className:n,colors:a,defaultChecked:i,checked:l,name:u,value:c,disabled:d,readOnly:f,onChange:g,touchRipple:v=!0,ios:y,material:b,children:S,...E}=t,x=I.useRef(null),w=I.useRef(null);I.useImperativeHandle(e,()=>({el:x.current}));const m=r,C={...E},N=kt({ios:y,material:b}),O=Ie({ios:y,material:b}),A=He();ra(w,N==="material"&&v,x);const R=GM(a,A),j=l||i&&!g?"checked":"notChecked",L=O(VM(t,R,n,A),n);return z.createElement(m,ov({ref:x,className:L.base[j]},C),z.createElement("input",{type:"checkbox",name:u,value:c,disabled:d,readOnly:f,checked:l,defaultChecked:i,onChange:g,className:L.input}),z.createElement("span",{className:L.inner[j]}),z.createElement("span",{ref:w,className:L.thumbWrap[j]},z.createElement("span",{className:L.thumb[j]})),S)});WM.displayName="Toggle";var S3={exports:{}},Vh={},Gh={},Je={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof vi<"u"?vi:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.3",isBrowser:r(),isUnminified:/param/.test(function(a){}.toString()),dblClickWindow:400,getAngle(a){return t.Konva.angleDeg?a*e:a},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(a){t.glob.Konva=a}};const n=a=>{t.Konva[a.prototype.getClassName()]=a};t._registerNode=n,t.Konva._injectGlobal(t.Konva)})(Je);var Gt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=Je;class r{constructor(C=[1,0,0,1,0,0]){this.dirty=!1,this.m=C&&C.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(C){C.m[0]=this.m[0],C.m[1]=this.m[1],C.m[2]=this.m[2],C.m[3]=this.m[3],C.m[4]=this.m[4],C.m[5]=this.m[5]}point(C){var N=this.m;return{x:N[0]*C.x+N[2]*C.y+N[4],y:N[1]*C.x+N[3]*C.y+N[5]}}translate(C,N){return this.m[4]+=this.m[0]*C+this.m[2]*N,this.m[5]+=this.m[1]*C+this.m[3]*N,this}scale(C,N){return this.m[0]*=C,this.m[1]*=C,this.m[2]*=N,this.m[3]*=N,this}rotate(C){var N=Math.cos(C),O=Math.sin(C),A=this.m[0]*N+this.m[2]*O,R=this.m[1]*N+this.m[3]*O,j=this.m[0]*-O+this.m[2]*N,L=this.m[1]*-O+this.m[3]*N;return this.m[0]=A,this.m[1]=R,this.m[2]=j,this.m[3]=L,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(C,N){var O=this.m[0]+this.m[2]*N,A=this.m[1]+this.m[3]*N,R=this.m[2]+this.m[0]*C,j=this.m[3]+this.m[1]*C;return this.m[0]=O,this.m[1]=A,this.m[2]=R,this.m[3]=j,this}multiply(C){var N=this.m[0]*C.m[0]+this.m[2]*C.m[1],O=this.m[1]*C.m[0]+this.m[3]*C.m[1],A=this.m[0]*C.m[2]+this.m[2]*C.m[3],R=this.m[1]*C.m[2]+this.m[3]*C.m[3],j=this.m[0]*C.m[4]+this.m[2]*C.m[5]+this.m[4],L=this.m[1]*C.m[4]+this.m[3]*C.m[5]+this.m[5];return this.m[0]=N,this.m[1]=O,this.m[2]=A,this.m[3]=R,this.m[4]=j,this.m[5]=L,this}invert(){var C=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),N=this.m[3]*C,O=-this.m[1]*C,A=-this.m[2]*C,R=this.m[0]*C,j=C*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),L=C*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=N,this.m[1]=O,this.m[2]=A,this.m[3]=R,this.m[4]=j,this.m[5]=L,this}getMatrix(){return this.m}decompose(){var C=this.m[0],N=this.m[1],O=this.m[2],A=this.m[3],R=this.m[4],j=this.m[5],L=C*A-N*O;let U={x:R,y:j,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(C!=0||N!=0){var H=Math.sqrt(C*C+N*N);U.rotation=N>0?Math.acos(C/H):-Math.acos(C/H),U.scaleX=H,U.scaleY=L/H,U.skewX=(C*O+N*A)/L,U.skewY=0}else if(O!=0||A!=0){var q=Math.sqrt(O*O+A*A);U.rotation=Math.PI/2-(A>0?Math.acos(-O/q):-Math.acos(O/q)),U.scaleX=L/q,U.scaleY=q,U.skewX=0,U.skewY=(C*O+N*A)/L}return U.rotation=t.Util._getRotation(U.rotation),U}}t.Transform=r;var n="[object Array]",a="[object Number]",i="[object String]",l="[object Boolean]",u=Math.PI/180,c=180/Math.PI,d="#",f="",g="0",v="Konva warning: ",y="Konva error: ",b="rgb(",S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},E=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,x=[];const w=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};t.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===n},_isNumber(m){return Object.prototype.toString.call(m)===a&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===i},_isBoolean(m){return Object.prototype.toString.call(m)===l},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;var C=m[0];return C==="#"||C==="."||C===C.toUpperCase()},_sign(m){return m===0||m>0?1:-1},requestAnimFrame(m){x.push(m),x.length===1&&w(function(){const C=x;x=[],C.forEach(function(N){N()})})},createCanvasElement(){var m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,C){var N=t.Util.createImageElement();N.onload=function(){C(N)},N.src=m},_rgbToHex(m,C,N){return((1<<24)+(m<<16)+(C<<8)+N).toString(16).slice(1)},_hexToRgb(m){m=m.replace(d,f);var C=parseInt(m,16);return{r:C>>16&255,g:C>>8&255,b:C&255}},getRandomColor(){for(var m=(Math.random()*16777215<<0).toString(16);m.length<6;)m=g+m;return d+m},getRGB(m){var C;return m in S?(C=S[m],{r:C[0],g:C[1],b:C[2]}):m[0]===d?this._hexToRgb(m.substring(1)):m.substr(0,4)===b?(C=E.exec(m.replace(/ /g,"")),{r:parseInt(C[1],10),g:parseInt(C[2],10),b:parseInt(C[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",t.Util._namedColorToRBA(m)||t.Util._hex3ColorToRGBA(m)||t.Util._hex4ColorToRGBA(m)||t.Util._hex6ColorToRGBA(m)||t.Util._hex8ColorToRGBA(m)||t.Util._rgbColorToRGBA(m)||t.Util._rgbaColorToRGBA(m)||t.Util._hslColorToRGBA(m)},_namedColorToRBA(m){var C=S[m.toLowerCase()];return C?{r:C[0],g:C[1],b:C[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];var C=m.split(/ *, */).map(Number);return{r:C[0],g:C[1],b:C[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];var C=m.split(/ *, */).map((N,O)=>N.slice(-1)==="%"?O===3?parseInt(N)/100:parseInt(N)/100*255:Number(N));return{r:C[0],g:C[1],b:C[2],a:C[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[C,...N]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),O=Number(N[0])/360,A=Number(N[1])/100,R=Number(N[2])/100;let j,L,U;if(A===0)return U=R*255,{r:Math.round(U),g:Math.round(U),b:Math.round(U),a:1};R<.5?j=R*(1+A):j=R+A-R*A;const H=2*R-j,q=[0,0,0];for(let ne=0;ne<3;ne++)L=O+1/3*-(ne-1),L<0&&L++,L>1&&L--,6*L<1?U=H+(j-H)*6*L:2*L<1?U=j:3*L<2?U=H+(j-H)*(2/3-L)*6:U=H,q[ne]=U*255;return{r:Math.round(q[0]),g:Math.round(q[1]),b:Math.round(q[2]),a:1}}},haveIntersection(m,C){return!(C.x>m.x+m.width||C.x+C.widthm.y+m.height||C.y+C.height1?(j=N,L=O,U=(N-A)*(N-A)+(O-R)*(O-R)):(j=m+q*(N-m),L=C+q*(O-C),U=(j-A)*(j-A)+(L-R)*(L-R))}return[j,L,U]},_getProjectionToLine(m,C,N){var O=t.Util.cloneObject(m),A=Number.MAX_VALUE;return C.forEach(function(R,j){if(!(!N&&j===C.length-1)){var L=C[(j+1)%C.length],U=t.Util._getProjectionToSegment(R.x,R.y,L.x,L.y,m.x,m.y),H=U[0],q=U[1],ne=U[2];neC.length){var j=C;C=m,m=j}for(O=0;O{C.width=0,C.height=0})},drawRoundedRectPath(m,C,N,O){let A=0,R=0,j=0,L=0;typeof O=="number"?A=R=j=L=Math.min(O,C/2,N/2):(A=Math.min(O[0]||0,C/2,N/2),R=Math.min(O[1]||0,C/2,N/2),L=Math.min(O[2]||0,C/2,N/2),j=Math.min(O[3]||0,C/2,N/2)),m.moveTo(A,0),m.lineTo(C-R,0),m.arc(C-R,R,R,Math.PI*3/2,0,!1),m.lineTo(C,N-L),m.arc(C-L,N-L,L,0,Math.PI/2,!1),m.lineTo(j,N),m.arc(j,N-j,j,Math.PI/2,Math.PI,!1),m.lineTo(0,A),m.arc(A,A,A,Math.PI,Math.PI*3/2,!1)}}})(Gt);var jt={},Ze={},_e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.getComponentValidator=_e.getBooleanValidator=_e.getNumberArrayValidator=_e.getFunctionValidator=_e.getStringOrGradientValidator=_e.getStringValidator=_e.getNumberOrAutoValidator=_e.getNumberOrArrayOfNumbersValidator=_e.getNumberValidator=_e.alphaComponent=_e.RGBComponent=void 0;const Ja=Je,Xt=Gt;function Za(t){return Xt.Util._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||Xt.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function qM(t){return t>255?255:t<0?0:Math.round(t)}_e.RGBComponent=qM;function HM(t){return t>1?1:t<1e-4?1e-4:t}_e.alphaComponent=HM;function KM(){if(Ja.Konva.isUnminified)return function(t,e){return Xt.Util._isNumber(t)||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}_e.getNumberValidator=KM;function YM(t){if(Ja.Konva.isUnminified)return function(e,r){let n=Xt.Util._isNumber(e),a=Xt.Util._isArray(e)&&e.length==t;return!n&&!a&&Xt.Util.warn(Za(e)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+t+")"),e}}_e.getNumberOrArrayOfNumbersValidator=YM;function QM(){if(Ja.Konva.isUnminified)return function(t,e){var r=Xt.Util._isNumber(t),n=t==="auto";return r||n||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}_e.getNumberOrAutoValidator=QM;function XM(){if(Ja.Konva.isUnminified)return function(t,e){return Xt.Util._isString(t)||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}_e.getStringValidator=XM;function JM(){if(Ja.Konva.isUnminified)return function(t,e){const r=Xt.Util._isString(t),n=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return r||n||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}_e.getStringOrGradientValidator=JM;function ZM(){if(Ja.Konva.isUnminified)return function(t,e){return Xt.Util._isFunction(t)||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}_e.getFunctionValidator=ZM;function eI(){if(Ja.Konva.isUnminified)return function(t,e){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&t instanceof r||(Xt.Util._isArray(t)?t.forEach(function(n){Xt.Util._isNumber(n)||Xt.Util.warn('"'+e+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}_e.getNumberArrayValidator=eI;function tI(){if(Ja.Konva.isUnminified)return function(t,e){var r=t===!0||t===!1;return r||Xt.Util.warn(Za(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}_e.getBooleanValidator=tI;function rI(t){if(Ja.Konva.isUnminified)return function(e,r){return e==null||Xt.Util.isObject(e)||Xt.Util.warn(Za(e)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+t),e}}_e.getComponentValidator=rI,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=Gt,r=_e;var n="get",a="set";t.Factory={addGetterSetter(i,l,u,c,d){t.Factory.addGetter(i,l,u),t.Factory.addSetter(i,l,c,d),t.Factory.addOverloadedGetterSetter(i,l)},addGetter(i,l,u){var c=n+e.Util._capitalize(l);i.prototype[c]=i.prototype[c]||function(){var d=this.attrs[l];return d===void 0?u:d}},addSetter(i,l,u,c){var d=a+e.Util._capitalize(l);i.prototype[d]||t.Factory.overWriteSetter(i,l,u,c)},overWriteSetter(i,l,u,c){var d=a+e.Util._capitalize(l);i.prototype[d]=function(f){return u&&f!==void 0&&f!==null&&(f=u.call(this,f,l)),this._setAttr(l,f),c&&c.call(this),this}},addComponentsGetterSetter(i,l,u,c,d){var f=u.length,g=e.Util._capitalize,v=n+g(l),y=a+g(l),b,S;i.prototype[v]=function(){var x={};for(b=0;b{this._setAttr(l+g(C),void 0)}),this._fireChangeEvent(l,w,x),d&&d.call(this),this},t.Factory.addOverloadedGetterSetter(i,l)},addOverloadedGetterSetter(i,l){var u=e.Util._capitalize(l),c=a+u,d=n+u;i.prototype[l]=function(){return arguments.length?(this[c](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,l,u,c){e.Util.error("Adding deprecated "+l);var d=n+e.Util._capitalize(l),f=l+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){e.Util.error(f);var g=this.attrs[l];return g===void 0?u:g},t.Factory.addSetter(i,l,c,function(){e.Util.error(f)}),t.Factory.addOverloadedGetterSetter(i,l)},backCompat(i,l){e.Util.each(l,function(u,c){var d=i.prototype[c],f=n+e.Util._capitalize(u),g=a+e.Util._capitalize(u);function v(){d.apply(this,arguments),e.Util.error('"'+u+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}i.prototype[u]=v,i.prototype[f]=v,i.prototype[g]=v})},afterSetFilter(){this._filterUpToDate=!1}}}(Ze);var na={},ei={};Object.defineProperty(ei,"__esModule",{value:!0}),ei.HitContext=ei.SceneContext=ei.Context=void 0;const C3=Gt,nI=Je;function aI(t){var e=[],r=t.length,n=C3.Util,a,i;for(a=0;atypeof f=="number"?Math.floor(f):f)),i+=iI+d.join(_3)+oI)):(i+=u.property,e||(i+=dI+u.val)),i+=uI;return i}clearTrace(){this.traceArr=[]}_trace(e){var r=this.traceArr,n;r.push(e),n=r.length,n>=fI&&r.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var r=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(e){const r=e.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(e){var r=e.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(e){const r=e.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(e,r){this._context[e]=r}arc(e,r,n,a,i,l){this._context.arc(e,r,n,a,i,l)}arcTo(e,r,n,a,i){this._context.arcTo(e,r,n,a,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,r,n,a,i,l){this._context.bezierCurveTo(e,r,n,a,i,l)}clearRect(e,r,n,a){this._context.clearRect(e,r,n,a)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,r){var n=arguments;if(n.length===2)return this._context.createImageData(e,r);if(n.length===1)return this._context.createImageData(e)}createLinearGradient(e,r,n,a){return this._context.createLinearGradient(e,r,n,a)}createPattern(e,r){return this._context.createPattern(e,r)}createRadialGradient(e,r,n,a,i,l){return this._context.createRadialGradient(e,r,n,a,i,l)}drawImage(e,r,n,a,i,l,u,c,d){var f=arguments,g=this._context;f.length===3?g.drawImage(e,r,n):f.length===5?g.drawImage(e,r,n,a,i):f.length===9&&g.drawImage(e,r,n,a,i,l,u,c,d)}ellipse(e,r,n,a,i,l,u,c){this._context.ellipse(e,r,n,a,i,l,u,c)}isPointInPath(e,r,n,a){return n?this._context.isPointInPath(n,e,r,a):this._context.isPointInPath(e,r,a)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,r,n,a){this._context.fillRect(e,r,n,a)}strokeRect(e,r,n,a){this._context.strokeRect(e,r,n,a)}fillText(e,r,n,a){a?this._context.fillText(e,r,n,a):this._context.fillText(e,r,n)}measureText(e){return this._context.measureText(e)}getImageData(e,r,n,a){return this._context.getImageData(e,r,n,a)}lineTo(e,r){this._context.lineTo(e,r)}moveTo(e,r){this._context.moveTo(e,r)}rect(e,r,n,a){this._context.rect(e,r,n,a)}roundRect(e,r,n,a,i){this._context.roundRect(e,r,n,a,i)}putImageData(e,r,n){this._context.putImageData(e,r,n)}quadraticCurveTo(e,r,n,a){this._context.quadraticCurveTo(e,r,n,a)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,r){this._context.scale(e,r)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,r,n,a,i,l){this._context.setTransform(e,r,n,a,i,l)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,r,n,a){this._context.strokeText(e,r,n,a)}transform(e,r,n,a,i,l){this._context.transform(e,r,n,a,i,l)}translate(e,r){this._context.translate(e,r)}_enableTrace(){var e=this,r=E3.length,n=this.setAttr,a,i,l=function(u){var c=e[u],d;e[u]=function(){return i=aI(Array.prototype.slice.call(arguments,0)),d=c.apply(e,arguments),e._trace({method:u,args:i}),d}};for(a=0;a{a.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){var n;return t.DD._dragElements.forEach(a=>{n=a.node}),n},_dragElements:new Map,_drag(n){const a=[];t.DD._dragElements.forEach((i,l)=>{const{node:u}=i,c=u.getStage();c.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=c._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){var f=u.dragDistance(),g=Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y));if(g{i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const a=[];t.DD._dragElements.forEach(i=>{const{node:l}=i,u=l.getStage();if(n&&u.setPointersPositions(n),!u._changedPointerPositions.find(d=>d.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,i.dragStatus="stopped");const c=i.node.getLayer()||i.node instanceof e.Konva.Stage&&i.node;c&&a.indexOf(c)===-1&&a.push(c)}),a.forEach(i=>{i.draw()})},_endDragAfter(n){t.DD._dragElements.forEach((a,i)=>{a.dragStatus==="stopped"&&a.node.fire("dragend",{type:"dragend",target:a.node,evt:n},!0),a.dragStatus!=="dragging"&&t.DD._dragElements.delete(i)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1))})(Yh),Object.defineProperty(jt,"__esModule",{value:!0}),jt.Node=void 0;const nt=Gt,Uu=Ze,$u=na,To=Je,Bn=Yh,rr=_e;var Qh="absoluteOpacity",Xh="allEventListeners",ti="absoluteTransform",I3="absoluteScale",Lo="canvas",wI="Change",xI="children",SI="konva",sv="listening",N3="mouseenter",O3="mouseleave",R3="set",T3="Shape",Jh=" ",L3="stage",Gi="transform",CI="Stage",lv="visible",_I=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Jh);let EI=1;class Ue{constructor(e){this._id=EI++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Gi||e===ti)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,r){var n=this._cache.get(e),a=e===Gi||e===ti,i=n===void 0||a&&n.dirty===!0;return i&&(n=r.call(this),this._cache.set(e,n)),n}_calculate(e,r,n){if(!this._attachedDepsListeners.get(e)){const a=r.map(i=>i+"Change.konva").join(Jh);this.on(a,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(Lo)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===ti&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Lo)){const{scene:e,filter:r,hit:n}=this._cache.get(Lo);nt.Util.releaseCanvas(e,r,n),this._cache.delete(Lo)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var r=e||{},n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var a=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),l=r.pixelRatio,u=r.x===void 0?Math.floor(n.x):r.x,c=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,f=r.drawBorder||!1,g=r.hitCanvasPixelRatio||1;if(!a||!i){nt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const v=Math.abs(Math.round(n.x)-u)>.5?1:0,y=Math.abs(Math.round(n.y)-c)>.5?1:0;a+=d*2+v,i+=d*2+y,u-=d,c-=d;var b=new $u.SceneCanvas({pixelRatio:l,width:a,height:i}),S=new $u.SceneCanvas({pixelRatio:l,width:0,height:0,willReadFrequently:!0}),E=new $u.HitCanvas({pixelRatio:g,width:a,height:i}),x=b.getContext(),w=E.getContext();return E.isCache=!0,b.isCache=!0,this._cache.delete(Lo),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(b.getContext()._context.imageSmoothingEnabled=!1,S.getContext()._context.imageSmoothingEnabled=!1),x.save(),w.save(),x.translate(-u,-c),w.translate(-u,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Qh),this._clearSelfAndDescendantCache(I3),this.drawScene(b,this),this.drawHit(E,this),this._isUnderCache=!1,x.restore(),w.restore(),f&&(x.save(),x.beginPath(),x.rect(0,0,a,i),x.closePath(),x.setAttr("strokeStyle","red"),x.setAttr("lineWidth",5),x.stroke(),x.restore()),this._cache.set(Lo,{scene:b,filter:S,hit:E,x:u,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Lo)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,r){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=1/0,i=1/0,l=-1/0,u=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(d){var f=c.point(d);a===void 0&&(a=l=f.x,i=u=f.y),a=Math.min(a,f.x),i=Math.min(i,f.y),l=Math.max(l,f.x),u=Math.max(u,f.y)}),{x:a,y:i,width:l-a,height:u-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();e.translate(r.x,r.y);var n=this._getCachedSceneCanvas(),a=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/a,n.height/a),e.restore()}_drawCachedHitCanvas(e){var r=this._getCanvasCache(),n=r.hit;e.save(),e.translate(r.x,r.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e=this.filters(),r=this._getCanvasCache(),n=r.scene,a=r.filter,i=a.getContext(),l,u,c,d;if(e){if(!this._filterUpToDate){var f=n.pixelRatio;a.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(l=e.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/f,n.getHeight()/f),u=i.getImageData(0,0,a.getWidth(),a.getHeight()),c=0;c{var r,n;if(!e)return this;for(r in e)r!==xI&&(n=R3+nt.Util._capitalize(r),nt.Util._isFunction(this[n])?this[n](e[r]):this._setAttr(r,e[r]))}),this}isListening(){return this._getCache(sv,this._isListening)}_isListening(e){if(!this.listening())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isListening(e):!0}isVisible(){return this._getCache(lv,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isVisible(e):!0}shouldDrawHit(e,r=!1){if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),a=!1;Bn.DD._dragElements.forEach(l=>{l.dragStatus==="dragging"&&(l.node.nodeType==="Stage"||l.node.getLayer()===n)&&(a=!0)});var i=!r&&!To.Konva.hitOnDragEnabled&&a;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e=this.getDepth(),r=this,n=0,a,i,l,u;function c(f){for(a=[],i=f.length,l=0;l0&&a[0].getDepth()<=e&&c(a)}const d=this.getStage();return r.nodeType!==CI&&d&&c(d.getChildren()),n}getDepth(){for(var e=0,r=this.parent;r;)e++,r=r.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Gi),this._clearSelfAndDescendantCache(ti)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;var r=e.getPointerPosition();if(!r)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(e){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!e&&(e=!0);var a=this.getAbsoluteTransform(e).getMatrix(),i=new nt.Transform,l=this.offset();return i.m=a.slice(),i.translate(l.x,l.y),i.getTranslation()}setAbsolutePosition(e){const{x:r,y:n,...a}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Gi);var i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(e.x,e.y),e={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(a),this.setPosition({x:e.x,y:e.y}),this._clearCache(Gi),this._clearSelfAndDescendantCache(ti),this}_setTransform(e){var r;for(r in e)this.attrs[r]=e[r]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var r=e.x,n=e.y,a=this.x(),i=this.y();return r!==void 0&&(a+=r),n!==void 0&&(i+=n),this.setPosition({x:a,y:i}),this}_eachAncestorReverse(e,r){var n=[],a=this.getParent(),i,l;if(!(r&&r._id===this._id)){for(n.unshift(this);a&&(!r||a._id!==r._id);)n.unshift(a),a=a.parent;for(i=n.length,l=0;l0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return nt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return nt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&nt.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Qh,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),r=this.getParent();return r&&!r._isUnderCache&&(e*=r.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e=this.getAttrs(),r,n,a,i,l;const u={attrs:{},className:this.getClassName()};for(r in e)n=e[r],l=nt.Util.isObject(n)&&!nt.Util._isPlainObject(n)&&!nt.Util._isArray(n),!l&&(a=typeof this[r]=="function"&&this[r],delete e[r],i=a?a.call(this):null,e[r]=n,i!==n&&(u.attrs[r]=n));return nt.Util._prepareToStringify(u)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,r,n){var a=[];r&&this._isMatch(e)&&a.push(this);for(var i=this.parent;i;){if(i===n)return a;i._isMatch(e)&&a.push(i),i=i.parent}return a}isAncestorOf(e){return!1}findAncestor(e,r,n){return this.findAncestors(e,r,n)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);var r=e.replace(/ /g,"").split(","),n=r.length,a,i;for(a=0;a{try{const a=e?.callback;a&&delete e.callback,nt.Util._urlToImage(this.toDataURL(e),function(i){r(i),a?.(i)})}catch(a){n(a)}})}toBlob(e){return new Promise((r,n)=>{try{const a=e?.callback;a&&delete e.callback,this.toCanvas(e).toBlob(i=>{r(i),a?.(i)},e?.mimeType,e?.quality)}catch(a){n(a)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():To.Konva.dragDistance}_off(e,r,n){var a=this.eventListeners[e],i,l,u;for(i=0;i=0;if(n&&!this.isDragging()){var a=!1;Bn.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(a=!0)}),a||this._createDragElement(e)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var e=this.getStage();if(!e)return;const r=Bn.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",a=r&&r.dragStatus==="ready";n?this.stopDrag():a&&Bn.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-e.x,y:-e.y,width:r.width()+2*e.x,height:r.height()+2*e.y};return nt.Util.haveIntersection(n,this.getClientRect())}static create(e,r){return nt.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,r)}static _createNode(e,r){var n=Ue.prototype.getClassName.call(e),a=e.children,i,l,u;r&&(e.attrs.container=r),To.Konva[n]||(nt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=To.Konva[n];if(i=new c(e.attrs),a)for(l=a.length,u=0;u0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(var r=0;r0?r[0]:void 0}_generalFind(e,r){var n=[];return this._descendants(a=>{const i=a._isMatch(e);return i&&n.push(a),!!(i&&r)}),n}_descendants(e){let r=!1;const n=this.getChildren();for(const a of n)if(r=e(a),r||a.hasChildren()&&(r=a._descendants(e),r))return!0;return!1}toObject(){var e=uv.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(r=>{e.children.push(r.toObject())}),e}isAncestorOf(e){for(var r=e.getParent();r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(e){var r=uv.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(e){var r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(e)&&r.push(n)}),r}_clearSelfAndDescendantCache(e){var r;super._clearSelfAndDescendantCache(e),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(e,r,n){var a=this.getLayer(),i=e||a&&a.getCanvas(),l=i&&i.getContext(),u=this._getCanvasCache(),c=u&&u.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(c){l.save();var f=this.getAbsoluteTransform(r).getMatrix();l.transform(f[0],f[1],f[2],f[3],f[4],f[5]),this._drawCachedSceneCanvas(l),l.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(e,r){if(!this.shouldDrawHit(r))return this;var n=this.getLayer(),a=e||n&&n.hitCanvas,i=a&&a.getContext(),l=this._getCanvasCache(),u=l&&l.hit;if(u){i.save();var c=this.getAbsoluteTransform(r).getMatrix();i.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",a,r);return this}_drawChildren(e,r,n,a){var i,l=r&&r.getContext(),u=this.clipWidth(),c=this.clipHeight(),d=this.clipFunc(),f=u&&c||d;const g=n===this;if(f){l.save();var v=this.getAbsoluteTransform(n),y=v.getMatrix();l.transform(y[0],y[1],y[2],y[3],y[4],y[5]),l.beginPath();let x;if(d)x=d.call(this,l,this);else{var b=this.clipX(),S=this.clipY();l.rect(b,S,u,c)}l.clip.apply(l,x),y=v.copy().invert().getMatrix(),l.transform(y[0],y[1],y[2],y[3],y[4],y[5])}var E=!g&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";E&&(l.save(),l._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(x){x[e](r,n,a)}),E&&l.restore(),f&&l.restore()}getClientRect(e={}){var r,n=e.skipTransform,a=e.relativeTo,i,l,u,c,d={x:1/0,y:1/0,width:0,height:0},f=this;(r=this.children)===null||r===void 0||r.forEach(function(S){if(S.visible()){var E=S.getClientRect({relativeTo:f,skipShadow:e.skipShadow,skipStroke:e.skipStroke});E.width===0&&E.height===0||(i===void 0?(i=E.x,l=E.y,u=E.x+E.width,c=E.y+E.height):(i=Math.min(i,E.x),l=Math.min(l,E.y),u=Math.max(u,E.x+E.width),c=Math.max(c,E.y+E.height)))}});for(var g=this.find("Shape"),v=!1,y=0;yNe.indexOf("pointer")>=0?"pointer":Ne.indexOf("touch")>=0?"touch":"mouse",he=Ne=>{const $=oe(Ne);if($==="pointer")return a.Konva.pointerEventsEnabled&&Q.pointer;if($==="touch")return Q.touch;if($==="mouse")return Q.mouse};function Ce(Ne={}){return(Ne.clipFunc||Ne.clipWidth||Ne.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ne}const me="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";t.stages=[];class Me extends n.Container{constructor($){super(Ce($)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{Ce(this.attrs)}),this._checkVisibility()}_validateAdd($){const re=$.getType()==="Layer",le=$.getType()==="FastLayer";re||le||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const $=this.visible()?"":"none";this.content.style.display=$}setContainer($){if(typeof $===f){if($.charAt(0)==="."){var re=$.slice(1);$=document.getElementsByClassName(re)[0]}else{var le;$.charAt(0)!=="#"?le=$:le=$.slice(1),$=document.getElementById(le)}if(!$)throw"Can not find container in document with id "+le}return this._setAttr("container",$),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),$.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var $=this.children,re=$.length,le;for(le=0;le-1&&t.stages.splice(re,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const $=this._pointerPositions[0]||this._changedPointerPositions[0];return $?{x:$.x,y:$.y}:(e.Util.warn(me),null)}_getPointerById($){return this._pointerPositions.find(re=>re.id===$)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas($){$=$||{},$.x=$.x||0,$.y=$.y||0,$.width=$.width||this.width(),$.height=$.height||this.height();var re=new i.SceneCanvas({width:$.width,height:$.height,pixelRatio:$.pixelRatio||1}),le=re.getContext()._context,Se=this.children;return($.x||$.y)&&le.translate(-1*$.x,-1*$.y),Se.forEach(function(Oe){if(Oe.isVisible()){var Fe=Oe._toKonvaCanvas($);le.drawImage(Fe._canvas,$.x,$.y,Fe.getWidth()/Fe.getPixelRatio(),Fe.getHeight()/Fe.getPixelRatio())}}),re}getIntersection($){if(!$)return null;var re=this.children,le=re.length,Se=le-1,Oe;for(Oe=Se;Oe>=0;Oe--){const Fe=re[Oe].getIntersection($);if(Fe)return Fe}return null}_resizeDOM(){var $=this.width(),re=this.height();this.content&&(this.content.style.width=$+g,this.content.style.height=re+g),this.bufferCanvas.setSize($,re),this.bufferHitCanvas.setSize($,re),this.children.forEach(le=>{le.setSize({width:$,height:re}),le.draw()})}add($,...re){if(arguments.length>1){for(var le=0;leD&&e.Util.warn("The stage has "+Se+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),$.setSize({width:this.width(),height:this.height()}),$.draw(),a.Konva.isBrowser&&this.content.appendChild($.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture($){return c.hasPointerCapture($,this)}setPointerCapture($){c.setPointerCapture($,this)}releaseCapture($){c.releaseCapture($,this)}getLayers(){return this.children}_bindContentEvents(){a.Konva.isBrowser&&Z.forEach(([$,re])=>{this.content.addEventListener($,le=>{this[re](le)},{passive:!1})})}_pointerenter($){this.setPointersPositions($);const re=he($.type);re&&this._fire(re.pointerenter,{evt:$,target:this,currentTarget:this})}_pointerover($){this.setPointersPositions($);const re=he($.type);re&&this._fire(re.pointerover,{evt:$,target:this,currentTarget:this})}_getTargetShape($){let re=this[$+"targetShape"];return re&&!re.getStage()&&(re=null),re}_pointerleave($){const re=he($.type),le=oe($.type);if(re){this.setPointersPositions($);var Se=this._getTargetShape(le),Oe=!l.DD.isDragging||a.Konva.hitOnDragEnabled;Se&&Oe?(Se._fireAndBubble(re.pointerout,{evt:$}),Se._fireAndBubble(re.pointerleave,{evt:$}),this._fire(re.pointerleave,{evt:$,target:this,currentTarget:this}),this[le+"targetShape"]=null):Oe&&(this._fire(re.pointerleave,{evt:$,target:this,currentTarget:this}),this._fire(re.pointerout,{evt:$,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown($){const re=he($.type),le=oe($.type);if(re){this.setPointersPositions($);var Se=!1;this._changedPointerPositions.forEach(Oe=>{var Fe=this.getIntersection(Oe);if(l.DD.justDragged=!1,a.Konva["_"+le+"ListenClick"]=!0,!Fe||!Fe.isListening())return;a.Konva.capturePointerEventsEnabled&&Fe.setPointerCapture(Oe.id),this[le+"ClickStartShape"]=Fe,Fe._fireAndBubble(re.pointerdown,{evt:$,pointerId:Oe.id}),Se=!0;const Ye=$.type.indexOf("touch")>=0;Fe.preventDefault()&&$.cancelable&&Ye&&$.preventDefault()}),Se||this._fire(re.pointerdown,{evt:$,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove($){const re=he($.type),le=oe($.type);if(!re)return;l.DD.isDragging&&l.DD.node.preventDefault()&&$.cancelable&&$.preventDefault(),this.setPointersPositions($);var Se=!l.DD.isDragging||a.Konva.hitOnDragEnabled;if(!Se)return;var Oe={};let Fe=!1;var Ye=this._getTargetShape(le);this._changedPointerPositions.forEach(it=>{const ze=c.getCapturedShape(it.id)||this.getIntersection(it),Wt=it.id,dt={evt:$,pointerId:Wt};var ht=Ye!==ze;if(ht&&Ye&&(Ye._fireAndBubble(re.pointerout,{...dt},ze),Ye._fireAndBubble(re.pointerleave,{...dt},ze)),ze){if(Oe[ze._id])return;Oe[ze._id]=!0}ze&&ze.isListening()?(Fe=!0,ht&&(ze._fireAndBubble(re.pointerover,{...dt},Ye),ze._fireAndBubble(re.pointerenter,{...dt},Ye),this[le+"targetShape"]=ze),ze._fireAndBubble(re.pointermove,{...dt})):Ye&&(this._fire(re.pointerover,{evt:$,target:this,currentTarget:this,pointerId:Wt}),this[le+"targetShape"]=null)}),Fe||this._fire(re.pointermove,{evt:$,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup($){const re=he($.type),le=oe($.type);if(!re)return;this.setPointersPositions($);const Se=this[le+"ClickStartShape"],Oe=this[le+"ClickEndShape"];var Fe={};let Ye=!1;this._changedPointerPositions.forEach(it=>{const ze=c.getCapturedShape(it.id)||this.getIntersection(it);if(ze){if(ze.releaseCapture(it.id),Fe[ze._id])return;Fe[ze._id]=!0}const Wt=it.id,dt={evt:$,pointerId:Wt};let ht=!1;a.Konva["_"+le+"InDblClickWindow"]?(ht=!0,clearTimeout(this[le+"DblTimeout"])):l.DD.justDragged||(a.Konva["_"+le+"InDblClickWindow"]=!0,clearTimeout(this[le+"DblTimeout"])),this[le+"DblTimeout"]=setTimeout(function(){a.Konva["_"+le+"InDblClickWindow"]=!1},a.Konva.dblClickWindow),ze&&ze.isListening()?(Ye=!0,this[le+"ClickEndShape"]=ze,ze._fireAndBubble(re.pointerup,{...dt}),a.Konva["_"+le+"ListenClick"]&&Se&&Se===ze&&(ze._fireAndBubble(re.pointerclick,{...dt}),ht&&Oe&&Oe===ze&&ze._fireAndBubble(re.pointerdblclick,{...dt}))):(this[le+"ClickEndShape"]=null,a.Konva["_"+le+"ListenClick"]&&this._fire(re.pointerclick,{evt:$,target:this,currentTarget:this,pointerId:Wt}),ht&&this._fire(re.pointerdblclick,{evt:$,target:this,currentTarget:this,pointerId:Wt}))}),Ye||this._fire(re.pointerup,{evt:$,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a.Konva["_"+le+"ListenClick"]=!1,$.cancelable&&le!=="touch"&&$.preventDefault()}_contextmenu($){this.setPointersPositions($);var re=this.getIntersection(this.getPointerPosition());re&&re.isListening()?re._fireAndBubble(H,{evt:$}):this._fire(H,{evt:$,target:this,currentTarget:this})}_wheel($){this.setPointersPositions($);var re=this.getIntersection(this.getPointerPosition());re&&re.isListening()?re._fireAndBubble(K,{evt:$}):this._fire(K,{evt:$,target:this,currentTarget:this})}_pointercancel($){this.setPointersPositions($);const re=c.getCapturedShape($.pointerId)||this.getIntersection(this.getPointerPosition());re&&re._fireAndBubble(N,c.createEvent($)),c.releaseCapture($.pointerId)}_lostpointercapture($){c.releaseCapture($.pointerId)}setPointersPositions($){var re=this._getContentPosition(),le=null,Se=null;$=$||window.event,$.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call($.touches,Oe=>{this._pointerPositions.push({id:Oe.identifier,x:(Oe.clientX-re.left)/re.scaleX,y:(Oe.clientY-re.top)/re.scaleY})}),Array.prototype.forEach.call($.changedTouches||$.touches,Oe=>{this._changedPointerPositions.push({id:Oe.identifier,x:(Oe.clientX-re.left)/re.scaleX,y:(Oe.clientY-re.top)/re.scaleY})})):(le=($.clientX-re.left)/re.scaleX,Se=($.clientY-re.top)/re.scaleY,this.pointerPos={x:le,y:Se},this._pointerPositions=[{x:le,y:Se,id:e.Util._getFirstPointerId($)}],this._changedPointerPositions=[{x:le,y:Se,id:e.Util._getFirstPointerId($)}])}_setPointerPosition($){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions($)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var $=this.content.getBoundingClientRect();return{top:$.top,left:$.left,scaleX:$.width/this.content.clientWidth||1,scaleY:$.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!a.Konva.isBrowser){var $=this.container();if(!$)throw"Stage has no container. A container is required.";$.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),$.appendChild(this.content),this._resizeDOM()}}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function($){$.batchDraw()}),this}}t.Stage=Me,Me.prototype.nodeType=d,(0,u._registerNode)(Me),r.Factory.addGetterSetter(Me,"container")}(F3);var Gu={},hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=Je,r=Gt,n=Ze,a=jt,i=_e,l=Je,u=wn;var c="hasShadow",d="shadowRGBA",f="patternImage",g="linearGradient",v="radialGradient";let y;function b(){return y||(y=r.Util.createCanvasElement().getContext("2d"),y)}t.shapes={};function S(j){const L=this.attrs.fillRule;L?j.fill(L):j.fill()}function E(j){j.stroke()}function x(j){j.fill()}function w(j){j.stroke()}function m(){this._clearCache(c)}function C(){this._clearCache(d)}function N(){this._clearCache(f)}function O(){this._clearCache(g)}function A(){this._clearCache(v)}class R extends a.Node{constructor(L){super(L);let U;for(;U=r.Util.getRandomColor(),!(U&&!(U in t.shapes)););this.colorKey=U,t.shapes[U]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(f,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var L=b();const U=L.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(U&&U.setTransform){const H=new r.Transform;H.translate(this.fillPatternX(),this.fillPatternY()),H.rotate(e.Konva.getAngle(this.fillPatternRotation())),H.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),H.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const q=H.getMatrix(),ne=typeof DOMMatrix>"u"?{a:q[0],b:q[1],c:q[2],d:q[3],e:q[4],f:q[5]}:new DOMMatrix(q);U.setTransform(ne)}return U}}_getLinearGradient(){return this._getCache(g,this.__getLinearGradient)}__getLinearGradient(){var L=this.fillLinearGradientColorStops();if(L){for(var U=b(),H=this.fillLinearGradientStartPoint(),q=this.fillLinearGradientEndPoint(),ne=U.createLinearGradient(H.x,H.y,q.x,q.y),ie=0;iethis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const L=this.hitStrokeWidth();return L==="auto"?this.hasStroke():this.strokeEnabled()&&!!L}intersects(L){var U=this.getStage();if(!U)return!1;const H=U.bufferHitCanvas;return H.getContext().clear(),this.drawHit(H,void 0,!0),H.context.getImageData(Math.round(L.x),Math.round(L.y),1,1).data[3]>0}destroy(){return a.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(L){var U;if(!(!((U=this.attrs.perfectDrawEnabled)!==null&&U!==void 0)||U))return!1;const H=L||this.hasFill(),q=this.hasStroke(),ne=this.getAbsoluteOpacity()!==1;if(H&&q&&ne)return!0;const ie=this.hasShadow(),se=this.shadowForStrokeEnabled();return!!(H&&q&&ie&&se)}setStrokeHitEnabled(L){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),L?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var L=this.size();return{x:this._centroid?-L.width/2:0,y:this._centroid?-L.height/2:0,width:L.width,height:L.height}}getClientRect(L={}){const U=L.skipTransform,H=L.relativeTo,q=this.getSelfRect(),ne=!L.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,ie=q.width+ne,se=q.height+ne,K=!L.skipShadow&&this.hasShadow(),D=K?this.shadowOffsetX():0,Z=K?this.shadowOffsetY():0,Q=ie+Math.abs(D),oe=se+Math.abs(Z),he=K&&this.shadowBlur()||0,Ce=Q+he*2,me=oe+he*2,Me={width:Ce,height:me,x:-(ne/2+he)+Math.min(D,0)+q.x,y:-(ne/2+he)+Math.min(Z,0)+q.y};return U?Me:this._transformedRect(Me,H)}drawScene(L,U,H){var q=this.getLayer(),ne=L||q.getCanvas(),ie=ne.getContext(),se=this._getCanvasCache(),K=this.getSceneFunc(),D=this.hasShadow(),Z,Q,oe=ne.isCache,he=U===this;if(!this.isVisible()&&!he)return this;if(se){ie.save();var Ce=this.getAbsoluteTransform(U).getMatrix();return ie.transform(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),this._drawCachedSceneCanvas(ie),ie.restore(),this}if(!K)return this;if(ie.save(),this._useBufferCanvas()&&!oe){Z=this.getStage();const Ne=H||Z.bufferCanvas;Q=Ne.getContext(),Q.clear(),Q.save(),Q._applyLineJoin(this);var me=this.getAbsoluteTransform(U).getMatrix();Q.transform(me[0],me[1],me[2],me[3],me[4],me[5]),K.call(this,Q,this),Q.restore();var Me=Ne.pixelRatio;D&&ie._applyShadow(this),ie._applyOpacity(this),ie._applyGlobalCompositeOperation(this),ie.drawImage(Ne._canvas,0,0,Ne.width/Me,Ne.height/Me)}else{if(ie._applyLineJoin(this),!he){var me=this.getAbsoluteTransform(U).getMatrix();ie.transform(me[0],me[1],me[2],me[3],me[4],me[5]),ie._applyOpacity(this),ie._applyGlobalCompositeOperation(this)}D&&ie._applyShadow(this),K.call(this,ie,this)}return ie.restore(),this}drawHit(L,U,H=!1){if(!this.shouldDrawHit(U,H))return this;var q=this.getLayer(),ne=L||q.hitCanvas,ie=ne&&ne.getContext(),se=this.hitFunc()||this.sceneFunc(),K=this._getCanvasCache(),D=K&&K.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),D){ie.save();var Z=this.getAbsoluteTransform(U).getMatrix();return ie.transform(Z[0],Z[1],Z[2],Z[3],Z[4],Z[5]),this._drawCachedHitCanvas(ie),ie.restore(),this}if(!se)return this;if(ie.save(),ie._applyLineJoin(this),this!==U){var Q=this.getAbsoluteTransform(U).getMatrix();ie.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5])}return se.call(this,ie,this),ie.restore(),this}drawHitFromCache(L=0){var U=this._getCanvasCache(),H=this._getCachedSceneCanvas(),q=U.hit,ne=q.getContext(),ie=q.getWidth(),se=q.getHeight(),K,D,Z,Q,oe,he;ne.clear(),ne.drawImage(H._canvas,0,0,ie,se);try{for(K=ne.getImageData(0,0,ie,se),D=K.data,Z=D.length,Q=r.Util._hexToRgb(this.colorKey),oe=0;oeL?(D[oe]=Q.r,D[oe+1]=Q.g,D[oe+2]=Q.b,D[oe+3]=255):D[oe+3]=0;ne.putImageData(K,0,0)}catch(Ce){r.Util.error("Unable to draw hit graph from cached scene canvas. "+Ce.message)}return this}hasPointerCapture(L){return u.hasPointerCapture(L,this)}setPointerCapture(L){u.setPointerCapture(L,this)}releaseCapture(L){u.releaseCapture(L,this)}}t.Shape=R,R.prototype._fillFunc=S,R.prototype._strokeFunc=E,R.prototype._fillFuncHit=x,R.prototype._strokeFuncHit=w,R.prototype._centroid=!1,R.prototype.nodeType="Shape",(0,l._registerNode)(R),R.prototype.eventListeners={},R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",C),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",N),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",O),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",A),n.Factory.addGetterSetter(R,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(R,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(R,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(R,"lineJoin"),n.Factory.addGetterSetter(R,"lineCap"),n.Factory.addGetterSetter(R,"sceneFunc"),n.Factory.addGetterSetter(R,"hitFunc"),n.Factory.addGetterSetter(R,"dash"),n.Factory.addGetterSetter(R,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(R,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(R,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternImage"),n.Factory.addGetterSetter(R,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(R,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(R,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(R,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(R,"fillEnabled",!0),n.Factory.addGetterSetter(R,"strokeEnabled",!0),n.Factory.addGetterSetter(R,"shadowEnabled",!0),n.Factory.addGetterSetter(R,"dashEnabled",!0),n.Factory.addGetterSetter(R,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(R,"fillPriority","color"),n.Factory.addComponentsGetterSetter(R,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(R,"fillPatternRotation",0),n.Factory.addGetterSetter(R,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(R,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(hr),Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.Layer=void 0;const ri=Gt,dv=Fo,Js=jt,hv=Ze,z3=na,OI=_e,RI=hr,TI=Je;var LI="#",FI="beforeDraw",jI="draw",D3=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],AI=D3.length;let Zs=class extends dv.Container{constructor(t){super(t),this.canvas=new z3.SceneCanvas,this.hitCanvas=new z3.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var e=1,r=!1;;){for(let n=0;n0)return{antialiased:!0};return{}}drawScene(t,e){var r=this.getLayer(),n=t||r&&r.getCanvas();return this._fire(FI,{node:this}),this.clearBeforeDraw()&&n.getContext().clear(),dv.Container.prototype.drawScene.call(this,n,e),this._fire(jI,{node:this}),this}drawHit(t,e){var r=this.getLayer(),n=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),dv.Container.prototype.drawHit.call(this,n,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){ri.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return ri.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return ri.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Gu.Layer=Zs,Zs.prototype.nodeType="Layer",(0,TI._registerNode)(Zs),hv.Factory.addGetterSetter(Zs,"imageSmoothingEnabled",!0),hv.Factory.addGetterSetter(Zs,"clearBeforeDraw",!0),hv.Factory.addGetterSetter(Zs,"hitGraphEnabled",!0,(0,OI.getBooleanValidator)());var ef={};Object.defineProperty(ef,"__esModule",{value:!0}),ef.FastLayer=void 0;const zI=Gt,DI=Gu,BI=Je;class fv extends DI.Layer{constructor(e){super(e),this.listening(!1),zI.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}ef.FastLayer=fv,fv.prototype.nodeType="FastLayer",(0,BI._registerNode)(fv);var el={};Object.defineProperty(el,"__esModule",{value:!0}),el.Group=void 0;const UI=Gt,$I=Fo,VI=Je;class pv extends $I.Container{_validateAdd(e){var r=e.getType();r!=="Group"&&r!=="Shape"&&UI.Util.throw("You may only add groups and shapes to groups.")}}el.Group=pv,pv.prototype.nodeType="Group",(0,VI._registerNode)(pv);var tl={};Object.defineProperty(tl,"__esModule",{value:!0}),tl.Animation=void 0;const mv=Je,B3=Gt,gv=function(){return mv.glob.performance&&mv.glob.performance.now?function(){return mv.glob.performance.now()}:function(){return new Date().getTime()}}();class _a{constructor(e,r){this.id=_a.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:gv(),frameRate:0},this.func=e,this.setLayers(r)}setLayers(e){let r=[];return e&&(r=Array.isArray(e)?e:[e]),this.layers=r,this}getLayers(){return this.layers}addLayer(e){const r=this.layers,n=r.length;for(let a=0;athis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():b<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=b,this.update())}getTime(){return this._time}setPosition(b){this.prevPos=this._pos,this.propFunc(b),this._pos=b}getPosition(b){return b===void 0&&(b=this._time),this.func(b,this.begin,this._change,this.duration)}play(){this.state=u,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(b){this.pause(),this._time=b,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var b=this.getTimer()-this._startTime;this.state===u?this.setTime(b):this.state===c&&this.setTime(this.duration-b)}pause(){this.state=l,this.fire("onPause")}getTimer(){return new Date().getTime()}}class v{constructor(b){var S=this,E=b.node,x=E._id,w,m=b.easing||t.Easings.Linear,C=!!b.yoyo,N;typeof b.duration>"u"?w=.3:b.duration===0?w=.001:w=b.duration,this.node=E,this._id=d++;var O=E.getLayer()||(E instanceof a.Konva.Stage?E.getLayers():null);O||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){S.tween.onEnterFrame()},O),this.tween=new g(N,function(A){S._tweenFunc(A)},m,0,1,w*1e3,C),this._addListeners(),v.attrs[x]||(v.attrs[x]={}),v.attrs[x][this._id]||(v.attrs[x][this._id]={}),v.tweens[x]||(v.tweens[x]={});for(N in b)i[N]===void 0&&this._addAttr(N,b[N]);this.reset(),this.onFinish=b.onFinish,this.onReset=b.onReset,this.onUpdate=b.onUpdate}_addAttr(b,S){var E=this.node,x=E._id,w,m,C,N,O,A,R,j;if(C=v.tweens[x][b],C&&delete v.attrs[x][C][b],w=E.getAttr(b),e.Util._isArray(S))if(m=[],O=Math.max(S.length,w.length),b==="points"&&S.length!==w.length&&(S.length>w.length?(R=w,w=e.Util._prepareArrayForTween(w,S,E.closed())):(A=S,S=e.Util._prepareArrayForTween(S,w,E.closed()))),b.indexOf("fill")===0)for(N=0;N{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var b=this.node,S=v.attrs[b._id][this._id];S.points&&S.points.trueEnd&&b.setAttr("points",S.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var b=this.node,S=v.attrs[b._id][this._id];S.points&&S.points.trueStart&&b.points(S.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(b){return this.tween.seek(b*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var b=this.node._id,S=this._id,E=v.tweens[b],x;this.pause();for(x in E)delete v.tweens[b][x];delete v.attrs[b][S]}}t.Tween=v,v.attrs={},v.tweens={},n.Node.prototype.to=function(y){var b=y.onFinish;y.node=this,y.onFinish=function(){this.destroy(),b&&b()};var S=new v(y);S.play()},t.Easings={BackEaseIn(y,b,S,E){var x=1.70158;return S*(y/=E)*y*((x+1)*y-x)+b},BackEaseOut(y,b,S,E){var x=1.70158;return S*((y=y/E-1)*y*((x+1)*y+x)+1)+b},BackEaseInOut(y,b,S,E){var x=1.70158;return(y/=E/2)<1?S/2*(y*y*(((x*=1.525)+1)*y-x))+b:S/2*((y-=2)*y*(((x*=1.525)+1)*y+x)+2)+b},ElasticEaseIn(y,b,S,E,x,w){var m=0;return y===0?b:(y/=E)===1?b+S:(w||(w=E*.3),!x||x0?e:r),f=l*r,g=u*(u>0?e:r),v=c*(c>0?r:e);return{x:d,y:n?-1*v:g,width:f-d,height:v-g}}}tf.Arc=ni,ni.prototype._centroid=!0,ni.prototype.className="Arc",ni.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,WI._registerNode)(ni),rf.Factory.addGetterSetter(ni,"innerRadius",0,(0,nf.getNumberValidator)()),rf.Factory.addGetterSetter(ni,"outerRadius",0,(0,nf.getNumberValidator)()),rf.Factory.addGetterSetter(ni,"angle",0,(0,nf.getNumberValidator)()),rf.Factory.addGetterSetter(ni,"clockwise",!1,(0,nf.getBooleanValidator)());var af={},Wu={};Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.Line=void 0;const of=Ze,qI=hr,V3=_e,HI=Je;function vv(t,e,r,n,a,i,l){var u=Math.sqrt(Math.pow(r-t,2)+Math.pow(n-e,2)),c=Math.sqrt(Math.pow(a-r,2)+Math.pow(i-n,2)),d=l*u/(u+c),f=l*c/(u+c),g=r-d*(a-t),v=n-d*(i-e),y=r+f*(a-t),b=n+f*(i-e);return[g,v,y,b]}function G3(t,e){var r=t.length,n=[],a,i;for(a=2;a4){for(u=this.getTensionPoints(),c=u.length,d=i?0:4,i||e.quadraticCurveTo(u[0],u[1],u[2],u[3]);d{let d,f,g;d=c/2,f=0;for(let v=0;v<20;v++)g=d*t.tValues[20][v]+d,f+=t.cValues[20][v]*n(l,u,g);return d*f};t.getCubicArcLength=e;const r=(l,u,c)=>{c===void 0&&(c=1);const d=l[0]-2*l[1]+l[2],f=u[0]-2*u[1]+u[2],g=2*l[1]-2*l[0],v=2*u[1]-2*u[0],y=4*(d*d+f*f),b=4*(d*g+f*v),S=g*g+v*v;if(y===0)return c*Math.sqrt(Math.pow(l[2]-l[0],2)+Math.pow(u[2]-u[0],2));const E=b/(2*y),x=S/y,w=c+E,m=x-E*E,C=w*w+m>0?Math.sqrt(w*w+m):0,N=E*E+m>0?Math.sqrt(E*E+m):0,O=E+Math.sqrt(E*E+m)!==0?m*Math.log(Math.abs((w+C)/(E+N))):0;return Math.sqrt(y)/2*(w*C-E*N+O)};t.getQuadraticArcLength=r;function n(l,u,c){const d=a(1,c,l),f=a(1,c,u),g=d*d+f*f;return Math.sqrt(g)}const a=(l,u,c)=>{const d=c.length-1;let f,g;if(d===0)return 0;if(l===0){g=0;for(let v=0;v<=d;v++)g+=t.binomialCoefficients[d][v]*Math.pow(1-u,d-v)*Math.pow(u,v)*c[v];return g}else{f=new Array(d);for(let v=0;v{let d=1,f=l/u,g=(l-c(f))/u,v=0;for(;d>.001;){const y=c(f+g),b=Math.abs(l-y)/u;if(b500)break}return f};t.t2length=i})(W3),Object.defineProperty(rl,"__esModule",{value:!0}),rl.Path=void 0;const KI=Ze,YI=hr,QI=Je,nl=W3;class pr extends YI.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=pr.parsePathData(this.data()),this.pathLength=pr.getPathLength(this.dataArray)}_sceneFunc(e){var r=this.dataArray;e.beginPath();for(var n=!1,a=0;af?d:f,E=d>f?1:d/f,x=d>f?f/d:1;e.translate(u,c),e.rotate(y),e.scale(E,x),e.arc(0,0,S,g,g+v,1-b),e.scale(1/E,1/x),e.rotate(-y),e.translate(-u,-c);break;case"z":n=!0,e.closePath();break}}!n&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){var e=[];this.dataArray.forEach(function(d){if(d.command==="A"){var f=d.points[4],g=d.points[5],v=d.points[4]+g,y=Math.PI/180;if(Math.abs(f-v)v;b-=y){const S=pr.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],b,0);e.push(S.x,S.y)}else for(let b=f+y;br[a].pathLength;)e-=r[a].pathLength,++a;if(a===i)return n=r[a-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=r[a].points.slice(0,2),{x:n[0],y:n[1]};var l=r[a],u=l.points;switch(l.command){case"L":return pr.getPointOnLine(e,l.start.x,l.start.y,u[0],u[1]);case"C":return pr.getPointOnCubicBezier((0,nl.t2length)(e,pr.getPathLength(r),S=>(0,nl.getCubicArcLength)([l.start.x,u[0],u[2],u[4]],[l.start.y,u[1],u[3],u[5]],S)),l.start.x,l.start.y,u[0],u[1],u[2],u[3],u[4],u[5]);case"Q":return pr.getPointOnQuadraticBezier((0,nl.t2length)(e,pr.getPathLength(r),S=>(0,nl.getQuadraticArcLength)([l.start.x,u[0],u[2]],[l.start.y,u[1],u[3]],S)),l.start.x,l.start.y,u[0],u[1],u[2],u[3]);case"A":var c=u[0],d=u[1],f=u[2],g=u[3],v=u[4],y=u[5],b=u[6];return v+=y*e/l.pathLength,pr.getPointOnEllipticalArc(c,d,f,g,v,b)}return null}static getPointOnLine(e,r,n,a,i,l,u){l===void 0&&(l=r),u===void 0&&(u=n);var c=(i-n)/(a-r+1e-8),d=Math.sqrt(e*e/(1+c*c));a0&&!isNaN(b[0]);){var w="",m=[],C=c,N=d,O,A,R,j,L,U,H,q,ne,ie;switch(y){case"l":c+=b.shift(),d+=b.shift(),w="L",m.push(c,d);break;case"L":c=b.shift(),d=b.shift(),m.push(c,d);break;case"m":var se=b.shift(),K=b.shift();if(c+=se,d+=K,w="M",l.length>2&&l[l.length-1].command==="z"){for(var D=l.length-2;D>=0;D--)if(l[D].command==="M"){c=l[D].points[0]+se,d=l[D].points[1]+K;break}}m.push(c,d),y="l";break;case"M":c=b.shift(),d=b.shift(),w="M",m.push(c,d),y="L";break;case"h":c+=b.shift(),w="L",m.push(c,d);break;case"H":c=b.shift(),w="L",m.push(c,d);break;case"v":d+=b.shift(),w="L",m.push(c,d);break;case"V":d=b.shift(),w="L",m.push(c,d);break;case"C":m.push(b.shift(),b.shift(),b.shift(),b.shift()),c=b.shift(),d=b.shift(),m.push(c,d);break;case"c":m.push(c+b.shift(),d+b.shift(),c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),w="C",m.push(c,d);break;case"S":A=c,R=d,O=l[l.length-1],O.command==="C"&&(A=c+(c-O.points[2]),R=d+(d-O.points[3])),m.push(A,R,b.shift(),b.shift()),c=b.shift(),d=b.shift(),w="C",m.push(c,d);break;case"s":A=c,R=d,O=l[l.length-1],O.command==="C"&&(A=c+(c-O.points[2]),R=d+(d-O.points[3])),m.push(A,R,c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),w="C",m.push(c,d);break;case"Q":m.push(b.shift(),b.shift()),c=b.shift(),d=b.shift(),m.push(c,d);break;case"q":m.push(c+b.shift(),d+b.shift()),c+=b.shift(),d+=b.shift(),w="Q",m.push(c,d);break;case"T":A=c,R=d,O=l[l.length-1],O.command==="Q"&&(A=c+(c-O.points[0]),R=d+(d-O.points[1])),c=b.shift(),d=b.shift(),w="Q",m.push(A,R,c,d);break;case"t":A=c,R=d,O=l[l.length-1],O.command==="Q"&&(A=c+(c-O.points[0]),R=d+(d-O.points[1])),c+=b.shift(),d+=b.shift(),w="Q",m.push(A,R,c,d);break;case"A":j=b.shift(),L=b.shift(),U=b.shift(),H=b.shift(),q=b.shift(),ne=c,ie=d,c=b.shift(),d=b.shift(),w="A",m=this.convertEndpointToCenterParameterization(ne,ie,c,d,H,q,j,L,U);break;case"a":j=b.shift(),L=b.shift(),U=b.shift(),H=b.shift(),q=b.shift(),ne=c,ie=d,c+=b.shift(),d+=b.shift(),w="A",m=this.convertEndpointToCenterParameterization(ne,ie,c,d,H,q,j,L,U);break}l.push({command:w||y,points:m,start:{x:C,y:N},pathLength:this.calcLength(C,N,w||y,m)})}(y==="z"||y==="Z")&&l.push({command:"z",points:[],start:void 0,pathLength:0})}return l}static calcLength(e,r,n,a){var i,l,u,c,d=pr;switch(n){case"L":return d.getLineLength(e,r,a[0],a[1]);case"C":return(0,nl.getCubicArcLength)([e,a[0],a[2],a[4]],[r,a[1],a[3],a[5]],1);case"Q":return(0,nl.getQuadraticArcLength)([e,a[0],a[2]],[r,a[1],a[3]],1);case"A":i=0;var f=a[4],g=a[5],v=a[4]+g,y=Math.PI/180;if(Math.abs(f-v)v;c-=y)u=d.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],c,0),i+=d.getLineLength(l.x,l.y,u.x,u.y),l=u;else for(c=f+y;c1&&(u*=Math.sqrt(y),c*=Math.sqrt(y));var b=Math.sqrt((u*u*(c*c)-u*u*(v*v)-c*c*(g*g))/(u*u*(v*v)+c*c*(g*g)));i===l&&(b*=-1),isNaN(b)&&(b=0);var S=b*u*v/c,E=b*-c*g/u,x=(e+n)/2+Math.cos(f)*S-Math.sin(f)*E,w=(r+a)/2+Math.sin(f)*S+Math.cos(f)*E,m=function(L){return Math.sqrt(L[0]*L[0]+L[1]*L[1])},C=function(L,U){return(L[0]*U[0]+L[1]*U[1])/(m(L)*m(U))},N=function(L,U){return(L[0]*U[1]=1&&(j=0),l===0&&j>0&&(j=j-2*Math.PI),l===1&&j<0&&(j=j+2*Math.PI),[x,w,u,c,O,j,f,l]}}rl.Path=pr,pr.prototype.className="Path",pr.prototype._attrsAffectingSize=["data"],(0,QI._registerNode)(pr),KI.Factory.addGetterSetter(pr,"data"),Object.defineProperty(af,"__esModule",{value:!0}),af.Arrow=void 0;const sf=Ze,XI=Wu,q3=_e,JI=Je,H3=rl;class Ao extends XI.Line{_sceneFunc(e){super._sceneFunc(e);var r=Math.PI*2,n=this.points(),a=n,i=this.tension()!==0&&n.length>4;i&&(a=this.getTensionPoints());var l=this.pointerLength(),u=n.length,c,d;if(i){const v=[a[a.length-4],a[a.length-3],a[a.length-2],a[a.length-1],n[u-2],n[u-1]],y=H3.Path.calcLength(a[a.length-4],a[a.length-3],"C",v),b=H3.Path.getPointOnQuadraticBezier(Math.min(1,1-l/y),v[0],v[1],v[2],v[3],v[4],v[5]);c=n[u-2]-b.x,d=n[u-1]-b.y}else c=n[u-2]-n[u-4],d=n[u-1]-n[u-3];var f=(Math.atan2(d,c)+r)%r,g=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[u-2],n[u-1]),e.rotate(f),e.moveTo(0,0),e.lineTo(-l,g/2),e.lineTo(-l,-g/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(c=(a[0]+a[2])/2-n[0],d=(a[1]+a[3])/2-n[1]):(c=n[2]-n[0],d=n[3]-n[1]),e.rotate((Math.atan2(-d,-c)+r)%r),e.moveTo(0,0),e.lineTo(-l,g/2),e.lineTo(-l,-g/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),r=this.pointerWidth()/2;return{x:e.x-r,y:e.y-r,width:e.width+r*2,height:e.height+r*2}}}af.Arrow=Ao,Ao.prototype.className="Arrow",(0,JI._registerNode)(Ao),sf.Factory.addGetterSetter(Ao,"pointerLength",10,(0,q3.getNumberValidator)()),sf.Factory.addGetterSetter(Ao,"pointerWidth",10,(0,q3.getNumberValidator)()),sf.Factory.addGetterSetter(Ao,"pointerAtBeginning",!1),sf.Factory.addGetterSetter(Ao,"pointerAtEnding",!0);var lf={};Object.defineProperty(lf,"__esModule",{value:!0}),lf.Circle=void 0;const ZI=Ze,eN=hr,tN=_e,rN=Je;class al extends eN.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}lf.Circle=al,al.prototype._centroid=!0,al.prototype.className="Circle",al.prototype._attrsAffectingSize=["radius"],(0,rN._registerNode)(al),ZI.Factory.addGetterSetter(al,"radius",0,(0,tN.getNumberValidator)());var uf={};Object.defineProperty(uf,"__esModule",{value:!0}),uf.Ellipse=void 0;const yv=Ze,nN=hr,K3=_e,aN=Je;class qi extends nN.Shape{_sceneFunc(e){var r=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),r!==n&&e.scale(1,n/r),e.arc(0,0,r,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}uf.Ellipse=qi,qi.prototype.className="Ellipse",qi.prototype._centroid=!0,qi.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,aN._registerNode)(qi),yv.Factory.addComponentsGetterSetter(qi,"radius",["x","y"]),yv.Factory.addGetterSetter(qi,"radiusX",0,(0,K3.getNumberValidator)()),yv.Factory.addGetterSetter(qi,"radiusY",0,(0,K3.getNumberValidator)());var cf={};Object.defineProperty(cf,"__esModule",{value:!0}),cf.Image=void 0;const bv=Gt,zo=Ze,iN=hr,oN=Je,qu=_e;let wa=class w6 extends iN.Shape{constructor(e){super(e),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){const r=this.getWidth(),n=this.getHeight(),a=this.cornerRadius(),i=this.attrs.image;let l;if(i){const u=this.attrs.cropWidth,c=this.attrs.cropHeight;u&&c?l=[i,this.cropX(),this.cropY(),u,c,0,0,r,n]:l=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||a)&&(e.beginPath(),a?bv.Util.drawRoundedRectPath(e,r,n,a):e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)),i&&(a&&e.clip(),e.drawImage.apply(e,l))}_hitFunc(e){var r=this.width(),n=this.height(),a=this.cornerRadius();e.beginPath(),a?bv.Util.drawRoundedRectPath(e,r,n,a):e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,r;return(e=this.attrs.width)!==null&&e!==void 0?e:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var e,r;return(e=this.attrs.height)!==null&&e!==void 0?e:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(e,r,n=null){var a=bv.Util.createImageElement();a.onload=function(){var i=new w6({image:a});r(i)},a.onerror=n,a.crossOrigin="Anonymous",a.src=e}};cf.Image=wa,wa.prototype.className="Image",(0,oN._registerNode)(wa),zo.Factory.addGetterSetter(wa,"cornerRadius",0,(0,qu.getNumberOrArrayOfNumbersValidator)(4)),zo.Factory.addGetterSetter(wa,"image"),zo.Factory.addComponentsGetterSetter(wa,"crop",["x","y","width","height"]),zo.Factory.addGetterSetter(wa,"cropX",0,(0,qu.getNumberValidator)()),zo.Factory.addGetterSetter(wa,"cropY",0,(0,qu.getNumberValidator)()),zo.Factory.addGetterSetter(wa,"cropWidth",0,(0,qu.getNumberValidator)()),zo.Factory.addGetterSetter(wa,"cropHeight",0,(0,qu.getNumberValidator)());var il={};Object.defineProperty(il,"__esModule",{value:!0}),il.Tag=il.Label=void 0;const df=Ze,sN=hr,lN=el,kv=_e,Y3=Je;var Q3=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],uN="Change.konva",cN="none",wv="up",xv="right",Sv="down",Cv="left",dN=Q3.length;class _v extends lN.Group{constructor(e){super(e),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var r=this,n,a=function(){r._sync()};for(n=0;n{r=Math.min(r,l.x),n=Math.max(n,l.x),a=Math.min(a,l.y),i=Math.max(i,l.y)}),{x:r,y:a,width:n-r,height:i-a}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}ff.RegularPolygon=Bo,Bo.prototype.className="RegularPolygon",Bo.prototype._centroid=!0,Bo.prototype._attrsAffectingSize=["radius"],(0,yN._registerNode)(Bo),X3.Factory.addGetterSetter(Bo,"radius",0,(0,J3.getNumberValidator)()),X3.Factory.addGetterSetter(Bo,"sides",0,(0,J3.getNumberValidator)());var pf={};Object.defineProperty(pf,"__esModule",{value:!0}),pf.Ring=void 0;const Z3=Ze,bN=hr,e4=_e,kN=Je;var t4=Math.PI*2;class Uo extends bN.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,t4,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),t4,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}pf.Ring=Uo,Uo.prototype.className="Ring",Uo.prototype._centroid=!0,Uo.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,kN._registerNode)(Uo),Z3.Factory.addGetterSetter(Uo,"innerRadius",0,(0,e4.getNumberValidator)()),Z3.Factory.addGetterSetter(Uo,"outerRadius",0,(0,e4.getNumberValidator)());var mf={};Object.defineProperty(mf,"__esModule",{value:!0}),mf.Sprite=void 0;const $o=Ze,wN=hr,xN=tl,r4=_e,SN=Je;class xa extends wN.Shape{constructor(e){super(e),this._updated=!0,this.anim=new xN.Animation(()=>{var r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){var r=this.animation(),n=this.frameIndex(),a=n*4,i=this.animations()[r],l=this.frameOffsets(),u=i[a+0],c=i[a+1],d=i[a+2],f=i[a+3],g=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,d,f),e.closePath(),e.fillStrokeShape(this)),g)if(l){var v=l[r],y=n*2;e.drawImage(g,u,c,d,f,v[y+0],v[y+1],d,f)}else e.drawImage(g,u,c,d,f,0,0,d,f)}_hitFunc(e){var r=this.animation(),n=this.frameIndex(),a=n*4,i=this.animations()[r],l=this.frameOffsets(),u=i[a+2],c=i[a+3];if(e.beginPath(),l){var d=l[r],f=n*2;e.rect(d[f+0],d[f+1],u,c)}else e.rect(0,0,u,c);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),r=this.animation(),n=this.animations(),a=n[r],i=a.length/4;e{e=e.trim();const r=e.indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return r&&!n&&(e=`"${e}"`),e}).join(", ")}var Nv;function Ov(){return Nv||(Nv=Mv.Util.createCanvasElement().getContext(NN),Nv)}function UN(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function $N(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function VN(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}class Jt extends EN.Shape{constructor(e){super(VN(e)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r1&&(w+=l)}}}_hitFunc(e){var r=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,r,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var r=Mv.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(ON,r),this}getWidth(){var e=this.attrs.width===ol||this.attrs.width===void 0;return e?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var e=this.attrs.height===ol||this.attrs.height===void 0;return e?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Mv.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var r=Ov(),n=this.fontSize(),a;return r.save(),r.font=this._getContextFont(),a=r.measureText(e),r.restore(),{width:a.width,height:n}}_getContextFont(){return this.fontStyle()+vf+this.fontVariant()+vf+(this.fontSize()+FN)+BN(this.fontFamily())}_addTextLine(e){this.align()===Ku&&(e=e.trim());var r=this._getTextWidth(e);return this.textArr.push({text:e,width:r,lastInParagraph:!1})}_getTextWidth(e){var r=this.letterSpacing(),n=e.length;return Ov().measureText(e).width+(n?r*(n-1):0)}_setTextData(){var e=this.text().split(` +`),r=+this.fontSize(),n=0,a=this.lineHeight()*r,i=this.attrs.width,l=this.attrs.height,u=i!==ol&&i!==void 0,c=l!==ol&&l!==void 0,d=this.padding(),f=i-d*2,g=l-d*2,v=0,y=this.wrap(),b=y!==c4,S=y!==zN&&b,E=this.ellipsis();this.textArr=[],Ov().font=this._getContextFont();for(var x=E?this._getTextWidth(Iv):0,w=0,m=e.length;wf)for(;C.length>0;){for(var O=0,A=C.length,R="",j=0;O>>1,U=C.slice(0,L+1),H=this._getTextWidth(U)+x;H<=f?(O=L+1,R=U,j=H):A=L}if(R){if(S){var q,ne=C[R.length],ie=ne===vf||ne===i4;ie&&j<=f?q=R.length:q=Math.max(R.lastIndexOf(vf),R.lastIndexOf(i4))+1,q>0&&(O=q,R=R.slice(0,O),j=this._getTextWidth(R))}R=R.trimRight(),this._addTextLine(R),n=Math.max(n,j),v+=a;var se=this._shouldHandleEllipsis(v);if(se){this._tryToAddEllipsisToLastLine();break}if(C=C.slice(O),C=C.trimLeft(),C.length>0&&(N=this._getTextWidth(C),N<=f)){this._addTextLine(C),v+=a,n=Math.max(n,N);break}}else break}else this._addTextLine(C),v+=a,n=Math.max(n,N),this._shouldHandleEllipsis(v)&&wg)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(e){var r=+this.fontSize(),n=this.lineHeight()*r,a=this.attrs.height,i=a!==ol&&a!==void 0,l=this.padding(),u=a-l*2,c=this.wrap(),d=c!==c4;return!d||i&&e+n>u}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,r=e!==ol&&e!==void 0,n=this.padding(),a=e-n*2,i=this.ellipsis(),l=this.textArr[this.textArr.length-1];if(!(!l||!i)){if(r){var u=this._getTextWidth(l.text+Iv)r?null:Yu.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=Yu.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var r=this.textDecoration(),n=this.fill(),a=this.fontSize(),i=this.glyphInfo;r==="underline"&&e.beginPath();for(var l=0;l=1){var n=r[0].p0;e.moveTo(n.x,n.y)}for(var a=0;at+`.${y4}`).join(" "),b4="nodesRect",XN=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],JN={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const ZN="ontouchstart"in ia.Konva._global;function eO(t,e,r){if(t==="rotater")return r;e+=wt.Util.degToRad(JN[t]||0);var n=(wt.Util.radToDeg(e)%360+360)%360;return wt.Util._inRange(n,315+22.5,360)||wt.Util._inRange(n,0,22.5)?"ns-resize":wt.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":wt.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":wt.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":wt.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":wt.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":wt.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":wt.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(wt.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var kf=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],k4=1e8;function tO(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function w4(t,e,r){const n=r.x+(t.x-r.x)*Math.cos(e)-(t.y-r.y)*Math.sin(e),a=r.y+(t.x-r.x)*Math.sin(e)+(t.y-r.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:n,y:a}}function rO(t,e){const r=tO(t);return w4(t,e,r)}function nO(t,e,r){let n=e;for(let a=0;an.isAncestorOf(this)?(wt.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=e,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(n=>{const a=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},i=n._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");n.on(i,a),n.on(XN.map(l=>l+`.${this._getEventNamespace()}`).join(" "),a),n.on(`absoluteTransformChange.${this._getEventNamespace()}`,a),this._proxyDrag(n)}),this._resetTransformCache();var r=!!this.findOne(".top-left");return r&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,r=>{e=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!e)return;const n=t.getAbsolutePosition(),a=n.x-e.x,i=n.y-e.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const u=l.getAbsolutePosition();l.setAbsolutePosition({x:u.x+a,y:u.y+i}),l.startDrag(r)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(b4),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(b4,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),r){var n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=t.getAbsoluteScale(r),i=t.getAbsolutePosition(r),l=n.x*a.x-t.offsetX()*a.x,u=n.y*a.y-t.offsetY()*a.y;const c=(ia.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),d={x:i.x+l*Math.cos(c)+u*Math.sin(-c),y:i.y+u*Math.cos(c)+l*Math.sin(c),width:n.width*a.x,height:n.height*a.y,rotation:c};return w4(d,-ia.Konva.getAngle(e),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-k4,y:-k4,width:0,height:0,rotation:0};const e=[];this.nodes().map(c=>{const d=c.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var f=[{x:d.x,y:d.y},{x:d.x+d.width,y:d.y},{x:d.x+d.width,y:d.y+d.height},{x:d.x,y:d.y+d.height}],g=c.getAbsoluteTransform();f.forEach(function(v){var y=g.point(v);e.push(y)})});const r=new wt.Transform;r.rotate(-ia.Konva.getAngle(this.rotation()));var n=1/0,a=1/0,i=-1/0,l=-1/0;e.forEach(function(c){var d=r.point(c);n===void 0&&(n=i=d.x,a=l=d.y),n=Math.min(n,d.x),a=Math.min(a,d.y),i=Math.max(i,d.x),l=Math.max(l,d.y)}),r.invert();const u=r.point({x:n,y:a});return{x:u.x,y:u.y,width:i-n,height:l-a,rotation:ia.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),kf.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var e=new KN.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:ZN?10:"auto"}),r=this;e.on("mousedown touchstart",function(n){r._handleMouseDown(n)}),e.on("dragstart",n=>{e.stopDrag(),n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),e.on("mouseenter",()=>{var n=ia.Konva.getAngle(this.rotation()),a=this.rotateAnchorCursor(),i=eO(t,n,a);e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){var t=new HN.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,r){var n=r.getParent(),a=n.padding();e.beginPath(),e.rect(-a,-a,r.width()+a*2,r.height()+a*2),e.moveTo(r.width()/2,-a),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(r.width()/2,-n.rotateAnchorOffset()*wt.Util._sign(r.height())-a),e.fillStrokeShape(r)},hitFunc:(e,r)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,r.width()+n*2,r.height()+n*2),e.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",e=>{e.cancelBubble=!0}),t.on("dragmove",e=>{e.cancelBubble=!0}),t.on("dragend",e=>{e.cancelBubble=!0}),this.on("dragmove",e=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),r=e.width,n=e.height,a=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));this.sin=Math.abs(n/a),this.cos=Math.abs(r/a),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var i=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-i.x,y:l.y-i.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(u=>{u._fire("transformstart",{evt:t.evt,target:u})})}_handleMouseMove(t){var e,r,n,a=this.findOne("."+this._movingAnchorName),i=a.getStage();i.setPointersPositions(t);const l=i.getPointerPosition();let u={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const c=a.getAbsolutePosition();this.anchorDragBoundFunc()&&(u=this.anchorDragBoundFunc()(c,u,t)),a.setAbsolutePosition(u);const d=a.getAbsolutePosition();if(!(c.x===d.x&&c.y===d.y)){if(this._movingAnchorName==="rotater"){var f=this._getNodeRect();e=a.x()-f.width/2,r=-a.y()+f.height/2;let H=Math.atan2(-r,e)+Math.PI/2;f.height<0&&(H-=Math.PI);var g=ia.Konva.getAngle(this.rotation());const q=g+H,ne=ia.Konva.getAngle(this.rotationSnapTolerance()),ie=nO(this.rotationSnaps(),q,ne)-f.rotation,se=rO(f,ie);this._fitNodesInto(se,t);return}var v=this.shiftBehavior(),y;v==="inverted"?y=this.keepRatio()&&!t.shiftKey:v==="none"?y=this.keepRatio():y=this.keepRatio()||t.shiftKey;var w=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(y){var b=w?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(b.x-a.x(),2)+Math.pow(b.y-a.y(),2));var S=this.findOne(".top-left").x()>b.x?-1:1,E=this.findOne(".top-left").y()>b.y?-1:1;e=n*this.cos*S,r=n*this.sin*E,this.findOne(".top-left").x(b.x-e),this.findOne(".top-left").y(b.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(a.y());else if(this._movingAnchorName==="top-right"){if(y){var b=w?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};n=Math.sqrt(Math.pow(a.x()-b.x,2)+Math.pow(b.y-a.y(),2));var S=this.findOne(".top-right").x()b.y?-1:1;e=n*this.cos*S,r=n*this.sin*E,this.findOne(".top-right").x(b.x+e),this.findOne(".top-right").y(b.y-r)}var x=a.position();this.findOne(".top-left").y(x.y),this.findOne(".bottom-right").x(x.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(a.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(a.x());else if(this._movingAnchorName==="bottom-left"){if(y){var b=w?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};n=Math.sqrt(Math.pow(b.x-a.x(),2)+Math.pow(a.y()-b.y,2));var S=b.x{r._fire("transformend",{evt:t,target:r})}),this._movingAnchorName=null}}_fitNodesInto(t,e){var r=this._getNodeRect();const n=1;if(wt.Util._inRange(t.width,-this.padding()*2-n,n)){this.update();return}if(wt.Util._inRange(t.height,-this.padding()*2-n,n)){this.update();return}var a=new wt.Transform;if(a.rotate(ia.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const g=a.point({x:-this.padding()*2,y:0});t.x+=g.x,t.y+=g.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const g=a.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const g=a.point({x:0,y:-this.padding()*2});t.x+=g.x,t.y+=g.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const g=a.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const g=this.boundBoxFunc()(r,t);g?t=g:wt.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const i=1e7,l=new wt.Transform;l.translate(r.x,r.y),l.rotate(r.rotation),l.scale(r.width/i,r.height/i);const u=new wt.Transform,c=t.width/i,d=t.height/i;this.flipEnabled()===!1?(u.translate(t.x,t.y),u.rotate(t.rotation),u.translate(t.width<0?t.width:0,t.height<0?t.height:0),u.scale(Math.abs(c),Math.abs(d))):(u.translate(t.x,t.y),u.rotate(t.rotation),u.scale(c,d));const f=u.multiply(l.invert());this._nodes.forEach(g=>{var v;const y=g.getParent().getAbsoluteTransform(),b=g.getTransform().copy();b.translate(g.offsetX(),g.offsetY());const S=new wt.Transform;S.multiply(y.copy().invert()).multiply(f).multiply(y).multiply(b);const E=S.decompose();g.setAttrs(E),this._fire("transform",{evt:e,target:g}),g._fire("transform",{evt:e,target:g}),(v=g.getLayer())===null||v===void 0||v.batchDraw()}),this.rotation(wt.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(wt.Util._getRotation(e.rotation));var r=e.width,n=e.height,a=this.enabledAnchors(),i=this.resizeEnabled(),l=this.padding(),u=this.anchorSize();const c=this.find("._anchor");c.forEach(f=>{f.setAttrs({width:u,height:u,offsetX:u/2,offsetY:u/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:u/2+l,offsetY:u/2+l,visible:i&&a.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:u/2+l,visible:i&&a.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:u/2-l,offsetY:u/2+l,visible:i&&a.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:u/2+l,visible:i&&a.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:n/2,offsetX:u/2-l,visible:i&&a.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:u/2+l,offsetY:u/2-l,visible:i&&a.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:n,offsetY:u/2-l,visible:i&&a.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:n,offsetX:u/2-l,offsetY:u/2-l,visible:i&&a.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*wt.Util._sign(n)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const d=this.anchorStyleFunc();d&&c.forEach(f=>{d(f)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),v4.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return g4.Node.prototype.toObject.call(this)}clone(t){var e=g4.Node.prototype.clone.call(this,t);return e}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};bf.Transformer=st;function aO(t){return t instanceof Array||wt.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){kf.indexOf(e)===-1&&wt.Util.warn("Unknown anchor name: "+e+". Available names are: "+kf.join(", "))}),t||[]}st.prototype.className="Transformer",(0,YN._registerNode)(st),gt.Factory.addGetterSetter(st,"enabledAnchors",kf,aO),gt.Factory.addGetterSetter(st,"flipEnabled",!0,(0,Yi.getBooleanValidator)()),gt.Factory.addGetterSetter(st,"resizeEnabled",!0),gt.Factory.addGetterSetter(st,"anchorSize",10,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"rotateEnabled",!0),gt.Factory.addGetterSetter(st,"rotateLineVisible",!0),gt.Factory.addGetterSetter(st,"rotationSnaps",[]),gt.Factory.addGetterSetter(st,"rotateAnchorOffset",50,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"rotateAnchorCursor","crosshair"),gt.Factory.addGetterSetter(st,"rotationSnapTolerance",5,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"borderEnabled",!0),gt.Factory.addGetterSetter(st,"anchorStroke","rgb(0, 161, 255)"),gt.Factory.addGetterSetter(st,"anchorStrokeWidth",1,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"anchorFill","white"),gt.Factory.addGetterSetter(st,"anchorCornerRadius",0,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"borderStroke","rgb(0, 161, 255)"),gt.Factory.addGetterSetter(st,"borderStrokeWidth",1,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"borderDash"),gt.Factory.addGetterSetter(st,"keepRatio",!0),gt.Factory.addGetterSetter(st,"shiftBehavior","default"),gt.Factory.addGetterSetter(st,"centeredScaling",!1),gt.Factory.addGetterSetter(st,"ignoreStroke",!1),gt.Factory.addGetterSetter(st,"padding",0,(0,Yi.getNumberValidator)()),gt.Factory.addGetterSetter(st,"node"),gt.Factory.addGetterSetter(st,"nodes"),gt.Factory.addGetterSetter(st,"boundBoxFunc"),gt.Factory.addGetterSetter(st,"anchorDragBoundFunc"),gt.Factory.addGetterSetter(st,"anchorStyleFunc"),gt.Factory.addGetterSetter(st,"shouldOverdrawWholeArea",!1),gt.Factory.addGetterSetter(st,"useSingleNodeRotation",!0),gt.Factory.backCompat(st,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var wf={};Object.defineProperty(wf,"__esModule",{value:!0}),wf.Wedge=void 0;const xf=Ze,iO=hr,oO=Je,x4=_e,sO=Je;class ai extends iO.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,oO.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}wf.Wedge=ai,ai.prototype.className="Wedge",ai.prototype._centroid=!0,ai.prototype._attrsAffectingSize=["radius"],(0,sO._registerNode)(ai),xf.Factory.addGetterSetter(ai,"radius",0,(0,x4.getNumberValidator)()),xf.Factory.addGetterSetter(ai,"angle",0,(0,x4.getNumberValidator)()),xf.Factory.addGetterSetter(ai,"clockwise",!1),xf.Factory.backCompat(ai,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.Blur=void 0;const S4=Ze,lO=jt,uO=_e;function C4(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var cO=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],dO=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function hO(t,e){var r=t.data,n=t.width,a=t.height,i,l,u,c,d,f,g,v,y,b,S,E,x,w,m,C,N,O,A,R,j,L,U,H,q=e+e+1,ne=n-1,ie=a-1,se=e+1,K=se*(se+1)/2,D=new C4,Z=null,Q=D,oe=null,he=null,Ce=cO[e],me=dO[e];for(u=1;u>me,U!==0?(U=255/U,r[f]=(v*Ce>>me)*U,r[f+1]=(y*Ce>>me)*U,r[f+2]=(b*Ce>>me)*U):r[f]=r[f+1]=r[f+2]=0,v-=E,y-=x,b-=w,S-=m,E-=oe.r,x-=oe.g,w-=oe.b,m-=oe.a,c=g+((c=i+e+1)>me,U>0?(U=255/U,r[c]=(v*Ce>>me)*U,r[c+1]=(y*Ce>>me)*U,r[c+2]=(b*Ce>>me)*U):r[c]=r[c+1]=r[c+2]=0,v-=E,y-=x,b-=w,S-=m,E-=oe.r,x-=oe.g,w-=oe.b,m-=oe.a,c=i+((c=l+se)0&&hO(t,e)};Sf.Blur=fO,S4.Factory.addGetterSetter(lO.Node,"blurRadius",0,(0,uO.getNumberValidator)(),S4.Factory.afterSetFilter);var Cf={};Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.Brighten=void 0;const _4=Ze,pO=jt,mO=_e,gO=function(t){var e=this.brightness()*255,r=t.data,n=r.length,a;for(a=0;a255?255:a,i=i<0?0:i>255?255:i,l=l<0?0:l>255?255:l,r[u]=a,r[u+1]=i,r[u+2]=l};_f.Contrast=bO,E4.Factory.addGetterSetter(vO.Node,"contrast",0,(0,yO.getNumberValidator)(),E4.Factory.afterSetFilter);var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.Emboss=void 0;const Qi=Ze,Pf=jt,kO=Gt,P4=_e,wO=function(t){var e=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),a=this.embossBlend(),i=0,l=0,u=t.data,c=t.width,d=t.height,f=c*4,g=d;switch(n){case"top-left":i=-1,l=-1;break;case"top":i=-1,l=0;break;case"top-right":i=-1,l=1;break;case"right":i=0,l=1;break;case"bottom-right":i=1,l=1;break;case"bottom":i=1,l=0;break;case"bottom-left":i=1,l=-1;break;case"left":i=0,l=-1;break;default:kO.Util.error("Unknown emboss direction: "+n)}do{var v=(g-1)*f,y=i;g+y<1&&(y=0),g+y>d&&(y=0);var b=(g-1+y)*c*4,S=c;do{var E=v+(S-1)*4,x=l;S+x<1&&(x=0),S+x>c&&(x=0);var w=b+(S-1+x)*4,m=u[E]-u[w],C=u[E+1]-u[w+1],N=u[E+2]-u[w+2],O=m,A=O>0?O:-O,R=C>0?C:-C,j=N>0?N:-N;if(R>A&&(O=C),j>A&&(O=N),O*=e,a){var L=u[E]+O,U=u[E+1]+O,H=u[E+2]+O;u[E]=L>255?255:L<0?0:L,u[E+1]=U>255?255:U<0?0:U,u[E+2]=H>255?255:H<0?0:H}else{var q=r-O;q<0?q=0:q>255&&(q=255),u[E]=u[E+1]=u[E+2]=q}}while(--S)}while(--g)};Ef.Emboss=wO,Qi.Factory.addGetterSetter(Pf.Node,"embossStrength",.5,(0,P4.getNumberValidator)(),Qi.Factory.afterSetFilter),Qi.Factory.addGetterSetter(Pf.Node,"embossWhiteLevel",.5,(0,P4.getNumberValidator)(),Qi.Factory.afterSetFilter),Qi.Factory.addGetterSetter(Pf.Node,"embossDirection","top-left",null,Qi.Factory.afterSetFilter),Qi.Factory.addGetterSetter(Pf.Node,"embossBlend",!1,null,Qi.Factory.afterSetFilter);var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.Enhance=void 0;const M4=Ze,xO=jt,SO=_e;function Lv(t,e,r,n,a){var i=r-e,l=a-n,u;return i===0?n+l/2:l===0?n:(u=(t-e)/i,u=l*u+n,u)}const CO=function(t){var e=t.data,r=e.length,n=e[0],a=n,i,l=e[1],u=l,c,d=e[2],f=d,g,v,y=this.enhance();if(y!==0){for(v=0;va&&(a=i),c=e[v+1],cu&&(u=c),g=e[v+2],gf&&(f=g);a===n&&(a=255,n=0),u===l&&(u=255,l=0),f===d&&(f=255,d=0);var b,S,E,x,w,m,C,N,O;for(y>0?(S=a+y*(255-a),E=n-y*(n-0),w=u+y*(255-u),m=l-y*(l-0),N=f+y*(255-f),O=d-y*(d-0)):(b=(a+n)*.5,S=a+y*(a-b),E=n+y*(n-b),x=(u+l)*.5,w=u+y*(u-x),m=l+y*(l-x),C=(f+d)*.5,N=f+y*(f-C),O=d+y*(d-C)),v=0;vx?E:x;var w=l,m=i,C,N,O=360/m*Math.PI/180,A,R;for(N=0;Nm?w:m;var C=l,N=i,O,A,R=r.polarRotation||0,j,L;for(f=0;fe&&(C=m,N=0,O=-1),a=0;a=0&&y=0&&b=0&&y=0&&b=255*4?255:0}return l}function DO(t,e,r){for(var n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],a=Math.round(Math.sqrt(n.length)),i=Math.floor(a/2),l=[],u=0;u=0&&y=0&&b=r))for(i=S;i=n||(l=(r*i+a)*4,u+=C[l+0],c+=C[l+1],d+=C[l+2],f+=C[l+3],m+=1);for(u=u/m,c=c/m,d=d/m,f=f/m,a=y;a=r))for(i=S;i=n||(l=(r*i+a)*4,C[l+0]=u,C[l+1]=c,C[l+2]=d,C[l+3]=f)}};zf.Pixelate=HO,L4.Factory.addGetterSetter(WO.Node,"pixelSize",8,(0,qO.getNumberValidator)(),L4.Factory.afterSetFilter);var Df={};Object.defineProperty(Df,"__esModule",{value:!0}),Df.Posterize=void 0;const F4=Ze,KO=jt,YO=_e,QO=function(t){var e=Math.round(this.levels()*254)+1,r=t.data,n=r.length,a=255/e,i;for(i=0;i255?255:t<0?0:Math.round(t)}),Uf.Factory.addGetterSetter(Dv.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Uf.Factory.addGetterSetter(Dv.Node,"blue",0,XO.RGBComponent,Uf.Factory.afterSetFilter);var $f={};Object.defineProperty($f,"__esModule",{value:!0}),$f.RGBA=void 0;const Xu=Ze,Vf=jt,ZO=_e,eR=function(t){var e=t.data,r=e.length,n=this.red(),a=this.green(),i=this.blue(),l=this.alpha(),u,c;for(u=0;u255?255:t<0?0:Math.round(t)}),Xu.Factory.addGetterSetter(Vf.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Xu.Factory.addGetterSetter(Vf.Node,"blue",0,ZO.RGBComponent,Xu.Factory.afterSetFilter),Xu.Factory.addGetterSetter(Vf.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.Sepia=void 0;const tR=function(t){var e=t.data,r=e.length,n,a,i,l;for(n=0;n127&&(d=255-d),f>127&&(f=255-f),g>127&&(g=255-g),e[c]=d,e[c+1]=f,e[c+2]=g}while(--u)}while(--i)};Wf.Solarize=rR;var qf={};Object.defineProperty(qf,"__esModule",{value:!0}),qf.Threshold=void 0;const j4=Ze,nR=jt,aR=_e,iR=function(t){var e=this.threshold()*255,r=t.data,n=r.length,a;for(a=0;aG||k[F]!==_[G]){var X=` +`+k[F].replace(" at new "," at ");return o.displayName&&X.includes("")&&(X=X.replace("",o.displayName)),X}while(1<=F&&0<=G);break}}}finally{rs=!1,Error.prepareStackTrace=h}return(o=o?o.displayName||o.name:"")?ot(o):""}var Np=Object.prototype.hasOwnProperty,lo=[],si=-1;function En(o){return{current:o}}function xt(o){0>si||(o.current=lo[si],lo[si]=null,si--)}function yt(o,s){si++,lo[si]=o.current,o.current=s}var Pn={},gr=En(Pn),Rr=En(!1),Oa=Pn;function li(o,s){var h=o.type.contextTypes;if(!h)return Pn;var p=o.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===s)return p.__reactInternalMemoizedMaskedChildContext;var k={},_;for(_ in h)k[_]=s[_];return p&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=k),k}function Tr(o){return o=o.childContextTypes,o!=null}function ns(){xt(Rr),xt(gr)}function Sc(o,s,h){if(gr.current!==Pn)throw Error(i(168));yt(gr,s),yt(Rr,h)}function Rt(o,s,h){var p=o.stateNode;if(s=s.childContextTypes,typeof p.getChildContext!="function")return h;p=p.getChildContext();for(var k in p)if(!(k in s))throw Error(i(108,A(o)||"Unknown",k));return a({},h,p)}function la(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Pn,Oa=gr.current,yt(gr,o),yt(Rr,Rr.current),!0}function uo(o,s,h){var p=o.stateNode;if(!p)throw Error(i(169));h?(o=Rt(o,s,Oa),p.__reactInternalMemoizedMergedChildContext=o,xt(Rr),xt(gr),yt(gr,o)):xt(Rr),yt(Rr,h)}var hn=Math.clz32?Math.clz32:Op,Cc=Math.log,El=Math.LN2;function Op(o){return o>>>=0,o===0?32:31-(Cc(o)/El|0)|0}var as=64,Ra=4194304;function co(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Ta(o,s){var h=o.pendingLanes;if(h===0)return 0;var p=0,k=o.suspendedLanes,_=o.pingedLanes,F=h&268435455;if(F!==0){var G=F&~k;G!==0?p=co(G):(_&=F,_!==0&&(p=co(_)))}else F=h&~k,F!==0?p=co(F):_!==0&&(p=co(_));if(p===0)return 0;if(s!==0&&s!==p&&!(s&k)&&(k=p&-p,_=s&-s,k>=_||k===16&&(_&4194240)!==0))return s;if(p&4&&(p|=h&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=p;0h;h++)s.push(o);return s}function ae(o,s,h){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-hn(s),o[s]=h}function pe(o,s){var h=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var p=o.eventTimes;for(o=o.expirationTimes;0>=F,k-=F,Gn=1<<32-hn(s)+k|h<pt?(br=qe,qe=null):br=qe.sibling;var mt=ge(Y,qe,ee[pt],ve);if(mt===null){qe===null&&(qe=br);break}o&&qe&&mt.alternate===null&&s(Y,qe),W=_(mt,W,pt),Xe===null?Le=mt:Xe.sibling=mt,Xe=mt,qe=br}if(pt===ee.length)return h(Y,qe),ft&&La(Y,pt),Le;if(qe===null){for(;ptpt?(br=qe,qe=null):br=qe.sibling;var gi=ge(Y,qe,mt.value,ve);if(gi===null){qe===null&&(qe=br);break}o&&qe&&gi.alternate===null&&s(Y,qe),W=_(gi,W,pt),Xe===null?Le=gi:Xe.sibling=gi,Xe=gi,qe=br}if(mt.done)return h(Y,qe),ft&&La(Y,pt),Le;if(qe===null){for(;!mt.done;pt++,mt=ee.next())mt=We(Y,mt.value,ve),mt!==null&&(W=_(mt,W,pt),Xe===null?Le=mt:Xe.sibling=mt,Xe=mt);return ft&&La(Y,pt),Le}for(qe=p(Y,qe);!mt.done;pt++,mt=ee.next())mt=It(qe,Y,pt,mt.value,ve),mt!==null&&(o&&mt.alternate!==null&&qe.delete(mt.key===null?pt:mt.key),W=_(mt,W,pt),Xe===null?Le=mt:Xe.sibling=mt,Xe=mt);return o&&qe.forEach(function(Z6){return s(Y,Z6)}),ft&&La(Y,pt),Le}function Ba(Y,W,ee,ve){if(typeof ee=="object"&&ee!==null&&ee.type===d&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case u:e:{for(var Le=ee.key,Xe=W;Xe!==null;){if(Xe.key===Le){if(Le=ee.type,Le===d){if(Xe.tag===7){h(Y,Xe.sibling),W=k(Xe,ee.props.children),W.return=Y,Y=W;break e}}else if(Xe.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===w&&$y(Le)===Xe.type){h(Y,Xe.sibling),W=k(Xe,ee.props),W.ref=Ml(Y,Xe,ee),W.return=Y,Y=W;break e}h(Y,Xe);break}else s(Y,Xe);Xe=Xe.sibling}ee.type===d?(W=yo(ee.props.children,Y.mode,ve,ee.key),W.return=Y,Y=W):(ve=ad(ee.type,ee.key,ee.props,null,Y.mode,ve),ve.ref=Ml(Y,W,ee),ve.return=Y,Y=ve)}return F(Y);case c:e:{for(Xe=ee.key;W!==null;){if(W.key===Xe)if(W.tag===4&&W.stateNode.containerInfo===ee.containerInfo&&W.stateNode.implementation===ee.implementation){h(Y,W.sibling),W=k(W,ee.children||[]),W.return=Y,Y=W;break e}else{h(Y,W);break}else s(Y,W);W=W.sibling}W=Im(ee,Y.mode,ve),W.return=Y,Y=W}return F(Y);case w:return Xe=ee._init,Ba(Y,W,Xe(ee._payload),ve)}if(ne(ee))return St(Y,W,ee,ve);if(N(ee))return on(Y,W,ee,ve);Rc(Y,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,W!==null&&W.tag===6?(h(Y,W.sibling),W=k(W,ee),W.return=Y,Y=W):(h(Y,W),W=Mm(ee,Y.mode,ve),W.return=Y,Y=W),F(Y)):h(Y,W)}return Ba}var ls=Vy(!0),Gy=Vy(!1),Il={},In=En(Il),Nl=En(Il),us=En(Il);function ca(o){if(o===Il)throw Error(i(174));return o}function Vp(o,s){yt(us,s),yt(Nl,o),yt(In,Il),o=se(s),xt(In),yt(In,o)}function cs(){xt(In),xt(Nl),xt(us)}function Wy(o){var s=ca(us.current),h=ca(In.current);s=K(h,o.type,s),h!==s&&(yt(Nl,o),yt(In,s))}function Gp(o){Nl.current===o&&(xt(In),xt(Nl))}var At=En(0);function Tc(o){for(var s=o;s!==null;){if(s.tag===13){var h=s.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||xl(h)||Jo(h)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Wp=[];function qp(){for(var o=0;oh?h:4,o(!0);var p=Hp.transition;Hp.transition={};try{o(!1),s()}finally{ce=h,Hp.transition=p}}function ub(){return Nn().memoizedState}function E6(o,s,h){var p=fi(o);if(h={lane:p,action:h,hasEagerState:!1,eagerState:null,next:null},cb(o))db(s,h);else if(h=Ly(o,s,h,p),h!==null){var k=zr();On(h,o,p,k),hb(h,s,p)}}function P6(o,s,h){var p=fi(o),k={lane:p,action:h,hasEagerState:!1,eagerState:null,next:null};if(cb(o))db(s,k);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var F=s.lastRenderedState,G=_(F,h);if(k.hasEagerState=!0,k.eagerState=G,tt(G,F)){var X=s.interleaved;X===null?(k.next=k,Dp(s)):(k.next=X.next,X.next=k),s.interleaved=k;return}}catch{}finally{}h=Ly(o,s,k,p),h!==null&&(k=zr(),On(h,o,p,k),hb(h,s,p))}}function cb(o){var s=o.alternate;return o===zt||s!==null&&s===zt}function db(o,s){Ol=Fc=!0;var h=o.pending;h===null?s.next=s:(s.next=h.next,h.next=s),o.pending=s}function hb(o,s,h){if(h&4194240){var p=s.lanes;p&=o.pendingLanes,h|=p,s.lanes=h,fe(o,h)}}var zc={readContext:Mn,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},M6={readContext:Mn,useCallback:function(o,s){return da().memoizedState=[o,s===void 0?null:s],o},useContext:Mn,useEffect:tb,useImperativeHandle:function(o,s,h){return h=h!=null?h.concat([o]):null,jc(4194308,4,ab.bind(null,s,o),h)},useLayoutEffect:function(o,s){return jc(4194308,4,o,s)},useInsertionEffect:function(o,s){return jc(4,2,o,s)},useMemo:function(o,s){var h=da();return s=s===void 0?null:s,o=o(),h.memoizedState=[o,s],o},useReducer:function(o,s,h){var p=da();return s=h!==void 0?h(s):s,p.memoizedState=p.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},p.queue=o,o=o.dispatch=E6.bind(null,zt,o),[p.memoizedState,o]},useRef:function(o){var s=da();return o={current:o},s.memoizedState=o},useState:Zy,useDebugValue:em,useDeferredValue:function(o){return da().memoizedState=o},useTransition:function(){var o=Zy(!1),s=o[0];return o=_6.bind(null,o[1]),da().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,h){var p=zt,k=da();if(ft){if(h===void 0)throw Error(i(407));h=h()}else{if(h=s(),yr===null)throw Error(i(349));fo&30||Ky(p,s,h)}k.memoizedState=h;var _={value:h,getSnapshot:s};return k.queue=_,tb(Qy.bind(null,p,_,o),[o]),p.flags|=2048,Ll(9,Yy.bind(null,p,_,h,s),void 0,null),h},useId:function(){var o=da(),s=yr.identifierPrefix;if(ft){var h=Sr,p=Gn;h=(p&~(1<<32-hn(p)-1)).toString(32)+h,s=":"+s+"R"+h,h=Rl++,0km&&(s.flags|=128,p=!0,Al(k,!1),s.lanes=4194304)}else{if(!p)if(o=Tc(_),o!==null){if(s.flags|=128,p=!0,o=o.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),Al(k,!0),k.tail===null&&k.tailMode==="hidden"&&!_.alternate&&!ft)return jr(s),null}else 2*xe()-k.renderingStartTime>km&&h!==1073741824&&(s.flags|=128,p=!0,Al(k,!1),s.lanes=4194304);k.isBackwards?(_.sibling=s.child,s.child=_):(o=k.last,o!==null?o.sibling=_:s.child=_,k.last=_)}return k.tail!==null?(s=k.tail,k.rendering=s,k.tail=s.sibling,k.renderingStartTime=xe(),s.sibling=null,o=At.current,yt(At,p?o&1|2:o&1),s):(jr(s),null);case 22:case 23:return _m(),h=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==h&&(s.flags|=8192),h&&s.mode&1?fn&1073741824&&(jr(s),Se&&s.subtreeFlags&6&&(s.flags|=8192)):jr(s),null;case 24:return null;case 25:return null}throw Error(i(156,s.tag))}function j6(o,s){switch(Fa(s),s.tag){case 1:return Tr(s.type)&&ns(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return cs(),xt(Rr),xt(gr),qp(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return Gp(s),null;case 13:if(xt(At),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(i(340));is()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return xt(At),null;case 4:return cs(),null;case 10:return Ap(s.type._context),null;case 22:case 23:return _m(),null;case 24:return null;default:return null}}var Vc=!1,Ar=!1,A6=typeof WeakSet=="function"?WeakSet:Set,be=null;function hs(o,s){var h=o.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(p){Lt(o,s,p)}else h.current=null}function Ob(o,s,h){try{h()}catch(p){Lt(o,s,p)}}var Rb=!1;function z6(o,s){for(D(o.containerInfo),be=s;be!==null;)if(o=be,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,be=s;else for(;be!==null;){o=be;try{var h=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var p=h.memoizedProps,k=h.memoizedState,_=o.stateNode,F=_.getSnapshotBeforeUpdate(o.elementType===o.type?p:qn(o.type,p),k);_.__reactInternalSnapshotBeforeUpdate=F}break;case 3:Se&&io(o.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(G){Lt(o,o.return,G)}if(s=o.sibling,s!==null){s.return=o.return,be=s;break}be=o.return}return h=Rb,Rb=!1,h}function zl(o,s,h){var p=s.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var k=p=p.next;do{if((k.tag&o)===o){var _=k.destroy;k.destroy=void 0,_!==void 0&&Ob(s,h,_)}k=k.next}while(k!==p)}}function Gc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var h=s=s.next;do{if((h.tag&o)===o){var p=h.create;h.destroy=p()}h=h.next}while(h!==s)}}function um(o){var s=o.ref;if(s!==null){var h=o.stateNode;switch(o.tag){case 5:o=ie(h);break;default:o=h}typeof s=="function"?s(o):s.current=o}}function Tb(o){var s=o.alternate;s!==null&&(o.alternate=null,Tb(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&Wt(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Lb(o){return o.tag===5||o.tag===3||o.tag===4}function Fb(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Lb(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function cm(o,s,h){var p=o.tag;if(p===5||p===6)o=o.stateNode,s?Ht(h,o,s):ao(h,o);else if(p!==4&&(o=o.child,o!==null))for(cm(o,s,h),o=o.sibling;o!==null;)cm(o,s,h),o=o.sibling}function dm(o,s,h){var p=o.tag;if(p===5||p===6)o=o.stateNode,s?oi(h,o,s):Pa(h,o);else if(p!==4&&(o=o.child,o!==null))for(dm(o,s,h),o=o.sibling;o!==null;)dm(o,s,h),o=o.sibling}var _r=null,Hn=!1;function fa(o,s,h){for(h=h.child;h!==null;)hm(o,s,h),h=h.sibling}function hm(o,s,h){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(Re,h)}catch{}switch(h.tag){case 5:Ar||hs(h,s);case 6:if(Se){var p=_r,k=Hn;_r=null,fa(o,s,h),_r=p,Hn=k,_r!==null&&(Hn?Qo(_r,h.stateNode):Ia(_r,h.stateNode))}else fa(o,s,h);break;case 18:Se&&_r!==null&&(Hn?Ip(_r,h.stateNode):wc(_r,h.stateNode));break;case 4:Se?(p=_r,k=Hn,_r=h.stateNode.containerInfo,Hn=!0,fa(o,s,h),_r=p,Hn=k):(Oe&&(p=h.stateNode.containerInfo,k=gc(p),oo(p,k)),fa(o,s,h));break;case 0:case 11:case 14:case 15:if(!Ar&&(p=h.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){k=p=p.next;do{var _=k,F=_.destroy;_=_.tag,F!==void 0&&(_&2||_&4)&&Ob(h,s,F),k=k.next}while(k!==p)}fa(o,s,h);break;case 1:if(!Ar&&(hs(h,s),p=h.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=h.memoizedProps,p.state=h.memoizedState,p.componentWillUnmount()}catch(G){Lt(h,s,G)}fa(o,s,h);break;case 21:fa(o,s,h);break;case 22:h.mode&1?(Ar=(p=Ar)||h.memoizedState!==null,fa(o,s,h),Ar=p):fa(o,s,h);break;default:fa(o,s,h)}}function jb(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var h=o.stateNode;h===null&&(h=o.stateNode=new A6),s.forEach(function(p){var k=H6.bind(null,o,p);h.has(p)||(h.add(p),p.then(k,k))})}}function Kn(o,s){var h=s.deletions;if(h!==null)for(var p=0;p";case qc:return":has("+(mm(o)||"")+")";case Hc:return'[role="'+o.value+'"]';case Yc:return'"'+o.value+'"';case Kc:return'[data-testname="'+o.value+'"]';default:throw Error(i(365))}}function $b(o,s){var h=[];o=[o,0];for(var p=0;pk&&(k=F),p&=~_}if(p=k,p=xe()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*B6(p/1960))-p,10o?16:o,hi===null)var p=!1;else{if(o=hi,hi=null,ed=0,et&6)throw Error(i(331));var k=et;for(et|=4,be=o.current;be!==null;){var _=be,F=_.child;if(be.flags&16){var G=_.deletions;if(G!==null){for(var X=0;Xxe()-bm?mo(o,0):ym|=h),an(o,s)}function Xb(o,s){s===0&&(o.mode&1?(s=Ra,Ra<<=1,!(Ra&130023424)&&(Ra=4194304)):s=1);var h=zr();o=ua(o,s),o!==null&&(ae(o,s,h),an(o,h))}function q6(o){var s=o.memoizedState,h=0;s!==null&&(h=s.retryLane),Xb(o,h)}function H6(o,s){var h=0;switch(o.tag){case 13:var p=o.stateNode,k=o.memoizedState;k!==null&&(h=k.retryLane);break;case 19:p=o.stateNode;break;default:throw Error(i(314))}p!==null&&p.delete(s),Xb(o,h)}var Jb;Jb=function(o,s,h){if(o!==null)if(o.memoizedProps!==s.pendingProps||Rr.current)rn=!0;else{if(!(o.lanes&h)&&!(s.flags&128))return rn=!1,L6(o,s,h);rn=!!(o.flags&131072)}else rn=!1,ft&&s.flags&1048576&&Pl(s,ir,s.index);switch(s.lanes=0,s.tag){case 2:var p=s.type;Bc(o,s),o=s.pendingProps;var k=li(s,gr.current);ss(s,h),k=Yp(null,s,p,o,k,h);var _=Qp();return s.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Tr(p)?(_=!0,la(s)):_=!1,s.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,Bp(s),k.updater=Oc,s.stateNode=k,k._reactInternals=s,$p(s,p,o,h),s=am(null,s,p,!0,_,h)):(s.tag=0,ft&&_&&Hr(s),Kr(null,s,k,h),s=s.child),s;case 16:p=s.elementType;e:{switch(Bc(o,s),o=s.pendingProps,k=p._init,p=k(p._payload),s.type=p,k=s.tag=Y6(p),o=qn(p,o),k){case 0:s=nm(null,s,p,o,h);break e;case 1:s=Sb(null,s,p,o,h);break e;case 11:s=yb(null,s,p,o,h);break e;case 14:s=bb(null,s,p,qn(p.type,o),h);break e}throw Error(i(306,p,""))}return s;case 0:return p=s.type,k=s.pendingProps,k=s.elementType===p?k:qn(p,k),nm(o,s,p,k,h);case 1:return p=s.type,k=s.pendingProps,k=s.elementType===p?k:qn(p,k),Sb(o,s,p,k,h);case 3:e:{if(Cb(s),o===null)throw Error(i(387));p=s.pendingProps,_=s.memoizedState,k=_.element,Fy(o,s),Nc(s,p,null,h);var F=s.memoizedState;if(p=F.element,Fe&&_.isDehydrated)if(_={element:p,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){k=ds(Error(i(423)),s),s=_b(o,s,p,h,k);break e}else if(p!==k){k=ds(Error(i(424)),s),s=_b(o,s,p,h,k);break e}else for(Fe&&(Cr=_p(s.stateNode.containerInfo),Yt=s,ft=!0,Wn=null,ja=!1),h=Gy(s,null,p,h),s.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(is(),p===k){s=za(o,s,h);break e}Kr(o,s,p,h)}s=s.child}return s;case 5:return Wy(s),o===null&&Tp(s),p=s.type,k=s.pendingProps,_=o!==null?o.memoizedProps:null,F=k.children,me(p,k)?F=null:_!==null&&me(p,_)&&(s.flags|=32),xb(o,s),Kr(o,s,F,h),s.child;case 6:return o===null&&Tp(s),null;case 13:return Eb(o,s,h);case 4:return Vp(s,s.stateNode.containerInfo),p=s.pendingProps,o===null?s.child=ls(s,null,p,h):Kr(o,s,p,h),s.child;case 11:return p=s.type,k=s.pendingProps,k=s.elementType===p?k:qn(p,k),yb(o,s,p,k,h);case 7:return Kr(o,s,s.pendingProps,h),s.child;case 8:return Kr(o,s,s.pendingProps.children,h),s.child;case 12:return Kr(o,s,s.pendingProps.children,h),s.child;case 10:e:{if(p=s.type._context,k=s.pendingProps,_=s.memoizedProps,F=k.value,Ty(s,p,F),_!==null)if(tt(_.value,F)){if(_.children===k.children&&!Rr.current){s=za(o,s,h);break e}}else for(_=s.child,_!==null&&(_.return=s);_!==null;){var G=_.dependencies;if(G!==null){F=_.child;for(var X=G.firstContext;X!==null;){if(X.context===p){if(_.tag===1){X=Aa(-1,h&-h),X.tag=2;var de=_.updateQueue;if(de!==null){de=de.shared;var we=de.pending;we===null?X.next=X:(X.next=we.next,we.next=X),de.pending=X}}_.lanes|=h,X=_.alternate,X!==null&&(X.lanes|=h),zp(_.return,h,s),G.lanes|=h;break}X=X.next}}else if(_.tag===10)F=_.type===s.type?null:_.child;else if(_.tag===18){if(F=_.return,F===null)throw Error(i(341));F.lanes|=h,G=F.alternate,G!==null&&(G.lanes|=h),zp(F,h,s),F=_.sibling}else F=_.child;if(F!==null)F.return=_;else for(F=_;F!==null;){if(F===s){F=null;break}if(_=F.sibling,_!==null){_.return=F.return,F=_;break}F=F.return}_=F}Kr(o,s,k.children,h),s=s.child}return s;case 9:return k=s.type,p=s.pendingProps.children,ss(s,h),k=Mn(k),p=p(k),s.flags|=1,Kr(o,s,p,h),s.child;case 14:return p=s.type,k=qn(p,s.pendingProps),k=qn(p.type,k),bb(o,s,p,k,h);case 15:return kb(o,s,s.type,s.pendingProps,h);case 17:return p=s.type,k=s.pendingProps,k=s.elementType===p?k:qn(p,k),Bc(o,s),s.tag=1,Tr(p)?(o=!0,la(s)):o=!1,ss(s,h),By(s,p,k),$p(s,p,k,h),am(null,s,p,!0,o,h);case 19:return Mb(o,s,h);case 22:return wb(o,s,h)}throw Error(i(156,s.tag))};function Zb(o,s){return Be(o,s)}function K6(o,s,h,p){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(o,s,h,p){return new K6(o,s,h,p)}function Pm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Y6(o){if(typeof o=="function")return Pm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===b)return 11;if(o===x)return 14}return 2}function mi(o,s){var h=o.alternate;return h===null?(h=Rn(o.tag,s,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=s,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&14680064,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,s=o.dependencies,h.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h}function ad(o,s,h,p,k,_){var F=2;if(p=o,typeof o=="function")Pm(o)&&(F=1);else if(typeof o=="string")F=5;else e:switch(o){case d:return yo(h.children,k,_,s);case f:F=8,k|=8;break;case g:return o=Rn(12,h,s,k|2),o.elementType=g,o.lanes=_,o;case S:return o=Rn(13,h,s,k),o.elementType=S,o.lanes=_,o;case E:return o=Rn(19,h,s,k),o.elementType=E,o.lanes=_,o;case m:return id(h,k,_,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case v:F=10;break e;case y:F=9;break e;case b:F=11;break e;case x:F=14;break e;case w:F=16,p=null;break e}throw Error(i(130,o==null?o:typeof o,""))}return s=Rn(F,h,s,k),s.elementType=o,s.type=p,s.lanes=_,s}function yo(o,s,h,p){return o=Rn(7,o,p,s),o.lanes=h,o}function id(o,s,h,p){return o=Rn(22,o,p,s),o.elementType=m,o.lanes=h,o.stateNode={isHidden:!1},o}function Mm(o,s,h){return o=Rn(6,o,null,s),o.lanes=h,o}function Im(o,s,h){return s=Rn(4,o.children!==null?o.children:[],o.key,s),s.lanes=h,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function Q6(o,s,h,p,k){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=re,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=J(0),this.expirationTimes=J(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J(0),this.identifierPrefix=p,this.onRecoverableError=k,Fe&&(this.mutableSourceEagerHydrationData=null)}function e2(o,s,h,p,k,_,F,G,X){return o=new Q6(o,s,h,G,X),s===1?(s=1,_===!0&&(s|=8)):s=0,_=Rn(3,null,null,s),o.current=_,_.stateNode=o,_.memoizedState={element:p,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bp(_),o}function t2(o){if(!o)return Pn;o=o._reactInternals;e:{if(R(o)!==o||o.tag!==1)throw Error(i(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Tr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(i(171))}if(o.tag===1){var h=o.type;if(Tr(h))return Rt(o,h,s)}return s}function r2(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=U(s),o===null?null:o.stateNode}function n2(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h=de&&_>=We&&k<=we&&F<=ge){o.splice(s,1);break}else if(p!==de||h.width!==X.width||ge<_||We>F){if(!(_!==We||h.height!==X.height||wek)){de>p&&(X.width+=de-p,X.x=p),we_&&(X.height+=We-_,X.y=_),geh&&(h=F)),F ")+` + +No matching component was found for: + `)+o.join(" > ")}return null},e.getPublicRootInstance=function(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return ie(o.child.stateNode);default:return o.child.stateNode}},e.injectIntoDevTools=function(o){if(o={bundleType:o.bundleType,version:o.version,rendererPackageName:o.rendererPackageName,rendererConfig:o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:X6,findFiberByHostInstance:o.findFiberByHostInstance||J6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")o=!1;else{var s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(s.isDisabled||!s.supportsFiber)o=!0;else{try{Re=s.inject(o),$e=s}catch{}o=!!s.checkDCE}}return o},e.isAlreadyRendering=function(){return!1},e.observeVisibleRects=function(o,s,h,p){if(!De)throw Error(i(363));o=gm(o,s);var k=Ea(o,h,p).disconnect;return{disconnect:function(){k()}}},e.registerMutableSourceForHydration=function(o,s){var h=s._getVersion;h=h(s._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[s,h]:o.mutableSourceEagerHydrationData.push(s,h)},e.runWithPriority=function(o,s){var h=ce;try{return ce=o,s()}finally{ce=h}},e.shouldError=function(){return null},e.shouldSuspend=function(){return!1},e.updateContainer=function(o,s,h,p){var k=s.current,_=zr(),F=fi(k);return h=t2(h),s.context===null?s.context=h:s.pendingContext=h,s=Aa(_,F),s.payload={element:o},p=p===void 0?null:p,p!==null&&(s.callback=p),o=ci(k,s,F),o!==null&&(On(o,k,F,_),Ic(o,k,F)),F},e};D4.exports=GR;var WR=D4.exports;const qR=yi(WR);var B4={exports:{}},Go={};/** +* @license React +* react-reconciler-constants.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/Go.ConcurrentRoot=1,Go.ContinuousEventPriority=4,Go.DefaultEventPriority=16,Go.DiscreteEventPriority=1,Go.IdleEventPriority=536870912,Go.LegacyRoot=0,B4.exports=Go;var U4=B4.exports;const $4={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let V4=!1,G4=!1;const Uv=".react-konva-event",HR=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. +Position of a node will be changed during drag&drop, so you should update state of the react app as well. +Consider to add onDragMove or onDragEnd events. +For more info see: https://github.com/konvajs/react-konva/issues/256 +`,KR=`ReactKonva: You are using "zIndex" attribute for a Konva node. +react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. +For more info see: https://github.com/konvajs/react-konva/issues/194 +`,YR={};function Hf(t,e,r=YR){if(!V4&&"zIndex"in e&&(console.warn(KR),V4=!0),!G4&&e.draggable){var n=e.x!==void 0||e.y!==void 0,a=e.onDragEnd||e.onDragMove;n&&!a&&(console.warn(HR),G4=!0)}for(var i in r)if(!$4[i]){var l=i.slice(0,2)==="on",u=r[i]!==e[i];if(l&&u){var c=i.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,r[i])}var d=!e.hasOwnProperty(i);d&&t.setAttr(i,void 0)}var f=e._useStrictMode,g={},v=!1;const y={};for(var i in e)if(!$4[i]){var l=i.slice(0,2)==="on",b=r[i]!==e[i];if(l&&b){var c=i.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[i]&&(y[c]=e[i])}!l&&(e[i]!==r[i]||f&&e[i]!==t.getAttr(i))&&(v=!0,g[i]=e[i])}v&&(t.setAttrs(g),Xi(t));for(var c in y)t.on(c+Uv,y[c])}function Xi(t){if(!Je.Konva.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}const W4={},QR={};Ju.Node.prototype._applyProps=Hf;function XR(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),Xi(t)}function JR(t,e,r){let n=Ju[t];n||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Ju.Group);const a={},i={};for(var l in e){var u=l.slice(0,2)==="on";u?i[l]=e[l]:a[l]=e[l]}const c=new n(a);return Hf(c,i),c}function ZR(t,e,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function eT(t,e,r){return!1}function tT(t){return t}function rT(){return null}function nT(){return null}function aT(t,e,r,n){return QR}function iT(){}function oT(t){}function sT(t,e){return!1}function lT(){return W4}function uT(){return W4}const cT=setTimeout,dT=clearTimeout,hT=-1;function fT(t,e){return!1}const pT=!1,mT=!0,gT=!0;function vT(t,e){e.parent===t?e.moveToTop():t.add(e),Xi(t)}function yT(t,e){e.parent===t?e.moveToTop():t.add(e),Xi(t)}function q4(t,e,r){e._remove(),t.add(e),e.setZIndex(r.getZIndex()),Xi(t)}function bT(t,e,r){q4(t,e,r)}function kT(t,e){e.destroy(),e.off(Uv),Xi(t)}function wT(t,e){e.destroy(),e.off(Uv),Xi(t)}function xT(t,e,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function ST(t,e,r){}function CT(t,e,r,n,a){Hf(t,a,n)}function _T(t){t.hide(),Xi(t)}function ET(t){}function PT(t,e){(e.visible==null||e.visible)&&t.show()}function MT(t,e){}function IT(t){}function NT(){}const OT=()=>U4.DefaultEventPriority,RT=Object.freeze(Object.defineProperty({__proto__:null,appendChild:vT,appendChildToContainer:yT,appendInitialChild:XR,cancelTimeout:dT,clearContainer:IT,commitMount:ST,commitTextUpdate:xT,commitUpdate:CT,createInstance:JR,createTextInstance:ZR,detachDeletedInstance:NT,finalizeInitialChildren:eT,getChildHostContext:uT,getCurrentEventPriority:OT,getPublicInstance:tT,getRootHostContext:lT,hideInstance:_T,hideTextInstance:ET,idlePriority:ql.unstable_IdlePriority,insertBefore:q4,insertInContainerBefore:bT,isPrimaryRenderer:pT,noTimeout:hT,now:ql.unstable_now,prepareForCommit:rT,preparePortalMount:nT,prepareUpdate:aT,removeChild:kT,removeChildFromContainer:wT,resetAfterCommit:iT,resetTextContent:oT,run:ql.unstable_runWithPriority,scheduleTimeout:cT,shouldDeprioritizeSubtree:sT,shouldSetTextContent:fT,supportsMutation:gT,unhideInstance:PT,unhideTextInstance:MT,warnsIfNotActing:mT},Symbol.toStringTag,{value:"Module"}));var TT=Object.defineProperty,LT=Object.defineProperties,FT=Object.getOwnPropertyDescriptors,H4=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,AT=Object.prototype.propertyIsEnumerable,K4=(t,e,r)=>e in t?TT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Y4=(t,e)=>{for(var r in e||(e={}))jT.call(e,r)&&K4(t,r,e[r]);if(H4)for(var r of H4(e))AT.call(e,r)&&K4(t,r,e[r]);return t},zT=(t,e)=>LT(t,FT(e));function Q4(t,e,r){if(!t)return;if(r(t)===!0)return t;let n=e?t.return:t.child;for(;n;){const a=Q4(n,e,r);if(a)return a;n=e?null:n.sibling}}function X4(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const $v=X4(I.createContext(null));class J4 extends I.Component{render(){return I.createElement($v.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Z4,ReactCurrentDispatcher:ex}=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function DT(){const t=I.useContext($v);if(t===null)throw new Error("its-fine: useFiber must be called within a !");const e=I.useId();return I.useMemo(()=>{for(const r of[Z4?.current,t,t?.alternate]){if(!r)continue;const n=Q4(r,!1,a=>{let i=a.memoizedState;for(;i;){if(i.memoizedState===e)return!0;i=i.next}});if(n)return n}},[t,e])}function BT(){var t,e;const r=DT(),[n]=I.useState(()=>new Map);n.clear();let a=r;for(;a;){const i=(t=a.type)==null?void 0:t._context;i&&i!==$v&&!n.has(i)&&n.set(i,(e=ex?.current)==null?void 0:e.readContext(X4(i))),a=a.return}return n}function UT(){const t=BT();return I.useMemo(()=>Array.from(t.keys()).reduce((e,r)=>n=>I.createElement(e,null,I.createElement(r.Provider,zT(Y4({},n),{value:t.get(r)}))),e=>I.createElement(J4,Y4({},e))),[t])}function $T(t){const e=z.useRef({});return z.useLayoutEffect(()=>{e.current=t}),z.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const VT=t=>{const e=z.useRef(),r=z.useRef(),n=z.useRef(),a=$T(t),i=UT(),l=u=>{const{forwardedRef:c}=t;c&&(typeof c=="function"?c(u):c.current=u)};return z.useLayoutEffect(()=>(r.current=new Ju.Stage({width:t.width,height:t.height,container:e.current}),l(r.current),n.current=Zu.createContainer(r.current,U4.LegacyRoot,!1,null),Zu.updateContainer(z.createElement(i,{},t.children),n.current),()=>{Ju.isBrowser&&(l(null),Zu.updateContainer(null,n.current,null),r.current.destroy())}),[]),z.useLayoutEffect(()=>{l(r.current),Hf(r.current,t,a),Zu.updateContainer(z.createElement(i,{},t.children),n.current,null)}),z.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},tx="Layer",rx="Image",GT="Transformer",Zu=qR(RT);Zu.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:z.version,rendererPackageName:"react-konva"});const WT=z.forwardRef((t,e)=>z.createElement(J4,{},z.createElement(VT,{...t,forwardedRef:e})));var Wo=I,qT=function(t,e,r){const n=Wo.useRef("loading"),a=Wo.useRef(),[i,l]=Wo.useState(0),u=Wo.useRef(),c=Wo.useRef(),d=Wo.useRef();return(u.current!==t||c.current!==e||d.current!==r)&&(n.current="loading",a.current=void 0,u.current=t,c.current=e,d.current=r),Wo.useLayoutEffect(function(){if(!t)return;var f=document.createElement("img");function g(){n.current="loaded",a.current=f,l(Math.random())}function v(){n.current="failed",a.current=void 0,l(Math.random())}return f.addEventListener("load",g),f.addEventListener("error",v),e&&(f.crossOrigin=e),r&&(f.referrerPolicy=r),f.src=t,function(){f.removeEventListener("load",g),f.removeEventListener("error",v)}},[t,e,r]),[a.current,n.current]};const nx=yi(qT);var HT={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ax=t=>{let e;const r=new Set,n=(u,c)=>{const d=typeof u=="function"?u(e):u;if(!Object.is(d,e)){const f=e;e=c??(typeof d!="object"||d===null)?d:Object.assign({},e,d),r.forEach(g=>g(e,f))}},a=()=>e,i={setState:n,getState:a,getInitialState:()=>l,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(HT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=e=t(n,a,i);return i},KT=t=>t?ax(t):ax;var ix={exports:{}},ox={},sx={exports:{}},lx={};/** +* @license React +* use-sync-external-store-shim.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var ul=I;function YT(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var QT=typeof Object.is=="function"?Object.is:YT,XT=ul.useState,JT=ul.useEffect,ZT=ul.useLayoutEffect,eL=ul.useDebugValue;function tL(t,e){var r=e(),n=XT({inst:{value:r,getSnapshot:e}}),a=n[0].inst,i=n[1];return ZT(function(){a.value=r,a.getSnapshot=e,Vv(a)&&i({inst:a})},[t,r,e]),JT(function(){return Vv(a)&&i({inst:a}),t(function(){Vv(a)&&i({inst:a})})},[t]),eL(r),r}function Vv(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!QT(t,r)}catch{return!0}}function rL(t,e){return e()}var nL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rL:tL;lx.useSyncExternalStore=ul.useSyncExternalStore!==void 0?ul.useSyncExternalStore:nL,sx.exports=lx;var aL=sx.exports;/** +* @license React +* use-sync-external-store-shim/with-selector.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var Kf=I,iL=aL;function oL(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var sL=typeof Object.is=="function"?Object.is:oL,lL=iL.useSyncExternalStore,uL=Kf.useRef,cL=Kf.useEffect,dL=Kf.useMemo,hL=Kf.useDebugValue;ox.useSyncExternalStoreWithSelector=function(t,e,r,n,a){var i=uL(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=dL(function(){function c(y){if(!d){if(d=!0,f=y,y=n(y),a!==void 0&&l.hasValue){var b=l.value;if(a(b,y))return g=b}return g=y}if(b=g,sL(f,y))return b;var S=n(y);return a!==void 0&&a(b,S)?b:(f=y,g=S)}var d=!1,f,g,v=r===void 0?null:r;return[function(){return c(e())},v===null?void 0:function(){return c(v())}]},[e,r,n,a]);var u=lL(t,i[0],i[1]);return cL(function(){l.hasValue=!0,l.value=u},[u]),hL(u),u},ix.exports=ox;var fL=ix.exports;const pL=yi(fL);var ux={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:mL}=z,{useSyncExternalStoreWithSelector:gL}=pL;let cx=!1;const vL=t=>t;function yL(t,e=vL,r){(ux?"production":void 0)!=="production"&&r&&!cx&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),cx=!0);const n=gL(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,r);return mL(n),n}const dx=t=>{(ux?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?KT(t):t,r=(n,a)=>yL(e,n,a);return Object.assign(r,e),r},bL=t=>t?dx(t):dx;var Yf={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Gv=new Map,Qf=t=>{const e=Gv.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([r,n])=>[r,n.getState()])):{}},kL=(t,e,r)=>{if(t===void 0)return{type:"untracked",connection:e.connect(r)};const n=Gv.get(r.name);if(n)return{type:"tracked",store:t,...n};const a={connection:e.connect(r),stores:{}};return Gv.set(r.name,a),{type:"tracked",store:t,...a}},wL=(t,e={})=>(r,n,a)=>{const{enabled:i,anonymousActionType:l,store:u,...c}=e;let d;try{d=(i??(Yf?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return(Yf?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(r,n,a);const{connection:f,...g}=kL(u,d,c);let v=!0;a.setState=(S,E,x)=>{const w=r(S,E);if(!v)return w;const m=x===void 0?{type:l||"anonymous"}:typeof x=="string"?{type:x}:x;return u===void 0?(f?.send(m,n()),w):(f?.send({...m,type:`${u}/${m.type}`},{...Qf(c.name),[u]:a.getState()}),w)};const y=(...S)=>{const E=v;v=!1,r(...S),v=E},b=t(a.setState,n,a);if(g.type==="untracked"?f?.init(b):(g.stores[g.store]=a,f?.init(Object.fromEntries(Object.entries(g.stores).map(([S,E])=>[S,S===g.store?b:E.getState()])))),a.dispatchFromDevtools&&typeof a.dispatch=="function"){let S=!1;const E=a.dispatch;a.dispatch=(...x)=>{(Yf?"production":void 0)!=="production"&&x[0].type==="__setState"&&!S&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),S=!0),E(...x)}}return f.subscribe(S=>{var E;switch(S.type){case"ACTION":if(typeof S.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Wv(S.payload,x=>{if(x.type==="__setState"){if(u===void 0){y(x.state);return}Object.keys(x.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const w=x.state[u];if(w==null)return;JSON.stringify(a.getState())!==JSON.stringify(w)&&y(w);return}a.dispatchFromDevtools&&typeof a.dispatch=="function"&&a.dispatch(x)});case"DISPATCH":switch(S.payload.type){case"RESET":return y(b),u===void 0?f?.init(a.getState()):f?.init(Qf(c.name));case"COMMIT":if(u===void 0){f?.init(a.getState());return}return f?.init(Qf(c.name));case"ROLLBACK":return Wv(S.state,x=>{if(u===void 0){y(x),f?.init(a.getState());return}y(x[u]),f?.init(Qf(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Wv(S.state,x=>{if(u===void 0){y(x);return}JSON.stringify(a.getState())!==JSON.stringify(x[u])&&y(x[u])});case"IMPORT_STATE":{const{nextLiftedState:x}=S.payload,w=(E=x.computedStates.slice(-1)[0])==null?void 0:E.state;if(!w)return;y(u===void 0?w:w[u]),f?.send(null,x);return}case"PAUSE_RECORDING":return v=!v}return}}),b},xL=wL,Wv=(t,e)=>{let r;try{r=JSON.parse(t)}catch(n){console.error("[zustand devtools middleware] Could not parse the received json",n)}r!==void 0&&e(r)};function SL(t,e){let r;try{r=t()}catch{return}return{getItem:n=>{var a;const i=u=>u===null?null:JSON.parse(u,e?.reviver),l=(a=r.getItem(n))!=null?a:null;return l instanceof Promise?l.then(i):i(l)},setItem:(n,a)=>r.setItem(n,JSON.stringify(a,e?.replacer)),removeItem:n=>r.removeItem(n)}}const ec=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return ec(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return ec(n)(r)}}}},CL=(t,e)=>(r,n,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...e},l=!1;const u=new Set,c=new Set;let d;try{d=i.getStorage()}catch{}if(!d)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...E)},n,a);const f=ec(i.serialize),g=()=>{const E=i.partialize({...n()});let x;const w=f({state:E,version:i.version}).then(m=>d.setItem(i.name,m)).catch(m=>{x=m});if(x)throw x;return w},v=a.setState;a.setState=(E,x)=>{v(E,x),g()};const y=t((...E)=>{r(...E),g()},n,a);let b;const S=()=>{var E;if(!d)return;l=!1,u.forEach(w=>w(n()));const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,n()))||void 0;return ec(d.getItem.bind(d))(i.name).then(w=>{if(w)return i.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var m;return b=i.merge(w,(m=n())!=null?m:y),r(b,!0),g()}).then(()=>{x?.(b,void 0),l=!0,c.forEach(w=>w(b))}).catch(w=>{x?.(void 0,w)})};return a.persist={setOptions:E=>{i={...i,...E},E.getStorage&&(d=E.getStorage())},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>S(),hasHydrated:()=>l,onHydrate:E=>(u.add(E),()=>{u.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},S(),b||y},_L=(t,e)=>(r,n,a)=>{let i={storage:SL(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...e},l=!1;const u=new Set,c=new Set;let d=i.storage;if(!d)return t((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...S)},n,a);const f=()=>{const S=i.partialize({...n()});return d.setItem(i.name,{state:S,version:i.version})},g=a.setState;a.setState=(S,E)=>{g(S,E),f()};const v=t((...S)=>{r(...S),f()},n,a);a.getInitialState=()=>v;let y;const b=()=>{var S,E;if(!d)return;l=!1,u.forEach(w=>{var m;return w((m=n())!=null?m:v)});const x=((E=i.onRehydrateStorage)==null?void 0:E.call(i,(S=n())!=null?S:v))||void 0;return ec(d.getItem.bind(d))(i.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var m;return y=i.merge(w,(m=n())!=null?m:v),r(y,!0),f()}).then(()=>{x?.(y,void 0),y=n(),l=!0,c.forEach(w=>w(y))}).catch(w=>{x?.(void 0,w)})};return a.persist={setOptions:S=>{i={...i,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>l,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(c.add(S),()=>{c.delete(S)})},i.skipHydration||b(),y||v},EL=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((Yf?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),CL(t,e)):_L(t,e),PL=EL,hx=[{id:1,image:"./frame/frame_1.png",front:"./frame/frame_1_front.png"},{id:2,image:"./frame/frame_2.png",front:"./frame/frame_2_front.png"},{id:3,image:"./frame/frame_3.png",front:"./frame/frame_3_front.png"},{id:4,image:"./frame/frame_4.png",front:"./frame/frame_4_front.png"},{id:5,image:"./frame/frame_5.png",front:"./frame/frame_5_front.png"}],ML=[{id:"Betende_Frau_Maria",image:"./sticker/Betende_Frau_Maria.png"},{id:"Blumentopf",image:"./sticker/Blumentopf.png"},{id:"Blume",image:"./sticker/Blume.png"},{id:"Frau_in_gelbem_Kleid",image:"./sticker/Frau_in_gelbem_Kleid.png"},{id:"Magd",image:"./sticker/Magd.png"},{id:"Mann_liegend",image:"./sticker/Mann_liegend.png"},{id:"Mann",image:"./sticker/Mann.png"},{id:"Mucha_Dekor",image:"./sticker/Mucha_Dekor.png"},{id:"The_Hare",image:"./sticker/The_Hare.png"},{id:"Wasserspeier",image:"./sticker/Wasserspeier.png"}],fx=[{id:"http://www.wikidata.org/entity/Q20355536",name:"A Street in Torello, Italy",year:"1890",country:"Denmark",location:"Statens Museum for Kunst",creator:"Peder Severin Kr\xF8yer",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS1435",identifier:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/z603r155c_KMS1435.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q20537703",name:"At the French Windows. The Artist's Wife",year:"1897",country:"Denmark",location:"Statens Museum for Kunst",creator:"Laurits Andersen Ring",url:"https://api.smk.dk/api/v1/iiif/manifest/?id=KMS3716",identifier:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2",image:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/400,/0/default.jpg",thumbnail:"https://iip.smk.dk/iiif/jp2/1544bs13w_kms3716.tif.reconstructed.tif.jp2/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297795",name:"Brot! (Bread!)",year:"1924",country:"Germany",location:"Vanderbilt University Fine Arts Gallery",creator:"K\xE4the Kollwitz",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1977/1977.011.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1977%2F1977.011.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103297971",name:"Business-Man, ffrom Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Belgium",location:"Vanderbilt University Fine Arts Gallery",creator:"Frans Masereel",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.032.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.032.med.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q3698180",name:"Calvary",year:"1475",country:"Belgium",location:"Royal Museum of Fine Arts Antwerp",creator:"Antonello da Messina",url:"https://iiif.kmska.be/iiif/2/5/manifest.json",identifier:"https://iiif.kmska.be/c/iiif/2/public@5.tif",image:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.kmska.be/c/iiif/2/public@5.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q103300860",name:"Half-Figure Prophet",year:"1450",country:"France",location:"Vanderbilt University Fine Arts Gallery",creator:"http://www.wikidata.org/.well-known/genid/d7c4865c9fae865605be887d7277ab75",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1975/1975.005.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1975%2F1975.005.jpg/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102967848",name:"Landscape with Shepherds",year:"",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Jan Both",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0195P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0195P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q106582838",name:"The Blacksmith Worker",year:"",country:"Switzerland",location:"Vanderbilt University Fine Arts Gallery",creator:"Antonello da Messina",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.036.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.036.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q104032628",name:"The Empty Jug",year:"1653",country:"Netherlands",location:"Vanderbilt University Fine Arts Gallery",creator:"Adriaen van Ostade",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1979/1979.0845P.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1979%2F1979.0845P.tif/full/100,100/0/default.jpg"},{id:"http://www.wikidata.org/entity/Q102975484",name:"Trostung (Consolation), from Genius, Zeitschrift f\xFCr werdende und alte Kunst (Magazine for Emerging and Ancient Art), Year 2, no. 1",year:"1920",country:"Austria",location:"Vanderbilt University Fine Arts Gallery",creator:"Georg Ehrlich",url:"https://iiif-manifest.library.vanderbilt.edu/gallery/1976/1976.031.json",identifier:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg",image:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/400,/0/default.jpg",thumbnail:"https://iiif.library.vanderbilt.edu/iiif/2/gallery%2F1976%2F1976.031.med.jpg/full/100,100/0/default.jpg"}],ii=bL()(xL(PL(t=>({addToArtwork:(e,r)=>t(n=>({artworkList:[{id:e,image:r},...n.artworkList]})),addToCanvas:(e,r,n)=>t(a=>({canvasList:[...a.canvasList,{brightness:0,height:400,id:`${a.canvasList.length+1}`,image:e,isDragging:!1,opacity:1,width:400,x:r,y:n}]})),addToImageList:e=>t(r=>({imageList:[...r.imageList,...e]})),removeFromImageList:e=>t(r=>({imageList:r.imageList.filter(n=>n.id!==e)})),artworkList:ML,canvasList:[],frame:hx[1],imageList:fx.sort(()=>Math.random()-.5),imageLikeList:[],likeImage:e=>t(r=>({imageLikeList:[...r.imageLikeList,e]})),resetState:()=>t(()=>({imageList:fx.sort(()=>Math.random()-.5),canvasList:[],imageLikeList:[]})),removeFromCanvas:e=>t(r=>({canvasList:r.canvasList.filter(n=>n.id!==e)})),setFrame:e=>t(()=>({frame:hx.find(r=>r.id===e)})),transformCanvasImage:e=>t(r=>({canvasList:r.canvasList.map(n=>n.id!==e.id?n:{...n,height:e.height,width:e.width,x:e.x,y:e.y,brightness:e.brightness,opacity:e.opacity})})),moveCanvasImage:(e,r)=>t(n=>{const a=n.canvasList.findIndex(i=>i.id===e);if(a!==-1){const i=r?a-1:a+1;if(i>=0&&i{const{frame:e}=ii(),[r]=nx(t?e.front:e.image,"anonymous");return te.jsx(rx,{image:r,draggable:!1})},IL=({canvasImage:t,isSelected:e,onSelect:r})=>{const n=I.useRef(),a=I.useRef(),[i]=nx(t.image),l=ii(f=>f.transformCanvasImage);I.useEffect(()=>{var f;e&&(a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw())},[e]),I.useEffect(()=>{const f=new window.Image;f.crossOrigin="Anonymous",f.src=t.image,f.onload=()=>{var g;n.current&&(n.current.image(f),(g=n.current.getLayer())==null||g.batchDraw())}},[t.image]);const u=()=>{l({...t,isDragging:!0})},c=f=>{l({...t,isDragging:!1,x:f.target.x(),y:f.target.y()})},d=()=>{var f;const g=n.current,v=g.scaleX(),y=g.scaleY(),b=Math.max(5,g.width()*v),S=Math.max(g.height()*y);l({...t,x:g.x(),y:g.y(),width:b,height:S}),a.current.nodes([n.current]),(f=a.current.getLayer())==null||f.batchDraw()};return te.jsxs(te.Fragment,{children:[te.jsx(rx,{draggable:!0,id:t.id,image:i,onClick:r,onDragEnd:c,onDragStart:u,onTap:r,onTransformEnd:d,ref:n,x:t.x,y:t.y,scaleX:.5,scaleY:.5,opacity:t.opacity||1,brightness:t.brightness||0},t.id),e&&te.jsx(GT,{ref:a,flipEnabled:!1,enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]})]})},NL=()=>{const{addToCanvas:t,artworkList:e,canvasList:r,frame:n,moveCanvasImage:a,removeFromCanvas:i,setFrame:l,transformCanvasImage:u}=ii(),c=I.useRef(null),[d,f]=I.useState(""),[g,v]=I.useState(1),[y,b]=I.useState(1),S=1080,E=1080;I.useEffect(()=>{const j=()=>{const L=(window.innerWidth*.9||0)/S;c.current&&(c.current.width(S*L),c.current.height(E*L),c.current.scale({x:L,y:L}))};return j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}},[]);const x=j=>{j.target===j.target.getStage()&&f("")},w=j=>{j.preventDefault();const L=j.dataTransfer.getData("text/plain"),U=e.find(H=>H.id===L);if(U){const H=c.current;if(H){const q=j.clientX-H.container().getBoundingClientRect().left,ne=j.clientY-H.container().getBoundingClientRect().top;t(U.image,q,ne)}}},m=j=>{d&&a(d,j)},C=j=>{v(j);const L=r.find(U=>U.id===d);L&&u({...L,brightness:j})},N=j=>{b(j);const L=r.find(U=>U.id===d);L&&u({...L,opacity:j})},O=()=>{i(d),f("")},A=()=>{navigator.share?navigator.share({title:"GLAMorous Europe",text:"Check out my GLAMorous Europe artwork!",url:window.location.href}).then(()=>console.log("Share successful")).catch(j=>console.error("Error sharing:",j)):console.log("Web Share API not supported")},R=()=>{var j;const L=(j=c.current)==null?void 0:j.toDataURL();L&&eE.saveAs(L,"GLAMorousEurope.png")};return te.jsxs(te.Fragment,{children:[te.jsxs("div",{className:"toolbar",children:[te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>m(!0),children:te.jsx(kn,{material:te.jsx(S_,{className:"w-6 h-6"})})}),te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>m(!1),children:te.jsx(kn,{material:te.jsx(k_,{className:"w-6 h-6"})})}),d&&te.jsxs("div",{children:[te.jsx("label",{htmlFor:"brightnessSlider",children:"Brightness:"}),te.jsx("input",{id:"brightnessSlider",type:"range",min:"0",max:"2",step:"0.01",value:g,onChange:j=>C(parseFloat(j.target.value))}),te.jsx("label",{htmlFor:"opacitySlider",children:"Opacity:"}),te.jsx("input",{id:"opacitySlider",type:"range",min:"0",max:"1",step:"0.01",value:y,onChange:j=>N(parseFloat(j.target.value))})]}),te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:O,children:te.jsx(kn,{material:te.jsx(Z_,{className:"w-6 h-6"})})})]}),te.jsxs("div",{className:"mx-auto flex items-center gap-2",onDrop:w,onDragOver:j=>j.preventDefault(),children:[te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>l(Math.max(1,n.id-1)),children:te.jsx(kn,{material:te.jsx(E_,{className:"w-6 h-6"})})}),te.jsxs(WT,{width:S,height:E,ref:c,onMouseDown:x,onTouchStart:x,children:[te.jsxs(tx,{children:[te.jsx(px,{front:!1}),r.map(j=>te.jsx(IL,{canvasImage:j,isSelected:j.id===d,onSelect:()=>{f(j.id)}},j.id))]}),te.jsx(tx,{listening:!1,children:te.jsx(px,{front:!0})})]}),te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:()=>l(Math.min(5,n.id+1)),children:te.jsx(kn,{material:te.jsx(I_,{className:"w-6 h-6"})})})]}),te.jsxs("div",{className:"flex gap-2 mx-auto",children:[te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:A,children:te.jsx(kn,{material:te.jsx(H_,{className:"w-6 h-6"})})}),te.jsx(Vr,{className:"p-4 text-xl text-black",rounded:!0,inline:!0,onClick:R,children:te.jsx(kn,{material:te.jsx(v_,{className:"w-6 h-6"})})})]})]})};function OL(){const{t}=Fu(),{artworkList:e}=ii();return te.jsxs(Xa,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[te.jsx("div",{className:"p-2 m-4",children:te.jsx("h1",{className:"text-2xl",children:t("artworkTitle")})}),te.jsx(Xa,{className:"flex flex-wrap mx-auto",children:e.map((r,n)=>te.jsx("img",{src:r.image,alt:r.id,role:"presentation",style:{display:"block",maxHeight:"150px",width:"auto",height:"auto",cursor:"move",borderRadius:"5px",margin:"4px"},draggable:!0,onDragStart:a=>{a.dataTransfer.setData("text/plain",r.id)}},r.id+n))}),e.length===0?te.jsx(Vr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-20",rounded:!0,inline:!0,children:te.jsx(Th,{to:"/selection",children:t("artworkEmpty")})}):te.jsx(NL,{})]})}const RL="modulepreload",TL=function(t){return"/"+t},mx={},LL=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link");n=Promise.all(e.map(i=>{if(i=TL(i),i in mx)return;mx[i]=!0;const l=i.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(r)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":RL,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return n.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};async function FL(t){try{const e=await fetch(t);if(!e.ok)throw new Error(e.statusText);const r=await e.json();return"@type"in r?r["@type"]!="sc:Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type of sc:Manifest but has a type of: "+r["@type"]),null):AL(r):"type"in r?r.type!="Manifest"?(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a type of Manifest but has a type of: "+r.type),null):zL(r):(console.log("The JSON for this Manifest doesn't look like a Manifest. It should have either a @type or type value of Manifest"),null)}catch(e){return console.log("I was unable to get the Manifest you supplied due to: "+e),null}}function jL(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function AL(t){var e,r,n;if("sequences"in t){let a=t.sequences;jL(a)&&(a=[a]);let i=!1;for(const l of a)if("canvases"in l){i=!0;for(const u of l.canvases){const c=(n=(r=(e=u.images[0])==null?void 0:e.resource)==null?void 0:r.service)==null?void 0:n["@id"];if(c)return c}}else i||console.log("The manifest you supplied contains no canvases so there are no images to show.")}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function zL(t){if("items"in t){const e=t.items;for(const r of e){const n=r.items[0].items[0].body.service[0]["@id"];if(n)return n}}else console.log("The manifest you supplied contains no sequence so there are no images to show.");return null}function gx(t,e){const r=window.getComputedStyle(t);return parseInt(r.getPropertyValue(e),10)}function DL(t,e){const{width:r,height:n}=e,a=1080,i="0",l="default",u=".jpg",c=document.querySelector(".displayregioncontainer"),d=document.querySelector(".displayregion");if(!c||!d)throw new Error("Canvas or selection element not found");const{clientWidth:f,clientHeight:g}=c,v=r*g/n,y=(f-v)/2,b=r/v,S=9,E=gx(d,"left"),x=gx(d,"top"),w=Math.round(d.clientWidth+S),m=Math.round(d.clientHeight+S),C=Math.max(Math.round((E-y)*b),0),N=Math.max(Math.round(x*b),0),O=Math.min(Math.round(w*b),r),A=Math.min(Math.round(m*b),n),R=`${C},${N},${O},${A}`;return console.log(`Calculated selection region (x, y, width, height): ${R}`),`${t}/${R}/${a},/${i}/${l}${u}`}const vx={fetchIIIFIdentifier:async t=>{try{return await FL(t)}catch(e){return console.error(e),null}},getCroppedImagePath:async t=>{try{const e=t+"/info.json",r=await fetch(e);if(!r.ok)throw new Error(r.statusText);const n=await r.json();return DL(t,n)}catch(e){console.error(e)}}},BL=I.lazy(()=>LL(()=>import("./index-S9-2WBXx.js"),kp([]))),UL={canvasBackgroundColor:"010A01",gestureSettingsTouch:{dragToPan:!1,dblClickToZoom:!1,dblClickDragToZoom:!1,flickEnabled:!1,pinchRotate:!0},informationPanel:{open:!1},openSeadragon:{loadTilesWithAjax:!0,showNavigationControl:!1,showHomeControl:!1,showFullPageControl:!1,showRotationControl:!1,showFlipControl:!1},showTitle:!1,showIIIFBadge:!1,showZoomControl:!1},$L={colors:{primary:"#BC13FE",accent:"#BC13FE",secondary:"#EDECEA"}};function VL(){const{t}=Fu(),{imageLikeList:e}=ii(),r=ii(u=>u.addToArtwork),[n,a]=I.useState(e[0]||null),i=u=>{a(u)},l=async(u,c)=>{try{const d=await vx.getCroppedImagePath(c);console.log("Cropped image path: ",d),d&&r(u,d)}catch(d){console.error("Error:",d)}};return te.jsxs(Xa,{className:"flex flex-col flex-wrap gap-2 container justify-center content-center text-center mx-auto",children:[te.jsx("div",{className:"p-2 m-4",children:te.jsx("h1",{className:"text-2xl",children:t("collectionTitle")})}),te.jsx(Xa,{className:"flex flex-wrap mx-auto my-0",children:e.map(u=>te.jsx("img",{src:u.thumbnail,alt:u.name,onClick:()=>i(u),style:{cursor:"pointer",margin:"4px"},role:"presentation"},u.id))}),n&&te.jsxs(Xa,{className:"space-y-4 my-0",children:[te.jsx(I.Suspense,{fallback:te.jsxs("h2",{children:["\u{1F300} ",t("collectionLoading")]}),children:te.jsx(BL,{iiifContent:n.url,options:UL,customTheme:$L})}),te.jsx(Vr,{className:"p-4 text-xl text-black w-2/3 mx-auto h-16",rounded:!0,inline:!0,onClick:()=>l(n?.id,n?.identifier),children:t("collectionAddText")})]})]})}function GL(){const{t}=Fu();return te.jsx(h3,{theme:"material",children:te.jsxs(A1,{children:[te.jsxs(x3,{labels:!0,icons:!0,className:"left-0 bottom-0 fixed k-color-brand-primary text-center",innerClassName:"tabbar-inner",children:[te.jsx(Bu,{active:Vi({path:Dn("/").pathname,end:!0}),to:"/",component:Lh,icon:te.jsx(kn,{material:te.jsx(U_,{className:"w-10 h-10"}),className:`transition duration-300 ${Vi({path:Dn("/").pathname,end:!0})&&"animate-pulse"}`}),label:t("start"),touchRipple:!1}),te.jsx(Bu,{active:Vi({path:Dn("/selection").pathname,end:!0}),to:"/selection",component:Lh,icon:te.jsx(kn,{material:te.jsx(z_,{className:"w-10 h-10"}),className:`transition duration-300 ${Vi({path:Dn("/selection").pathname,end:!0})&&"animate-pulse"}`}),label:t("selection"),touchRipple:!1}),te.jsx(Bu,{active:Vi({path:Dn("/collection").pathname,end:!0}),to:"/collection",component:Lh,icon:te.jsx(kn,{material:te.jsx(Q_,{className:"w-10 h-10"}),className:`transition duration-300 ${Vi({path:Dn("/collection").pathname,end:!0})&&"animate-pulse"}`}),label:t("collection"),touchRipple:!1}),te.jsx(Bu,{active:Vi({path:Dn("/creation").pathname,end:!0}),to:"/creation",component:Lh,icon:te.jsx(kn,{material:te.jsx(G_,{className:"w-10 h-10"}),className:`transition duration-300 ${Vi({path:Dn("/creation").pathname,end:!0})&&"animate-pulse"}`}),label:t("artwork"),touchRipple:!1})]}),te.jsx("main",{className:"h-[calc(100%_-_128px)] overflow-auto",children:te.jsx(ZC,{})})]})})}var yx={exports:{}},bx={exports:{}},kx={exports:{}},wx={exports:{}},xx={exports:{}},qv=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,qL=Object.getOwnPropertyNames,HL=Object.prototype.hasOwnProperty,Sx=(t,e)=>{for(var r in e)qv(t,r,{get:e[r],enumerable:!0})},KL=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of qL(e))!HL.call(t,a)&&a!==r&&qv(t,a,{get:()=>e[a],enumerable:!(n=WL(e,a))||n.enumerable});return t},YL=t=>KL(qv({},"__esModule",{value:!0}),t),Cx={};Sx(Cx,{FluidValue:()=>pF,Globals:()=>_x,addFluidObserver:()=>mF,callFluidObserver:()=>r8,callFluidObservers:()=>fF,clamp:()=>Bx,colorToRgba:()=>ay,colors:()=>iF,createInterpolator:()=>iy,createStringInterpolator:()=>wF,defineHidden:()=>JL,deprecateDirectCall:()=>_F,deprecateInterpolate:()=>SF,each:()=>Rx,eachProp:()=>eF,easings:()=>cF,flush:()=>Tx,flushCalls:()=>rF,frameLoop:()=>Ax,getFluidObservers:()=>hF,getFluidValue:()=>t8,hasFluidValue:()=>dF,hex3:()=>Wx,hex4:()=>qx,hex6:()=>Hx,hex8:()=>Kx,hsl:()=>Vx,hsla:()=>Gx,is:()=>Sa,isAnimatedString:()=>EF,isEqual:()=>ZL,isSSR:()=>Jf,noop:()=>Ox,onResize:()=>s8,onScroll:()=>LF,once:()=>sy,prefix:()=>lp,raf:()=>ut,removeFluidObserver:()=>gF,rgb:()=>Ux,rgba:()=>$x,setFluidGetter:()=>n8,toArray:()=>tF,useConstant:()=>jF,useForceUpdate:()=>BF,useIsomorphicLayoutEffect:()=>uy,useMemoOne:()=>UF,useOnce:()=>GF,usePrev:()=>qF,useReducedMotion:()=>KF});var QL=YL(Cx),_x={};Sx(_x,{assign:()=>jx,colors:()=>eo,createStringInterpolator:()=>Zv,skipAnimation:()=>Fx,to:()=>Lx,willAdvance:()=>ey});var Hv=rc(),ut=t=>tc(t,Hv),Kv=rc();ut.write=t=>tc(t,Kv);var Xf=rc();ut.onStart=t=>tc(t,Xf);var Yv=rc();ut.onFrame=t=>tc(t,Yv);var Qv=rc();ut.onFinish=t=>tc(t,Qv);var cl=[];ut.setTimeout=(t,e)=>{let r=ut.now()+e,n=()=>{let i=cl.findIndex(l=>l.cancel==n);~i&&cl.splice(i,1),Zi-=~i?1:0},a={time:r,handler:t,cancel:n};return cl.splice(Ex(r),0,a),Zi+=1,Px(),a};var Ex=t=>~(~cl.findIndex(e=>e.time>t)||~cl.length);ut.cancel=t=>{Xf.delete(t),Yv.delete(t),Qv.delete(t),Hv.delete(t),Kv.delete(t)},ut.sync=t=>{Jv=!0,ut.batchedUpdates(t),Jv=!1},ut.throttle=t=>{let e;function r(){try{t(...e)}finally{e=null}}function n(...a){e=a,ut.onStart(r)}return n.handler=t,n.cancel=()=>{Xf.delete(r),e=null},n};var Xv=typeof window<"u"?window.requestAnimationFrame:()=>{};ut.use=t=>Xv=t,ut.now=typeof performance<"u"?()=>performance.now():Date.now,ut.batchedUpdates=t=>t(),ut.catch=console.error,ut.frameLoop="always",ut.advance=()=>{ut.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ix()};var Ji=-1,Zi=0,Jv=!1;function tc(t,e){Jv?(e.delete(t),t(0)):(e.add(t),Px())}function Px(){Ji<0&&(Ji=0,ut.frameLoop!=="demand"&&Xv(Mx))}function XL(){Ji=-1}function Mx(){~Ji&&(Xv(Mx),ut.batchedUpdates(Ix))}function Ix(){let t=Ji;Ji=ut.now();let e=Ex(Ji);if(e&&(Nx(cl.splice(0,e),r=>r.handler()),Zi-=e),!Zi){XL();return}Xf.flush(),Hv.flush(t?Math.min(64,Ji-t):16.667),Yv.flush(),Kv.flush(),Qv.flush()}function rc(){let t=new Set,e=t;return{add(r){Zi+=e==t&&!t.has(r)?1:0,t.add(r)},delete(r){return Zi-=e==t&&t.has(r)?1:0,t.delete(r)},flush(r){e.size&&(t=new Set,Zi-=e.size,Nx(e,n=>n(r)&&t.add(n)),Zi+=t.size,e=t)}}}function Nx(t,e){t.forEach(r=>{try{e(r)}catch(n){ut.catch(n)}})}function Ox(){}var JL=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),Sa={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function ZL(t,e){if(Sa.arr(t)){if(!Sa.arr(e)||t.length!==e.length)return!1;for(let r=0;rt.forEach(e);function eF(t,e,r){if(Sa.arr(t)){for(let n=0;nSa.und(t)?[]:Sa.arr(t)?t:[t];function Tx(t,e){if(t.size){let r=Array.from(t);t.clear(),Rx(r,e)}}var rF=(t,...e)=>Tx(t,r=>r(...e)),Jf=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zv,Lx,eo=null,Fx=!1,ey=Ox,jx=t=>{t.to&&(Lx=t.to),t.now&&(ut.now=t.now),t.colors!==void 0&&(eo=t.colors),t.skipAnimation!=null&&(Fx=t.skipAnimation),t.createStringInterpolator&&(Zv=t.createStringInterpolator),t.requestAnimationFrame&&ut.use(t.requestAnimationFrame),t.batchedUpdates&&(ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(ey=t.willAdvance),t.frameLoop&&(ut.frameLoop=t.frameLoop)},nc=new Set,Un=[],ty=[],Zf=0,Ax={get idle(){return!nc.size&&!Un.length},start(t){Zf>t.priority?(nc.add(t),ut.onStart(nF)):(zx(t),ut(ry))},advance:ry,sort(t){if(Zf)ut.onFrame(()=>Ax.sort(t));else{let e=Un.indexOf(t);~e&&(Un.splice(e,1),Dx(t))}},clear(){Un=[],nc.clear()}};function nF(){nc.forEach(zx),nc.clear(),ut(ry)}function zx(t){Un.includes(t)||Dx(t)}function Dx(t){Un.splice(aF(Un,e=>e.priority>t.priority),0,t)}function ry(t){let e=ty;for(let r=0;r0}function aF(t,e){let r=t.findIndex(e);return r<0?t.length:r}var Bx=(t,e,r)=>Math.min(Math.max(r,t),e),iF={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},oa="[-+]?\\d*\\.?\\d+",ep=oa+"%";function tp(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Ux=new RegExp("rgb"+tp(oa,oa,oa)),$x=new RegExp("rgba"+tp(oa,oa,oa,oa)),Vx=new RegExp("hsl"+tp(oa,ep,ep)),Gx=new RegExp("hsla"+tp(oa,ep,ep,oa)),Wx=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qx=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hx=/^#([0-9a-fA-F]{6})$/,Kx=/^#([0-9a-fA-F]{8})$/;function oF(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Hx.exec(t))?parseInt(e[1]+"ff",16)>>>0:eo&&eo[t]!==void 0?eo[t]:(e=Ux.exec(t))?(dl(e[1])<<24|dl(e[2])<<16|dl(e[3])<<8|255)>>>0:(e=$x.exec(t))?(dl(e[1])<<24|dl(e[2])<<16|dl(e[3])<<8|Xx(e[4]))>>>0:(e=Wx.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Kx.exec(t))?parseInt(e[1],16)>>>0:(e=qx.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Vx.exec(t))?(Yx(Qx(e[1]),rp(e[2]),rp(e[3]))|255)>>>0:(e=Gx.exec(t))?(Yx(Qx(e[1]),rp(e[2]),rp(e[3]))|Xx(e[4]))>>>0:null}function ny(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Yx(t,e,r){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n,i=ny(a,n,t+1/3),l=ny(a,n,t),u=ny(a,n,t-1/3);return Math.round(i*255)<<24|Math.round(l*255)<<16|Math.round(u*255)<<8}function dl(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function Qx(t){return(parseFloat(t)%360+360)%360/360}function Xx(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function rp(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function ay(t){let e=oF(t);if(e===null)return t;e=e||0;let r=(e&4278190080)>>>24,n=(e&16711680)>>>16,a=(e&65280)>>>8,i=(e&255)/255;return`rgba(${r}, ${n}, ${a}, ${i})`}var iy=(t,e,r)=>{if(Sa.fun(t))return t;if(Sa.arr(t))return iy({range:t,output:e,extrapolate:r});if(Sa.str(t.output[0]))return Zv(t);let n=t,a=n.output,i=n.range||[0,1],l=n.extrapolateLeft||n.extrapolate||"extend",u=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(d=>d);return d=>{let f=lF(d,i);return sF(d,i[f],i[f+1],a[f],a[f+1],c,l,u,n.map)}};function sF(t,e,r,n,a,i,l,u,c){let d=c?c(t):t;if(dr){if(u==="identity")return d;u==="clamp"&&(d=r)}return n===a?n:e===r?t<=e?n:a:(e===-1/0?d=-d:r===1/0?d=d-e:d=(d-e)/(r-e),d=i(d),n===-1/0?d=-d:a===1/0?d=d+n:d=d*(a-n)+n,d)}function lF(t,e){for(var r=1;r=t);++r);return r-1}var uF=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*t,a=e==="end"?Math.floor(n):Math.ceil(n);return Bx(0,1,a/t)},np=1.70158,ap=np*1.525,Jx=np+1,Zx=2*Math.PI/3,e8=2*Math.PI/4.5,ip=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,cF={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>Jx*t*t*t-np*t*t,easeOutBack:t=>1+Jx*Math.pow(t-1,3)+np*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((ap+1)*2*t-ap)/2:(Math.pow(2*t-2,2)*((ap+1)*(t*2-2)+ap)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*Zx),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*Zx)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*e8))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*e8)/2+1,easeInBounce:t=>1-ip(1-t),easeOutBounce:ip,easeInOutBounce:t=>t<.5?(1-ip(1-2*t))/2:(1+ip(2*t-1))/2,steps:uF},ac=Symbol.for("FluidValue.get"),hl=Symbol.for("FluidValue.observers"),dF=t=>!!(t&&t[ac]),t8=t=>t&&t[ac]?t[ac]():t,hF=t=>t[hl]||null;function r8(t,e){t.eventObserved?t.eventObserved(e):t(e)}function fF(t,e){let r=t[hl];r&&r.forEach(n=>{r8(n,e)})}var pF=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");n8(this,t)}},n8=(t,e)=>a8(t,ac,e);function mF(t,e){if(t[ac]){let r=t[hl];r||a8(t,hl,r=new Set),r.has(e)||(r.add(e),t.observerAdded&&t.observerAdded(r.size,e))}return e}function gF(t,e){let r=t[hl];if(r&&r.has(e)){let n=r.size-1;n?r.delete(e):t[hl]=null,t.observerRemoved&&t.observerRemoved(n,e)}}var a8=(t,e,r)=>Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0}),op=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,i8=new RegExp(`(${op.source})(%|[a-z]+)`,"i"),yF=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,sp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,o8=t=>{let[e,r]=bF(t);if(!e||Jf())return t;let n=window.getComputedStyle(document.documentElement).getPropertyValue(e);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||t:r&&sp.test(r)?o8(r):r||t},bF=t=>{let e=sp.exec(t);if(!e)return[,];let[,r,n]=e;return[r,n]},oy,kF=(t,e,r,n,a)=>`rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,wF=t=>{oy||(oy=eo?new RegExp(`(${Object.keys(eo).join("|")})(?!\\w)`,"g"):/^\b$/);let e=t.output.map(a=>t8(a).replace(sp,o8).replace(vF,ay).replace(oy,ay)),r=e.map(a=>a.match(op).map(Number)),n=r[0].map((a,i)=>r.map(l=>{if(!(i in l))throw Error('The arity of each "output" value must be equal');return l[i]})).map(a=>iy({...t,output:a}));return a=>{var i;let l=!i8.test(e[0])&&((i=e.find(c=>i8.test(c)))==null?void 0:i.replace(op,"")),u=0;return e[0].replace(op,()=>`${n[u++](a)}${l||""}`).replace(yF,kF)}},lp="react-spring: ",sy=t=>{let e=t,r=!1;if(typeof e!="function")throw new TypeError(`${lp}once requires a function parameter`);return(...n)=>{r||(e(...n),r=!0)}},xF=sy(console.warn);function SF(){xF(`${lp}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var CF=sy(console.warn);function _F(){CF(`${lp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function EF(t){return Sa.str(t)&&(t[0]=="#"||/\d/.test(t)||!Jf()&&sp.test(t)||t in(eo||{}))}var fl,up=new WeakMap,PF=t=>t.forEach(({target:e,contentRect:r})=>{var n;return(n=up.get(e))==null?void 0:n.forEach(a=>a(r))});function MF(t,e){fl||typeof ResizeObserver<"u"&&(fl=new ResizeObserver(PF));let r=up.get(e);return r||(r=new Set,up.set(e,r)),r.add(t),fl&&fl.observe(e),()=>{let n=up.get(e);n&&(n.delete(t),!n.size&&fl&&fl.unobserve(e))}}var cp=new Set,ic,IF=()=>{let t=()=>{cp.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},NF=t=>(cp.add(t),ic||(ic=IF()),()=>{cp.delete(t),!cp.size&&ic&&(ic(),ic=void 0)}),s8=(t,{container:e=document.documentElement}={})=>e===document.documentElement?NF(t):MF(t,e),OF=(t,e,r)=>e-t===0?1:(r-t)/(e-t),RF={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},TF=class{constructor(t,e){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=r=>{let n=this.info[r],{length:a,position:i}=RF[r];n.current=this.container[`scroll${i}`],n.scrollLength=this.container["scroll"+a]-this.container["client"+a],n.progress=OF(0,n.scrollLength,n.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=t,this.container=e,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},oc=new WeakMap,l8=new WeakMap,ly=new WeakMap,u8=t=>t===document.documentElement?window:t,LF=(t,{container:e=document.documentElement}={})=>{let r=ly.get(e);r||(r=new Set,ly.set(e,r));let n=new TF(t,e);if(r.add(n),!oc.has(e)){let i=()=>(r?.forEach(u=>u.advance()),!0);oc.set(e,i);let l=u8(e);window.addEventListener("resize",i,{passive:!0}),e!==document.documentElement&&l8.set(e,s8(i,{container:e})),l.addEventListener("scroll",i,{passive:!0})}let a=oc.get(e);return ut(a),()=>{var i;ut.cancel(a);let l=ly.get(e);if(!l||(l.delete(n),l.size))return;let u=oc.get(e);oc.delete(e),u&&(u8(e).removeEventListener("scroll",u),window.removeEventListener("resize",u),(i=l8.get(e))==null||i())}},FF=I;function jF(t){let e=(0,FF.useRef)(null);return e.current===null&&(e.current=t()),e.current}var AF=I,zF=I,c8=I,uy=Jf()?c8.useEffect:c8.useLayoutEffect,DF=()=>{let t=(0,zF.useRef)(!1);return uy(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function BF(){let t=(0,AF.useState)()[1],e=DF();return()=>{e.current&&t(Math.random())}}var cy=I;function UF(t,e){let[r]=(0,cy.useState)(()=>({inputs:e,result:t()})),n=(0,cy.useRef)(),a=n.current,i=a;return i?e&&i.inputs&&$F(e,i.inputs)||(i={inputs:e,result:t()}):i=r,(0,cy.useEffect)(()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)},[i]),i.result}function $F(t,e){if(t.length!==e.length)return!1;for(let r=0;r(0,VF.useEffect)(t,WF),WF=[],d8=I;function qF(t){let e=(0,d8.useRef)();return(0,d8.useEffect)(()=>{e.current=t}),e.current}var HF=I,KF=()=>{let[t,e]=(0,HF.useState)(null);return uy(()=>{let r=window.matchMedia("(prefers-reduced-motion)"),n=a=>{e(a.matches),jx({skipAnimation:a.matches})};return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t};xx.exports=QL;var ct=xx.exports,h8={exports:{}},YF=Object.create,dp=Object.defineProperty,QF=Object.getOwnPropertyDescriptor,XF=Object.getOwnPropertyNames,JF=Object.getPrototypeOf,ZF=Object.prototype.hasOwnProperty,ej=(t,e)=>{for(var r in e)dp(t,r,{get:e[r],enumerable:!0})},f8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of XF(e))!ZF.call(t,a)&&a!==r&&dp(t,a,{get:()=>e[a],enumerable:!(n=QF(e,a))||n.enumerable});return t},tj=(t,e,r)=>(r=t!=null?YF(JF(t)):{},f8(e||!t||!t.__esModule?dp(r,"default",{value:t,enumerable:!0}):r,t)),rj=t=>f8(dp({},"__esModule",{value:!0}),t),p8={};ej(p8,{Animated:()=>dy,AnimatedArray:()=>py,AnimatedObject:()=>pp,AnimatedString:()=>hp,AnimatedValue:()=>lc,createHost:()=>hj,getAnimated:()=>g8,getAnimatedType:()=>sj,getPayload:()=>y8,isAnimated:()=>m8,setAnimated:()=>v8});var nj=rj(p8),aj=ct,sc=Symbol.for("Animated:node"),m8=t=>!!t&&t[sc]===t,g8=t=>t&&t[sc],v8=(t,e)=>(0,aj.defineHidden)(t,sc,e),y8=t=>t&&t[sc]&&t[sc].getPayload(),dy=class{constructor(){v8(this,this)}getPayload(){return this.payload||[]}},hy=ct,lc=class extends dy{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,hy.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new lc(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return hy.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,hy.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},fy=ct,hp=class extends lc{constructor(t){super(0),this._string=null,this._toString=(0,fy.createInterpolator)({output:[t,t]})}static create(t){return new hp(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if(fy.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=(0,fy.createInterpolator)({output:[this.getValue(),t]})),this._value=0,super.reset()}},ij=ct,qo=ct,fp={dependencies:null},pp=class extends dy{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let e={};return(0,qo.eachProp)(this.source,(r,n)=>{m8(r)?e[n]=r.getValue(t):(0,qo.hasFluidValue)(r)?e[n]=(0,qo.getFluidValue)(r):t||(e[n]=r)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,qo.each)(this.payload,t=>t.reset())}_makePayload(t){if(t){let e=new Set;return(0,qo.eachProp)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){fp.dependencies&&(0,qo.hasFluidValue)(t)&&fp.dependencies.add(t);let e=y8(t);e&&(0,qo.each)(e,r=>this.add(r))}},py=class extends pp{constructor(t){super(t)}static create(t){return new py(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let e=this.getPayload();return t.length==e.length?e.map((r,n)=>r.setValue(t[n])).some(Boolean):(super.setValue(t.map(oj)),!0)}};function oj(t){return((0,ij.isAnimatedString)(t)?hp:lc).create(t)}var b8=ct;function sj(t){let e=g8(t);return e?e.constructor:b8.is.arr(t)?py:(0,b8.isAnimatedString)(t)?hp:lc}var pl=ct,lj=tj(I),uc=I,xn=ct,k8=(t,e)=>{let r=!xn.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,uc.forwardRef)((n,a)=>{let i=(0,uc.useRef)(null),l=r&&(0,uc.useCallback)(b=>{i.current=dj(a,b)},[a]),[u,c]=cj(n,e),d=(0,xn.useForceUpdate)(),f=()=>{let b=i.current;r&&!b||(b?e.applyAnimatedValues(b,u.getValue(!0)):!1)===!1&&d()},g=new uj(f,c),v=(0,uc.useRef)();(0,xn.useIsomorphicLayoutEffect)(()=>(v.current=g,(0,xn.each)(c,b=>(0,xn.addFluidObserver)(b,g)),()=>{v.current&&((0,xn.each)(v.current.deps,b=>(0,xn.removeFluidObserver)(b,v.current)),xn.raf.cancel(v.current.update))})),(0,uc.useEffect)(f,[]),(0,xn.useOnce)(()=>()=>{let b=v.current;(0,xn.each)(b.deps,S=>(0,xn.removeFluidObserver)(S,b))});let y=e.getComponentProps(u.getValue());return lj.createElement(t,{...y,ref:l})})},uj=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&xn.raf.write(this.update)}};function cj(t,e){let r=new Set;return fp.dependencies=r,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new pp(t),fp.dependencies=null,[t,r]}function dj(t,e){return t&&(xn.is.fun(t)?t(e):t.current=e),e}var w8=Symbol.for("AnimatedComponent"),hj=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:r=a=>new pp(a),getComponentProps:n=a=>a}={})=>{let a={applyAnimatedValues:e,createAnimatedStyle:r,getComponentProps:n},i=l=>{let u=x8(l)||"Anonymous";return pl.is.str(l)?l=i[l]||(i[l]=k8(l,a)):l=l[w8]||(l[w8]=k8(l,a)),l.displayName=`Animated(${u})`,l};return(0,pl.eachProp)(t,(l,u)=>{pl.is.arr(t)&&(u=x8(l)),i[u]=i(l)}),{animated:i}},x8=t=>pl.is.str(t)?t:t&&pl.is.str(t.displayName)?t.displayName:pl.is.fun(t)&&t.name||null;h8.exports=nj;var cc=h8.exports,S8={exports:{}},my,C8;function fj(){if(C8)return my;C8=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a=(d,f)=>{for(var g in f)t(d,g,{get:f[g],enumerable:!0})},i=(d,f,g,v)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of r(f))!n.call(d,y)&&y!==g&&t(d,y,{get:()=>f[y],enumerable:!(v=e(f,y))||v.enumerable});return d},l=d=>i(t({},"__esModule",{value:!0}),d),u={};a(u,{Any:()=>c}),my=l(u);var c=class{};return my}var _8;function pj(){return _8||(_8=1,S8.exports=fj()),S8.exports}(function(t){var e=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(M,T)=>{for(var B in T)r(M,B,{get:T[B],enumerable:!0})},c=(M,T,B,V)=>{if(T&&typeof T=="object"||typeof T=="function")for(let J of a(T))!l.call(M,J)&&J!==B&&r(M,J,{get:()=>T[J],enumerable:!(V=n(T,J))||V.enumerable});return M},d=(M,T,B)=>(c(M,T,"default"),B&&c(B,T,"default")),f=(M,T,B)=>(B=M!=null?e(i(M)):{},c(T||!M||!M.__esModule?r(B,"default",{value:M,enumerable:!0}):B,M)),g=M=>c(r({},"__esModule",{value:!0}),M),v={};u(v,{BailSignal:()=>dt,Controller:()=>kl,FrameValue:()=>mr,Globals:()=>Ra.Globals,Interpolation:()=>uo,Spring:()=>Oa,SpringContext:()=>$n,SpringRef:()=>es,SpringValue:()=>Ht,Trail:()=>Tr,Transition:()=>ns,config:()=>oe,createInterpolator:()=>Ta.createInterpolator,easings:()=>Ta.easings,inferTo:()=>R,interpolate:()=>as,to:()=>Op,update:()=>co,useChain:()=>ne,useInView:()=>Rr,useIsomorphicLayoutEffect:()=>Ta.useIsomorphicLayoutEffect,useReducedMotion:()=>Ta.useReducedMotion,useResize:()=>xt,useScroll:()=>si,useSpring:()=>so,useSpringRef:()=>Mp,useSpringValue:()=>Ip,useSprings:()=>Sl,useTrail:()=>xc,useTransition:()=>rs}),t.exports=g(v);var y=ct,b=ct;function S(M,...T){return b.is.fun(M)?M(...T):M}var E=(M,T)=>M===!0||!!(T&&M&&(b.is.fun(M)?M(T):(0,b.toArray)(M).includes(T))),x=(M,T)=>b.is.obj(M)?T&&M[T]:M,w=(M,T)=>M.default===!0?M[T]:M.default?M.default[T]:void 0,m=M=>M,C=(M,T=m)=>{let B=N;M.default&&M.default!==!0&&(M=M.default,B=Object.keys(M));let V={};for(let J of B){let ae=T(M[J],J);b.is.und(ae)||(V[J]=ae)}return V},N=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function A(M){let T={},B=0;if((0,b.eachProp)(M,(V,J)=>{O[J]||(T[J]=V,B++)}),B)return T}function R(M){let T=A(M);if(T){let B={to:T};return(0,b.eachProp)(M,(V,J)=>J in T||(B[J]=V)),B}return{...M}}function j(M){return M=(0,b.getFluidValue)(M),b.is.arr(M)?M.map(j):(0,b.isAnimatedString)(M)?b.Globals.createStringInterpolator({range:[0,1],output:[M,M]})(1):M}function L(M){for(let T in M)return!0;return!1}function U(M){return b.is.fun(M)||b.is.arr(M)&&b.is.obj(M[0])}function H(M,T){var B;(B=M.ref)==null||B.delete(M),T?.delete(M)}function q(M,T){var B;T&&M.ref!==T&&((B=M.ref)==null||B.delete(M),T.add(M),M.ref=T)}function ne(M,T,B=1e3){(0,y.useIsomorphicLayoutEffect)(()=>{if(T){let V=0;(0,y.each)(M,(J,ae)=>{let pe=J.current;if(pe.length){let fe=B*T[ae];isNaN(fe)?fe=V:V=fe,(0,y.each)(pe,ce=>{(0,y.each)(ce.queue,ye=>{let Be=ye.delay;ye.delay=Ee=>fe+S(Be||0,Ee)})}),J.start()}})}else{let V=Promise.resolve();(0,y.each)(M,J=>{let ae=J.current;if(ae.length){let pe=ae.map(fe=>{let ce=fe.queue;return fe.queue=[],ce});V=V.then(()=>((0,y.each)(ae,(fe,ce)=>(0,y.each)(pe[ce]||[],ye=>fe.queue.push(ye))),Promise.all(J.start())))}})}})}var ie=ct,se=I,K=ct,D=ct,Z=cc,Q=ct,oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},he={...oe.default,mass:1,damping:1,easing:Q.easings.linear,clamp:!1},Ce=class{constructor(){this.velocity=0,Object.assign(this,he)}};function me(M,T,B){B&&(B={...B},Me(B,T),T={...B,...T}),Me(M,T),Object.assign(M,T);for(let pe in he)M[pe]==null&&(M[pe]=he[pe]);let{frequency:V,damping:J}=M,{mass:ae}=M;return Q.is.und(V)||(V<.01&&(V=.01),J<0&&(J=0),M.tension=Math.pow(2*Math.PI/V,2)*ae,M.friction=4*Math.PI*J*ae/V),M}function Me(M,T){if(!Q.is.und(T.decay))M.duration=void 0;else{let B=!Q.is.und(T.tension)||!Q.is.und(T.friction);(B||!Q.is.und(T.frequency)||!Q.is.und(T.damping)||!Q.is.und(T.mass))&&(M.duration=void 0,M.decay=void 0),B&&(M.frequency=void 0)}}var Ne=[],$=class{constructor(){this.changed=!1,this.values=Ne,this.toValues=null,this.fromValues=Ne,this.config=new Ce,this.immediate=!1}},re=ct;function le(M,{key:T,props:B,defaultProps:V,state:J,actions:ae}){return new Promise((pe,fe)=>{let ce,ye,Be=E(B.cancel??V?.cancel,T);if(Be)Ve();else{re.is.und(B.pause)||(J.paused=E(B.pause,T));let xe=V?.pause;xe!==!0&&(xe=J.paused||E(xe,T)),ce=S(B.delay||0,T),xe?(J.resumeQueue.add(Qe),ae.pause()):(ae.resume(),Qe())}function Ee(){J.resumeQueue.add(Qe),J.timeouts.delete(ye),ye.cancel(),ce=ye.time-re.raf.now()}function Qe(){ce>0&&!re.Globals.skipAnimation?(J.delayed=!0,ye=re.raf.setTimeout(Ve,ce),J.pauseQueue.add(Ee),J.timeouts.add(ye)):Ve()}function Ve(){J.delayed&&(J.delayed=!1),J.pauseQueue.delete(Ee),J.timeouts.delete(ye),M<=(J.cancelId||0)&&(Be=!0);try{ae.start({...B,callId:M,cancel:Be},pe)}catch(xe){fe(xe)}}})}var Se=ct,Oe=(M,T)=>T.length==1?T[0]:T.some(B=>B.cancelled)?it(M.get()):T.every(B=>B.noop)?Fe(M.get()):Ye(M.get(),T.every(B=>B.finished)),Fe=M=>({value:M,noop:!0,finished:!0,cancelled:!1}),Ye=(M,T,B=!1)=>({value:M,finished:T,cancelled:B}),it=M=>({value:M,cancelled:!0,finished:!1});function ze(M,T,B,V){let{callId:J,parentId:ae,onRest:pe}=T,{asyncTo:fe,promise:ce}=B;return!ae&&M===fe&&!T.reset?ce:B.promise=(async()=>{B.asyncId=J,B.asyncTo=M;let ye=C(T,(je,Pe)=>Pe==="onRest"?void 0:je),Be,Ee,Qe=new Promise((je,Pe)=>(Be=je,Ee=Pe)),Ve=je=>{let Pe=J<=(B.cancelId||0)&&it(V)||J!==B.asyncId&&Ye(V,!1);if(Pe)throw je.result=Pe,Ee(je),je},xe=(je,Pe)=>{let Ge=new dt,Re=new ht;return(async()=>{if(Se.Globals.skipAnimation)throw Wt(B),Re.result=Ye(V,!1),Ee(Re),Re;Ve(Ge);let $e=Se.is.obj(je)?{...je}:{...Pe,to:je};$e.parentId=J,(0,Se.eachProp)(ye,(tn,tt)=>{Se.is.und($e[tt])&&($e[tt]=tn)});let Kt=await V.start($e);return Ve(Ge),B.paused&&await new Promise(tn=>{B.resumeQueue.add(tn)}),Kt})()},Te;if(Se.Globals.skipAnimation)return Wt(B),Ye(V,!1);try{let je;Se.is.arr(M)?je=(async Pe=>{for(let Ge of Pe)await xe(Ge)})(M):je=Promise.resolve(M(xe,V.stop.bind(V))),await Promise.all([je.then(Be),Qe]),Te=Ye(V.get(),!0,!1)}catch(je){if(je instanceof dt)Te=je.result;else if(je instanceof ht)Te=je.result;else throw je}finally{J==B.asyncId&&(B.asyncId=ae,B.asyncTo=ae?fe:void 0,B.promise=ae?ce:void 0)}return Se.is.fun(pe)&&Se.raf.batchedUpdates(()=>{pe(Te,V,V.item)}),Te})()}function Wt(M,T){(0,Se.flush)(M.timeouts,B=>B.cancel()),M.pauseQueue.clear(),M.resumeQueue.clear(),M.asyncId=M.asyncTo=M.promise=void 0,T&&(M.cancelId=T)}var dt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ht=class extends Error{constructor(){super("SkipAnimationSignal")}},De=ct,Cn=cc,Zt=M=>M instanceof mr,Or=1,mr=class extends De.FluidValue{constructor(){super(...arguments),this.id=Or++,this._priority=0}get priority(){return this._priority}set priority(M){this._priority!=M&&(this._priority=M,this._onPriorityChange(M))}get(){let M=(0,Cn.getAnimated)(this);return M&&M.getValue()}to(...M){return De.Globals.to(this,M)}interpolate(...M){return(0,De.deprecateInterpolate)(),De.Globals.to(this,M)}toJSON(){return this.get()}observerAdded(M){M==1&&this._attach()}observerRemoved(M){M==0&&this._detach()}_attach(){}_detach(){}_onChange(M,T=!1){(0,De.callFluidObservers)(this,{type:"change",parent:this,value:M,idle:T})}_onPriorityChange(M){this.idle||De.frameLoop.sort(this),(0,De.callFluidObservers)(this,{type:"priority",parent:this,priority:M})}},qt=Symbol.for("SpringPhase"),_t=1,Ea=2,Pa=4,ao=M=>(M[qt]&_t)>0,_n=M=>(M[qt]&Ea)>0,Ma=M=>(M[qt]&Pa)>0,Yo=(M,T)=>T?M[qt]|=Ea|_t:M[qt]&=~Ea,oi=(M,T)=>T?M[qt]|=Pa:M[qt]&=~Pa,Ht=class extends mr{constructor(M,T){if(super(),this.animation=new $,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!D.is.und(M)||!D.is.und(T)){let B=D.is.obj(M)?{...M}:{...T,from:M};D.is.und(B.default)&&(B.default=!0),this.start(B)}}get idle(){return!(_n(this)||this._state.asyncTo)||Ma(this)}get goal(){return(0,D.getFluidValue)(this.animation.to)}get velocity(){let M=(0,Z.getAnimated)(this);return M instanceof Z.AnimatedValue?M.lastVelocity||0:M.getPayload().map(T=>T.lastVelocity||0)}get hasAnimated(){return ao(this)}get isAnimating(){return _n(this)}get isPaused(){return Ma(this)}get isDelayed(){return this._state.delayed}advance(M){let T=!0,B=!1,V=this.animation,{toValues:J}=V,{config:ae}=V,pe=(0,Z.getPayload)(V.to);!pe&&(0,D.hasFluidValue)(V.to)&&(J=(0,D.toArray)((0,D.getFluidValue)(V.to))),V.values.forEach((ye,Be)=>{if(ye.done)return;let Ee=ye.constructor==Z.AnimatedString?1:pe?pe[Be].lastPosition:J[Be],Qe=V.immediate,Ve=Ee;if(!Qe){if(Ve=ye.lastPosition,ae.tension<=0){ye.done=!0;return}let xe=ye.elapsedTime+=M,Te=V.fromValues[Be],je=ye.v0!=null?ye.v0:ye.v0=D.is.arr(ae.velocity)?ae.velocity[Be]:ae.velocity,Pe,Ge=ae.precision||(Te==Ee?.005:Math.min(1,Math.abs(Ee-Te)*.001));if(D.is.und(ae.duration))if(ae.decay){let Re=ae.decay===!0?.998:ae.decay,$e=Math.exp(-(1-Re)*xe);Ve=Te+je/(1-Re)*(1-$e),Qe=Math.abs(ye.lastPosition-Ve)<=Ge,Pe=je*$e}else{Pe=ye.lastVelocity==null?je:ye.lastVelocity;let Re=ae.restVelocity||Ge/10,$e=ae.clamp?0:ae.bounce,Kt=!D.is.und($e),tn=Te==Ee?ye.v0>0:TeRe,!(!tt&&(Qe=Math.abs(Ee-Ve)<=Ge,Qe)));++qr){Kt&&(Tt=Ve==Ee||Ve>Ee==tn,Tt&&(Pe=-Pe*$e,Ve=Ee));let Vn=-ae.tension*1e-6*(Ve-Ee),nr=-ae.friction*.001*Pe,Ae=(Vn+nr)/ae.mass;Pe=Pe+Ae*Mt,Ve=Ve+Pe*Mt}}else{let Re=1;ae.duration>0&&(this._memoizedDuration!==ae.duration&&(this._memoizedDuration=ae.duration,ye.durationProgress>0&&(ye.elapsedTime=ae.duration*ye.durationProgress,xe=ye.elapsedTime+=M)),Re=(ae.progress||0)+xe/this._memoizedDuration,Re=Re>1?1:Re<0?0:Re,ye.durationProgress=Re),Ve=Te+ae.easing(Re)*(Ee-Te),Pe=(Ve-ye.lastPosition)/M,Qe=Re==1}ye.lastVelocity=Pe,Number.isNaN(Ve)&&(console.warn("Got NaN while animating:",this),Qe=!0)}pe&&!pe[Be].done&&(Qe=!1),Qe?ye.done=!0:T=!1,ye.setValue(Ve,ae.round)&&(B=!0)});let fe=(0,Z.getAnimated)(this),ce=fe.getValue();if(T){let ye=(0,D.getFluidValue)(V.to);(ce!==ye||B)&&!ae.decay?(fe.setValue(ye),this._onChange(ye)):B&&ae.decay&&this._onChange(ce),this._stop()}else B&&this._onChange(ce)}set(M){return D.raf.batchedUpdates(()=>{this._stop(),this._focus(M),this._set(M)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(_n(this)){let{to:M,config:T}=this.animation;D.raf.batchedUpdates(()=>{this._onStart(),T.decay||this._set(M,!1),this._stop()})}return this}update(M){return(this.queue||(this.queue=[])).push(M),this}start(M,T){let B;return D.is.und(M)?(B=this.queue||[],this.queue=[]):B=[D.is.obj(M)?M:{...T,to:M}],Promise.all(B.map(V=>this._update(V))).then(V=>Oe(this,V))}stop(M){let{to:T}=this.animation;return this._focus(this.get()),Wt(this._state,M&&this._lastCallId),D.raf.batchedUpdates(()=>this._stop(T,M)),this}reset(){this._update({reset:!0})}eventObserved(M){M.type=="change"?this._start():M.type=="priority"&&(this.priority=M.priority+1)}_prepareNode(M){let T=this.key||"",{to:B,from:V}=M;B=D.is.obj(B)?B[T]:B,(B==null||U(B))&&(B=void 0),V=D.is.obj(V)?V[T]:V,V==null&&(V=void 0);let J={to:B,from:V};return ao(this)||(M.reverse&&([B,V]=[V,B]),V=(0,D.getFluidValue)(V),D.is.und(V)?(0,Z.getAnimated)(this)||this._set(B):this._set(V)),J}_update({...M},T){let{key:B,defaultProps:V}=this;M.default&&Object.assign(V,C(M,(pe,fe)=>/^on/.test(fe)?x(pe,B):pe)),mc(this,M,"onProps"),io(this,"onProps",M,this);let J=this._prepareNode(M);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let ae=this._state;return le(++this._lastCallId,{key:B,props:M,defaultProps:V,state:ae,actions:{pause:()=>{Ma(this)||(oi(this,!0),(0,D.flushCalls)(ae.pauseQueue),io(this,"onPause",Ye(this,Ia(this,this.animation.to)),this))},resume:()=>{Ma(this)&&(oi(this,!1),_n(this)&&this._resume(),(0,D.flushCalls)(ae.resumeQueue),io(this,"onResume",Ye(this,Ia(this,this.animation.to)),this))},start:this._merge.bind(this,J)}}).then(pe=>{if(M.loop&&pe.finished&&!(T&&pe.noop)){let fe=Qo(M);if(fe)return this._update(fe,!0)}return pe})}_merge(M,T,B){if(T.cancel)return this.stop(!0),B(it(this));let V=!D.is.und(M.to),J=!D.is.und(M.from);if(V||J)if(T.callId>this._lastToId)this._lastToId=T.callId;else return B(it(this));let{key:ae,defaultProps:pe,animation:fe}=this,{to:ce,from:ye}=fe,{to:Be=ce,from:Ee=ye}=M;J&&!V&&(!T.default||D.is.und(Be))&&(Be=Ee),T.reverse&&([Be,Ee]=[Ee,Be]);let Qe=!(0,D.isEqual)(Ee,ye);Qe&&(fe.from=Ee),Ee=(0,D.getFluidValue)(Ee);let Ve=!(0,D.isEqual)(Be,ce);Ve&&this._focus(Be);let xe=U(T.to),{config:Te}=fe,{decay:je,velocity:Pe}=Te;(V||J)&&(Te.velocity=0),T.config&&!xe&&me(Te,S(T.config,ae),T.config!==pe.config?S(pe.config,ae):void 0);let Ge=(0,Z.getAnimated)(this);if(!Ge||D.is.und(Be))return B(Ye(this,!0));let Re=D.is.und(T.reset)?J&&!T.default:!D.is.und(Ee)&&E(T.reset,ae),$e=Re?Ee:this.get(),Kt=j(Be),tn=D.is.num(Kt)||D.is.arr(Kt)||(0,D.isAnimatedString)(Kt),tt=!xe&&(!tn||E(pe.immediate||T.immediate,ae));if(Ve){let qr=(0,Z.getAnimatedType)(Be);if(qr!==Ge.constructor)if(tt)Ge=this._set(Kt);else throw Error(`Cannot animate between ${Ge.constructor.name} and ${qr.name}, as the "to" prop suggests`)}let Tt=Ge.constructor,Mt=(0,D.hasFluidValue)(Be),Lr=!1;if(!Mt){let qr=Re||!ao(this)&&Qe;(Ve||qr)&&(Lr=(0,D.isEqual)(j($e),Kt),Mt=!Lr),(!(0,D.isEqual)(fe.immediate,tt)&&!tt||!(0,D.isEqual)(Te.decay,je)||!(0,D.isEqual)(Te.velocity,Pe))&&(Mt=!0)}if(Lr&&_n(this)&&(fe.changed&&!Re?Mt=!0:Mt||this._stop(ce)),!xe&&((Mt||(0,D.hasFluidValue)(ce))&&(fe.values=Ge.getPayload(),fe.toValues=(0,D.hasFluidValue)(Be)?null:Tt==Z.AnimatedString?[1]:(0,D.toArray)(Kt)),fe.immediate!=tt&&(fe.immediate=tt,!tt&&!Re&&this._set(ce)),Mt)){let{onRest:qr}=fe;(0,D.each)(bl,nr=>mc(this,T,nr));let Vn=Ye(this,Ia(this,ce));(0,D.flushCalls)(this._pendingCalls,Vn),this._pendingCalls.add(B),fe.changed&&D.raf.batchedUpdates(()=>{var nr;fe.changed=!Re,qr?.(Vn,this),Re?S(pe.onRest,Vn):(nr=fe.onStart)==null||nr.call(fe,Vn,this)})}Re&&this._set($e),xe?B(ze(T.to,T,this._state,this)):Mt?this._start():_n(this)&&!Ve?this._pendingCalls.add(B):B(Fe($e))}_focus(M){let T=this.animation;M!==T.to&&((0,D.getFluidObservers)(this)&&this._detach(),T.to=M,(0,D.getFluidObservers)(this)&&this._attach())}_attach(){let M=0,{to:T}=this.animation;(0,D.hasFluidValue)(T)&&((0,D.addFluidObserver)(T,this),Zt(T)&&(M=T.priority+1)),this.priority=M}_detach(){let{to:M}=this.animation;(0,D.hasFluidValue)(M)&&(0,D.removeFluidObserver)(M,this)}_set(M,T=!0){let B=(0,D.getFluidValue)(M);if(!D.is.und(B)){let V=(0,Z.getAnimated)(this);if(!V||!(0,D.isEqual)(B,V.getValue())){let J=(0,Z.getAnimatedType)(B);!V||V.constructor!=J?(0,Z.setAnimated)(this,J.create(B)):V.setValue(B),V&&D.raf.batchedUpdates(()=>{this._onChange(B,T)})}}return(0,Z.getAnimated)(this)}_onStart(){let M=this.animation;M.changed||(M.changed=!0,io(this,"onStart",Ye(this,Ia(this,M.to)),this))}_onChange(M,T){T||(this._onStart(),S(this.animation.onChange,M,this)),S(this.defaultProps.onChange,M,this),super._onChange(M,T)}_start(){let M=this.animation;(0,Z.getAnimated)(this).reset((0,D.getFluidValue)(M.to)),M.immediate||(M.fromValues=M.values.map(T=>T.lastPosition)),_n(this)||(Yo(this,!0),Ma(this)||this._resume())}_resume(){D.Globals.skipAnimation?this.finish():D.frameLoop.start(this)}_stop(M,T){if(_n(this)){Yo(this,!1);let B=this.animation;(0,D.each)(B.values,J=>{J.done=!0}),B.toValues&&(B.onChange=B.onPause=B.onResume=void 0),(0,D.callFluidObservers)(this,{type:"idle",parent:this});let V=T?it(this.get()):Ye(this.get(),Ia(this,M??B.to));(0,D.flushCalls)(this._pendingCalls,V),B.changed&&(B.changed=!1,io(this,"onRest",V,this))}}};function Ia(M,T){let B=j(T),V=j(M.get());return(0,D.isEqual)(V,B)}function Qo(M,T=M.loop,B=M.to){let V=S(T);if(V){let J=V!==!0&&R(V),ae=(J||M).reverse,pe=!J||J.reset;return sa({...M,loop:T,default:!1,pause:void 0,to:!ae||U(B)?B:void 0,from:pe?M.from:void 0,reset:pe,...J})}}function sa(M){let{to:T,from:B}=M=R(M),V=new Set;return D.is.obj(T)&&Zr(T,V),D.is.obj(B)&&Zr(B,V),M.keys=V.size?Array.from(V):null,M}function yl(M){let T=sa(M);return D.is.und(T.default)&&(T.default=C(T)),T}function Zr(M,T){(0,D.eachProp)(M,(B,V)=>B!=null&&T.add(V))}var bl=["onStart","onRest","onChange","onPause","onResume"];function mc(M,T,B){M.animation[B]=T[B]!==w(T,B)?x(T[B],M.key):void 0}function io(M,T,...B){var V,J,ae,pe;(J=(V=M.animation)[T])==null||J.call(V,...B),(pe=(ae=M.defaultProps)[T])==null||pe.call(ae,...B)}var at=ct,gc=["onStart","onChange","onRest"],vc=1,kl=class{constructor(M,T){this.id=vc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),T&&(this._flush=T),M&&this.start({default:!0,...M})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(M=>M.idle&&!M.isDelayed&&!M.isPaused)}get item(){return this._item}set item(M){this._item=M}get(){let M={};return this.each((T,B)=>M[B]=T.get()),M}set(M){for(let T in M){let B=M[T];at.is.und(B)||this.springs[T].set(B)}}update(M){return M&&this.queue.push(sa(M)),this}start(M){let{queue:T}=this;return M?T=(0,at.toArray)(M).map(sa):this.queue=[],this._flush?this._flush(this,T):(xl(this,T),oo(this,T))}stop(M,T){if(M!==!!M&&(T=M),T){let B=this.springs;(0,at.each)((0,at.toArray)(T),V=>B[V].stop(!!M))}else Wt(this._state,this._lastAsyncId),this.each(B=>B.stop(!!M));return this}pause(M){if(at.is.und(M))this.start({pause:!0});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].pause())}return this}resume(M){if(at.is.und(M))this.start({pause:!1});else{let T=this.springs;(0,at.each)((0,at.toArray)(M),B=>T[B].resume())}return this}each(M){(0,at.eachProp)(this.springs,M)}_onFrame(){let{onStart:M,onChange:T,onRest:B}=this._events,V=this._active.size>0,J=this._changed.size>0;(V&&!this._started||J&&!this._started)&&(this._started=!0,(0,at.flush)(M,([fe,ce])=>{ce.value=this.get(),fe(ce,this,this._item)}));let ae=!V&&this._started,pe=J||ae&&B.size?this.get():null;J&&T.size&&(0,at.flush)(T,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}),ae&&(this._started=!1,(0,at.flush)(B,([fe,ce])=>{ce.value=pe,fe(ce,this,this._item)}))}eventObserved(M){if(M.type=="change")this._changed.add(M.parent),M.idle||this._active.add(M.parent);else if(M.type=="idle")this._active.delete(M.parent);else return;at.raf.onFrame(this._onFrame)}};function oo(M,T){return Promise.all(T.map(B=>wl(M,B))).then(B=>Oe(M,B))}async function wl(M,T,B){let{keys:V,to:J,from:ae,loop:pe,onRest:fe,onResolve:ce}=T,ye=at.is.obj(T.default)&&T.default;pe&&(T.loop=!1),J===!1&&(T.to=null),ae===!1&&(T.from=null);let Be=at.is.arr(J)||at.is.fun(J)?J:void 0;Be?(T.to=void 0,T.onRest=void 0,ye&&(ye.onRest=void 0)):(0,at.each)(gc,Te=>{let je=T[Te];if(at.is.fun(je)){let Pe=M._events[Te];T[Te]=({finished:Ge,cancelled:Re})=>{let $e=Pe.get(je);$e?(Ge||($e.finished=!1),Re&&($e.cancelled=!0)):Pe.set(je,{value:null,finished:Ge||!1,cancelled:Re||!1})},ye&&(ye[Te]=T[Te])}});let Ee=M._state;T.pause===!Ee.paused?(Ee.paused=T.pause,(0,at.flushCalls)(T.pause?Ee.pauseQueue:Ee.resumeQueue)):Ee.paused&&(T.pause=!0);let Qe=(V||Object.keys(M.springs)).map(Te=>M.springs[Te].start(T)),Ve=T.cancel===!0||w(T,"cancel")===!0;(Be||Ve&&Ee.asyncId)&&Qe.push(le(++M._lastAsyncId,{props:T,state:Ee,actions:{pause:at.noop,resume:at.noop,start(Te,je){Ve?(Wt(Ee,M._lastAsyncId),je(it(M))):(Te.onRest=fe,je(ze(Be,Te,Ee,M)))}}})),Ee.paused&&await new Promise(Te=>{Ee.resumeQueue.add(Te)});let xe=Oe(M,await Promise.all(Qe));if(pe&&xe.finished&&!(B&&xe.noop)){let Te=Qo(T,pe,J);if(Te)return xl(M,[Te]),wl(M,Te,!0)}return ce&&at.raf.batchedUpdates(()=>ce(xe,M,M.item)),xe}function Xo(M,T){let B={...M.springs};return T&&(0,at.each)((0,at.toArray)(T),V=>{at.is.und(V.keys)&&(V=sa(V)),at.is.obj(V.to)||(V={...V,to:void 0}),kc(B,V,J=>bc(J))}),yc(M,B),B}function yc(M,T){(0,at.eachProp)(T,(B,V)=>{M.springs[V]||(M.springs[V]=B,(0,at.addFluidObserver)(B,M))})}function bc(M,T){let B=new Ht;return B.key=M,T&&(0,at.addFluidObserver)(B,T),B}function kc(M,T,B){T.keys&&(0,at.each)(T.keys,V=>{(M[V]||(M[V]=B(V)))._prepareNode(T)})}function xl(M,T){(0,at.each)(T,B=>{kc(M.springs,B,V=>bc(V,M))})}var Jo=f(I),Sp=I,Cp=ct,$n=({children:M,...T})=>{let B=(0,Sp.useContext)(Zo),V=T.pause||!!B.pause,J=T.immediate||!!B.immediate;T=(0,Cp.useMemoOne)(()=>({pause:V,immediate:J}),[V,J]);let{Provider:ae}=Zo;return Jo.createElement(ae,{value:T},M)},Zo=_p($n,{});$n.Provider=Zo.Provider,$n.Consumer=Zo.Consumer;function _p(M,T){return Object.assign(M,Jo.createContext(T)),M.Provider._context=M,M.Consumer._context=M,M}var en=ct,es=()=>{let M=[],T=function(V){(0,en.deprecateDirectCall)();let J=[];return(0,en.each)(M,(ae,pe)=>{if(en.is.und(V))J.push(ae.start());else{let fe=B(V,ae,pe);fe&&J.push(ae.start(fe))}}),J};T.current=M,T.add=function(V){M.includes(V)||M.push(V)},T.delete=function(V){let J=M.indexOf(V);~J&&M.splice(J,1)},T.pause=function(){return(0,en.each)(M,V=>V.pause(...arguments)),this},T.resume=function(){return(0,en.each)(M,V=>V.resume(...arguments)),this},T.set=function(V){(0,en.each)(M,(J,ae)=>{let pe=en.is.fun(V)?V(ae,J):V;pe&&J.set(pe)})},T.start=function(V){let J=[];return(0,en.each)(M,(ae,pe)=>{if(en.is.und(V))J.push(ae.start());else{let fe=this._getProps(V,ae,pe);fe&&J.push(ae.start(fe))}}),J},T.stop=function(){return(0,en.each)(M,V=>V.stop(...arguments)),this},T.update=function(V){return(0,en.each)(M,(J,ae)=>J.update(this._getProps(V,J,ae))),this};let B=function(V,J,ae){return en.is.fun(V)?V(ae,J):V};return T._getProps=B,T};function Sl(M,T,B){let V=K.is.fun(T)&&T;V&&!B&&(B=[]);let J=(0,se.useMemo)(()=>V||arguments.length==3?es():void 0,[]),ae=(0,se.useRef)(0),pe=(0,K.useForceUpdate)(),fe=(0,se.useMemo)(()=>({ctrls:[],queue:[],flush(Pe,Ge){let Re=Xo(Pe,Ge);return ae.current>0&&!fe.queue.length&&!Object.keys(Re).some($e=>!Pe.springs[$e])?oo(Pe,Ge):new Promise($e=>{yc(Pe,Re),fe.queue.push(()=>{$e(oo(Pe,Ge))}),pe()})}}),[]),ce=(0,se.useRef)([...fe.ctrls]),ye=[],Be=(0,K.usePrev)(M)||0;(0,se.useMemo)(()=>{(0,K.each)(ce.current.slice(M,Be),Pe=>{H(Pe,J),Pe.stop(!0)}),ce.current.length=M,Ee(Be,M)},[M]),(0,se.useMemo)(()=>{Ee(0,Math.min(Be,M))},B);function Ee(Pe,Ge){for(let Re=Pe;ReXo(Pe,ye[Ge])),Ve=(0,se.useContext)($n),xe=(0,K.usePrev)(Ve),Te=Ve!==xe&&L(Ve);(0,K.useIsomorphicLayoutEffect)(()=>{ae.current++,fe.ctrls=ce.current;let{queue:Pe}=fe;Pe.length&&(fe.queue=[],(0,K.each)(Pe,Ge=>Ge())),(0,K.each)(ce.current,(Ge,Re)=>{J?.add(Ge),Te&&Ge.start({default:Ve});let $e=ye[Re];$e&&(q(Ge,$e.ref),Ge.ref?Ge.queue.push($e):Ge.start($e))})}),(0,K.useOnce)(()=>()=>{(0,K.each)(fe.ctrls,Pe=>Pe.stop(!0))});let je=Qe.map(Pe=>({...Pe}));return J?[je,J]:je}function so(M,T){let B=ie.is.fun(M),[[V],J]=Sl(1,B?M:[M],B?T||[]:T);return B||arguments.length==2?[V,J]:V}var Ep=I,Pp=()=>es(),Mp=()=>(0,Ep.useState)(Pp)[0],wc=ct,Ip=(M,T)=>{let B=(0,wc.useConstant)(()=>new Ht(M,T));return(0,wc.useOnce)(()=>()=>{B.stop()}),B},ts=ct;function xc(M,T,B){let V=ts.is.fun(T)&&T;V&&!B&&(B=[]);let J=!0,ae,pe=Sl(M,(fe,ce)=>{let ye=V?V(fe,ce):T;return ae=ye.ref,J=J&&ye.reverse,ye},B||[{}]);if((0,ts.useIsomorphicLayoutEffect)(()=>{(0,ts.each)(pe[1].current,(fe,ce)=>{let ye=pe[1].current[ce+(J?1:-1)];if(q(fe,ae),fe.ref){ye&&fe.update({to:ye.springs});return}ye?fe.start({to:ye.springs}):fe.start()})},B),V||arguments.length==3){let fe=ae??pe[1];return fe._getProps=(ce,ye,Be)=>{let Ee=ts.is.fun(ce)?ce(Be,ye):ce;if(Ee){let Qe=fe.current[Be+(Ee.reverse?1:-1)];return Qe&&(Ee.to=Qe.springs),Ee}},pe}return pe[0]}var Cl=f(I),Na=I,ot=ct;function rs(M,T,B){let V=ot.is.fun(T)&&T,{reset:J,sort:ae,trail:pe=0,expires:fe=!0,exitBeforeEnter:ce=!1,onDestroyed:ye,ref:Be,config:Ee}=V?V():T,Qe=(0,Na.useMemo)(()=>V||arguments.length==3?es():void 0,[]),Ve=(0,ot.toArray)(M),xe=[],Te=(0,Na.useRef)(null),je=J?null:Te.current;(0,ot.useIsomorphicLayoutEffect)(()=>{Te.current=xe}),(0,ot.useOnce)(()=>((0,ot.each)(xe,Ae=>{Qe?.add(Ae.ctrl),Ae.ctrl.ref=Qe}),()=>{(0,ot.each)(Te.current,Ae=>{Ae.expired&&clearTimeout(Ae.expirationId),H(Ae.ctrl,Qe),Ae.ctrl.stop(!0)})}));let Pe=Np(Ve,V?V():T,je),Ge=J&&Te.current||[];(0,ot.useIsomorphicLayoutEffect)(()=>(0,ot.each)(Ge,({ctrl:Ae,item:Ke,key:ar})=>{H(Ae,Qe),S(ye,Ke,ar)}));let Re=[];if(je&&(0,ot.each)(je,(Ae,Ke)=>{Ae.expired?(clearTimeout(Ae.expirationId),Ge.push(Ae)):(Ke=Re[Ke]=Pe.indexOf(Ae.key),~Ke&&(xe[Ke]=Ae))}),(0,ot.each)(Ve,(Ae,Ke)=>{xe[Ke]||(xe[Ke]={key:Pe[Ke],item:Ae,phase:"mount",ctrl:new kl},xe[Ke].ctrl.item=Ae)}),Re.length){let Ae=-1,{leave:Ke}=V?V():T;(0,ot.each)(Re,(ar,ir)=>{let vt=je[ir];~ar?(Ae=xe.indexOf(vt),xe[Ae]={...vt,item:Ve[ar]}):Ke&&xe.splice(++Ae,0,vt)})}ot.is.fun(ae)&&xe.sort((Ae,Ke)=>ae(Ae.item,Ke.item));let $e=-pe,Kt=(0,ot.useForceUpdate)(),tn=C(T),tt=new Map,Tt=(0,Na.useRef)(new Map),Mt=(0,Na.useRef)(!1);(0,ot.each)(xe,(Ae,Ke)=>{let ar=Ae.key,ir=Ae.phase,vt=V?V():T,Et,xr,Gn=S(vt.delay||0,ar);if(ir=="mount")Et=vt.enter,xr="enter";else{let Hr=Pe.indexOf(ar)<0;if(ir!="leave")if(Hr)Et=vt.leave,xr="leave";else if(Et=vt.update)xr="update";else return;else if(!Hr)Et=vt.enter,xr="enter";else return}if(Et=S(Et,Ae.item,Ke),Et=ot.is.obj(Et)?R(Et):{to:Et},!Et.config){let Hr=Ee||tn.config;Et.config=S(Hr,Ae.item,Ke,xr)}$e+=pe;let Sr={...tn,delay:Gn+$e,ref:Be,immediate:vt.immediate,reset:!1,...Et};if(xr=="enter"&&ot.is.und(Sr.from)){let Hr=V?V():T,Fa=ot.is.und(Hr.initial)||je?Hr.from:Hr.initial;Sr.from=S(Fa,Ae.item,Ke)}let{onResolve:La}=Sr;Sr.onResolve=Hr=>{S(La,Hr);let Fa=Te.current,Yt=Fa.find(Cr=>Cr.key===ar);if(Yt&&!(Hr.cancelled&&Yt.phase!="update")&&Yt.ctrl.idle){let Cr=Fa.every(ft=>ft.ctrl.idle);if(Yt.phase=="leave"){let ft=S(fe,Yt.item);if(ft!==!1){let ja=ft===!0?0:ft;if(Yt.expired=!0,!Cr&&ja>0){ja<=2147483647&&(Yt.expirationId=setTimeout(Kt,ja));return}}}Cr&&Fa.some(ft=>ft.expired)&&(Tt.current.delete(Yt),ce&&(Mt.current=!0),Kt())}};let Pl=Xo(Ae.ctrl,Sr);xr==="leave"&&ce?Tt.current.set(Ae,{phase:xr,springs:Pl,payload:Sr}):tt.set(Ae,{phase:xr,springs:Pl,payload:Sr})});let Lr=(0,Na.useContext)($n),qr=(0,ot.usePrev)(Lr),Vn=Lr!==qr&&L(Lr);(0,ot.useIsomorphicLayoutEffect)(()=>{Vn&&(0,ot.each)(xe,Ae=>{Ae.ctrl.start({default:Lr})})},[Lr]),(0,ot.each)(tt,(Ae,Ke)=>{if(Tt.current.size){let ar=xe.findIndex(ir=>ir.key===Ke.key);xe.splice(ar,1)}}),(0,ot.useIsomorphicLayoutEffect)(()=>{(0,ot.each)(Tt.current.size?Tt.current:tt,({phase:Ae,payload:Ke},ar)=>{let{ctrl:ir}=ar;ar.phase=Ae,Qe?.add(ir),Vn&&Ae=="enter"&&ir.start({default:Lr}),Ke&&(q(ir,Ke.ref),(ir.ref||Qe)&&!Mt.current?ir.update(Ke):(ir.start(Ke),Mt.current&&(Mt.current=!1)))})},J?void 0:B);let nr=Ae=>Cl.createElement(Cl.Fragment,null,xe.map((Ke,ar)=>{let{springs:ir}=tt.get(Ke)||Ke.ctrl,vt=Ae({...ir},Ke.item,Ke,ar);return vt&&vt.type?Cl.createElement(vt.type,{...vt.props,key:ot.is.str(Ke.key)||ot.is.num(Ke.key)?Ke.key:Ke.ctrl.id,ref:vt.ref}):vt}));return Qe?[nr,Qe]:nr}var _l=1;function Np(M,{key:T,keys:B=T},V){if(B===null){let J=new Set;return M.map(ae=>{let pe=V&&V.find(fe=>fe.item===ae&&fe.phase!=="leave"&&!J.has(fe));return pe?(J.add(pe),pe.key):_l++})}return ot.is.und(B)?M:ot.is.fun(B)?M.map(B):(0,ot.toArray)(B)}var lo=ct,si=({container:M,...T}={})=>{let[B,V]=so(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...T}),[]);return(0,lo.useIsomorphicLayoutEffect)(()=>{let J=(0,lo.onScroll)(({x:ae,y:pe})=>{V.start({scrollX:ae.current,scrollXProgress:ae.progress,scrollY:pe.current,scrollYProgress:pe.progress})},{container:M?.current||void 0});return()=>{(0,lo.each)(Object.values(B),ae=>ae.stop()),J()}},[]),B},En=ct,xt=({container:M,...T})=>{let[B,V]=so(()=>({width:0,height:0,...T}),[]);return(0,En.useIsomorphicLayoutEffect)(()=>{let J=(0,En.onResize)(({width:ae,height:pe})=>{V.start({width:ae,height:pe,immediate:B.width.get()===0||B.height.get()===0})},{container:M?.current||void 0});return()=>{(0,En.each)(Object.values(B),ae=>ae.stop()),J()}},[]),B},yt=I,Pn=ct,gr={any:0,all:1};function Rr(M,T){let[B,V]=(0,yt.useState)(!1),J=(0,yt.useRef)(),ae=Pn.is.fun(M)&&M,pe=ae?ae():{},{to:fe={},from:ce={},...ye}=pe,Be=ae?T:M,[Ee,Qe]=so(()=>({from:ce,...ye}),[]);return(0,Pn.useIsomorphicLayoutEffect)(()=>{let Ve=J.current,{root:xe,once:Te,amount:je="any",...Pe}=Be??{};if(!Ve||Te&&B||typeof IntersectionObserver>"u")return;let Ge=new WeakMap,Re=()=>(fe&&Qe.start(fe),V(!0),Te?void 0:()=>{ce&&Qe.start(ce),V(!1)}),$e=tn=>{tn.forEach(tt=>{let Tt=Ge.get(tt.target);if(tt.isIntersecting!==!!Tt)if(tt.isIntersecting){let Mt=Re();Pn.is.fun(Mt)?Ge.set(tt.target,Mt):Kt.unobserve(tt.target)}else Tt&&(Tt(),Ge.delete(tt.target))})},Kt=new IntersectionObserver($e,{root:xe&&xe.current||void 0,threshold:typeof je=="number"||Array.isArray(je)?je:gr[je],...Pe});return Kt.observe(Ve),()=>Kt.unobserve(Ve)},[Be]),ae?[J,Ee]:[J,B]}function Oa({children:M,...T}){return M(so(T))}var li=ct;function Tr({items:M,children:T,...B}){let V=xc(M.length,B);return M.map((J,ae)=>{let pe=T(J,ae);return li.is.fun(pe)?pe(V[ae]):pe})}function ns({items:M,children:T,...B}){return rs(M,B)(T)}var Sc=ct,Rt=ct,la=cc,uo=class extends mr{constructor(M,T){super(),this.source=M,this.idle=!0,this._active=new Set,this.calc=(0,Rt.createInterpolator)(...T);let B=this._get(),V=(0,la.getAnimatedType)(B);(0,la.setAnimated)(this,V.create(B))}advance(M){let T=this._get(),B=this.get();(0,Rt.isEqual)(T,B)||((0,la.getAnimated)(this).setValue(T),this._onChange(T,this.idle)),!this.idle&&Cc(this._active)&&El(this)}_get(){let M=Rt.is.arr(this.source)?this.source.map(Rt.getFluidValue):(0,Rt.toArray)((0,Rt.getFluidValue)(this.source));return this.calc(...M)}_start(){this.idle&&!Cc(this._active)&&(this.idle=!1,(0,Rt.each)((0,la.getPayload)(this),M=>{M.done=!1}),Rt.Globals.skipAnimation?(Rt.raf.batchedUpdates(()=>this.advance()),El(this)):Rt.frameLoop.start(this))}_attach(){let M=1;(0,Rt.each)((0,Rt.toArray)(this.source),T=>{(0,Rt.hasFluidValue)(T)&&(0,Rt.addFluidObserver)(T,this),Zt(T)&&(T.idle||this._active.add(T),M=Math.max(M,T.priority+1))}),this.priority=M,this._start()}_detach(){(0,Rt.each)((0,Rt.toArray)(this.source),M=>{(0,Rt.hasFluidValue)(M)&&(0,Rt.removeFluidObserver)(M,this)}),this._active.clear(),El(this)}eventObserved(M){M.type=="change"?M.idle?this.advance():(this._active.add(M.parent),this._start()):M.type=="idle"?this._active.delete(M.parent):M.type=="priority"&&(this.priority=(0,Rt.toArray)(this.source).reduce((T,B)=>Math.max(T,(Zt(B)?B.priority:0)+1),0))}};function hn(M){return M.idle!==!1}function Cc(M){return!M.size||Array.from(M).every(hn)}function El(M){M.idle||(M.idle=!0,(0,Rt.each)((0,la.getPayload)(M),T=>{T.done=!0}),(0,Rt.callFluidObservers)(M,{type:"idle",parent:M}))}var Op=(M,...T)=>new uo(M,T),as=(M,...T)=>((0,Sc.deprecateInterpolate)(),new uo(M,T)),Ra=ct;Ra.Globals.assign({createStringInterpolator:Ra.createStringInterpolator,to:(M,T)=>new uo(M,T)});var co=Ra.frameLoop.advance,Ta=ct;d(v,pj(),t.exports)})(wx);var mj=wx.exports;kx.exports=mj;var E8=kx.exports;(function(t){var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(K,D)=>{for(var Z in D)e(K,Z,{get:D[Z],enumerable:!0})},l=(K,D,Z,Q)=>{if(D&&typeof D=="object"||typeof D=="function")for(let oe of n(D))!a.call(K,oe)&&oe!==Z&&e(K,oe,{get:()=>D[oe],enumerable:!(Q=r(D,oe))||Q.enumerable});return K},u=(K,D,Z)=>(l(K,D,"default"),Z&&l(Z,D,"default")),c=K=>l(e({},"__esModule",{value:!0}),K),d={};i(d,{a:()=>se,animated:()=>se}),t.exports=c(d);var f=E8,g=Eh,v=ct,y=cc,b=/^--/;function S(K,D){return D==null||typeof D=="boolean"||D===""?"":typeof D=="number"&&D!==0&&!b.test(K)&&!(w.hasOwnProperty(K)&&w[K])?D+"px":(""+D).trim()}var E={};function x(K,D){if(!K.nodeType||!K.setAttribute)return!1;let Z=K.nodeName==="filter"||K.parentNode&&K.parentNode.nodeName==="filter",{style:Q,children:oe,scrollTop:he,scrollLeft:Ce,viewBox:me,...Me}=D,Ne=Object.values(Me),$=Object.keys(Me).map(re=>Z||K.hasAttribute(re)?re:E[re]||(E[re]=re.replace(/([A-Z])/g,le=>"-"+le.toLowerCase())));oe!==void 0&&(K.textContent=oe);for(let re in Q)if(Q.hasOwnProperty(re)){let le=S(re,Q[re]);b.test(re)?K.style.setProperty(re,le):K.style[re]=le}$.forEach((re,le)=>{K.setAttribute(re,Ne[le])}),he!==void 0&&(K.scrollTop=he),Ce!==void 0&&(K.scrollLeft=Ce),me!==void 0&&K.setAttribute("viewBox",me)}var w={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=(K,D)=>K+D.charAt(0).toUpperCase()+D.substring(1),C=["Webkit","Ms","Moz","O"];w=Object.keys(w).reduce((K,D)=>(C.forEach(Z=>K[m(Z,D)]=K[D]),K),w);var N=cc,O=ct,A=/^(matrix|translate|scale|rotate|skew)/,R=/^(translate)/,j=/^(rotate|skew)/,L=(K,D)=>O.is.num(K)&&K!==0?K+D:K,U=(K,D)=>O.is.arr(K)?K.every(Z=>U(Z,D)):O.is.num(K)?K===D:parseFloat(K)===D,H=class extends N.AnimatedObject{constructor({x:K,y:D,z:Z,...Q}){let oe=[],he=[];(K||D||Z)&&(oe.push([K||0,D||0,Z||0]),he.push(Ce=>[`translate3d(${Ce.map(me=>L(me,"px")).join(",")})`,U(Ce,0)])),(0,O.eachProp)(Q,(Ce,me)=>{if(me==="transform")oe.push([Ce||""]),he.push(Me=>[Me,Me===""]);else if(A.test(me)){if(delete Q[me],O.is.und(Ce))return;let Me=R.test(me)?"px":j.test(me)?"deg":"";oe.push((0,O.toArray)(Ce)),he.push(me==="rotate3d"?([Ne,$,re,le])=>[`rotate3d(${Ne},${$},${re},${L(le,Me)})`,U(le,0)]:Ne=>[`${me}(${Ne.map($=>L($,Me)).join(",")})`,U(Ne,me.startsWith("scale")?1:0)])}}),oe.length&&(Q.transform=new q(oe,he)),super(Q)}},q=class extends O.FluidValue{constructor(K,D){super(),this.inputs=K,this.transforms=D,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let K="",D=!0;return(0,O.each)(this.inputs,(Z,Q)=>{let oe=(0,O.getFluidValue)(Z[0]),[he,Ce]=this.transforms[Q](O.is.arr(oe)?oe:Z.map(O.getFluidValue));K+=" "+he,D=D&&Ce}),D?"none":K}observerAdded(K){K==1&&(0,O.each)(this.inputs,D=>(0,O.each)(D,Z=>(0,O.hasFluidValue)(Z)&&(0,O.addFluidObserver)(Z,this)))}observerRemoved(K){K==0&&(0,O.each)(this.inputs,D=>(0,O.each)(D,Z=>(0,O.hasFluidValue)(Z)&&(0,O.removeFluidObserver)(Z,this)))}eventObserved(K){K.type=="change"&&(this._value=null),(0,O.callFluidObservers)(this,K)}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];u(d,E8,t.exports),f.Globals.assign({batchedUpdates:g.unstable_batchedUpdates,createStringInterpolator:v.createStringInterpolator,colors:v.colors});var ie=(0,y.createHost)(ne,{applyAnimatedValues:x,createAnimatedStyle:K=>new H(K),getComponentProps:({scrollTop:K,scrollLeft:D,...Z})=>Z}),se=ie.animated})(bx);var gj=bx.exports;yx.exports=gj;var vj=yx.exports;const{useState:yj,useEffect:bj}=I;function kj(){const[t,e]=yj({width:void 0,height:void 0});return bj(()=>{function r(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),t}var wj=kj;const ml=I,{useSpring:xj,animated:Sj}=vj,Cj=wj,to={maxTilt:25,rotationPower:50,swipeThreshold:.5},gy={touchResponsive:{friction:50,tension:2e3},animateOut:{friction:30,tension:400},animateBack:{friction:10,tension:200}},P8=(t,e)=>Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),_j=t=>{const e=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2));return{x:t.x/e,y:t.y/e}},dc=async(t,e,r,n)=>{const a=P8(r,n),i=P8(t.x,t.y),l=a*t.x,u=a*t.y,c=t.x*45,d=a/i;return e.start({xyrot:[l,u,c],config:{duration:d}}),await new Promise(f=>setTimeout(()=>{f()},d))},M8=t=>new Promise(e=>{t.start({xyrot:[0,0,0],config:gy.animateBack,onRest:e})}),I8=t=>{if(Math.abs(t.x)>Math.abs(t.y)){if(t.x>to.swipeThreshold)return"right";if(t.x<-to.swipeThreshold)return"left"}else{if(t.y>to.swipeThreshold)return"down";if(t.y<-to.swipeThreshold)return"up"}return"none"},Ej=Sj.div,Pj=ml.forwardRef(({flickOnSwipe:t=!0,children:e,onSwipe:r,onCardLeftScreen:n,className:a,preventSwipe:i=[],swipeRequirementType:l="velocity",swipeThreshold:u=to.swipeThreshold,onSwipeRequirementFulfilled:c,onSwipeRequirementUnfulfilled:d},f)=>{const{width:g,height:v}=Cj(),[{xyrot:y},b]=xj(()=>({xyrot:[0,0,0],config:gy.touchResponsive}));to.swipeThreshold=u,ml.useImperativeHandle(f,()=>({async swipe(m="right"){r&&r(m);const C=1.3,N=(Math.random()-.5)/2;m==="right"?await dc({x:C,y:N},b,g,v):m==="left"?await dc({x:-C,y:N},b,g,v):m==="up"?await dc({x:N,y:-C},b,g,v):m==="down"&&await dc({x:N,y:C},b,g,v),n&&n(m)},async restoreCard(){await M8(b)}}));const S=ml.useCallback(async(m,C)=>{const N=I8({x:l==="velocity"?C.vx:C.dx,y:l==="velocity"?C.vy:C.dy});if(N!=="none"&&t&&!i.includes(N)){r&&r(N),await dc(l==="velocity"?{x:C.vx,y:C.vy}:_j({x:C.dx,y:C.dy}),m,g,v),n&&n(N);return}M8(m)},[l,t,i,r,n,g,v]);let E="none";const x=(m,C,N,O)=>{let A=O?m.touches[0].clientX-C.x:m.clientX-C.x,R=O?m.touches[0].clientY-C.y:m.clientY-C.y;C.x===0&&C.y===0&&(A=0,R=0);const j=-(A-N.dx)/(N.timeStamp-Date.now()),L=-(R-N.dy)/(N.timeStamp-Date.now());return{dx:A,dy:R,vx:j,vy:L,timeStamp:Date.now()}};ml.useLayoutEffect(()=>{let m={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()},N=!1;const O=q=>{!q.srcElement.className.includes("pressable")&&q.cancelable&&q.preventDefault(),C=x(q,m,C,!0),m={x:q.touches[0].clientX,y:q.touches[0].clientY}};w.current.addEventListener("touchstart",O);const A=q=>{N=!0,C=x(q,m,C,!1),m={x:q.clientX,y:q.clientY}};w.current.addEventListener("mousedown",A);const R=q=>{if(c||d){const ie=I8({x:l==="velocity"?q.vx:q.dx,y:l==="velocity"?q.vy:q.dy});ie!==E&&(E=ie,E==="none"?d&&d():c&&c(ie))}let ne=q.vx*15;isNaN(ne)&&(ne=0),ne=Math.max(Math.min(ne,to.maxTilt),-to.maxTilt),b.start({xyrot:[q.dx,q.dy,ne],config:gy.touchResponsive})},j=q=>{if(!N)return;const ne=x(q,m,C,!1);C=ne,R(ne)};window.addEventListener("mousemove",j);const L=q=>{N&&(N=!1,S(b,C),m={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()})};window.addEventListener("mouseup",L);const U=q=>{const ne=x(q,m,C,!0);C=ne,R(ne)};w.current.addEventListener("touchmove",U);const H=q=>{S(b,C),m={x:0,y:0},C={dx:0,dy:0,vx:0,vy:0,timeStamp:Date.now()}};return w.current.addEventListener("touchend",H),()=>{w.current.removeEventListener("touchstart",O),w.current.removeEventListener("touchmove",U),w.current.removeEventListener("touchend",H),window.removeEventListener("mousemove",j),window.removeEventListener("mouseup",L),w.current.removeEventListener("mousedown",A)}},[S,b,c,d]);const w=ml.useRef();return ml.createElement(Ej,{ref:w,className:a,style:{transform:y.to((m,C,N)=>`translate3d(${m}px, ${C}px, 0px) rotate(${N}deg)`)},children:e})});var Mj=Pj;const Ij=yi(Mj);function Sn(t){return e=>typeof e=="string"&&new RegExp(t.source,t.flags).test(e)}const Nj=Sn(/^[1-9][0-9]*$/),vy=Sn(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)$/),Oj=Sn(/^E[1-9][0-9]*$/),mp=Sn(/^Q[1-9][0-9]*$/),gp=Sn(/^P[1-9][0-9]*$/),N8=Sn(/^L[1-9][0-9]*$/),O8=Sn(/^L[1-9][0-9]*-F[1-9][0-9]*$/),R8=Sn(/^L[1-9][0-9]*-S[1-9][0-9]*$/),Rj=Sn(/^M[1-9][0-9]*$/),Tj=Sn(/^((Q|P|L|M)[1-9][0-9]*|L[1-9][0-9]*-(F|S)[1-9][0-9]*)\$[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),Lj=Sn(/^[0-9a-f]{40}$/),T8=Sn(/^\d+$/),L8=Sn(/^(Q|P|L|M)[1-9][0-9]*$/);function Fj(t){if(typeof t!="string")return!1;const[e,r]=t.split("#");return vy(e)&&gp(r)}function F8(t){return typeof t!="string"?!1:t.startsWith("Item:")?mp(t.substring(5)):t.startsWith("Lexeme:")?N8(t.substring(7)):t.startsWith("Property:")?gp(t.substring(9)):mp(t)}function jj(t){if(!L8(t))throw new Error(`invalid entity id: ${t}`);return t.replace(/^(Q|P|L|M)/,"")}function Aj(t,e){let r=`https://commons.wikimedia.org/wiki/Special:FilePath/${t}`;return typeof e=="number"&&(r+=`?width=${e}`),r}function zj(t){const e=t.split(/[$-]/);if(e.length===6)return e[0].toUpperCase();if(e.length===7)return e.slice(0,2).join("-").toUpperCase();throw new Error(`invalid guid: ${t}`)}const Dj=Object.freeze(Object.defineProperty({__proto__:null,getEntityIdFromGuid:zj,getImageUrl:Aj,getNumericId:jj,isEntityId:vy,isEntityPageTitle:F8,isEntitySchemaId:Oj,isFormId:O8,isGuid:Tj,isHash:Lj,isItemId:mp,isLexemeId:N8,isMediaInfoId:Rj,isNonNestedEntityId:L8,isNumericId:Nj,isPropertyClaimsId:Fj,isPropertyId:gp,isRevisionId:T8,isSenseId:R8},Symbol.toStringTag,{value:"Module"}));function Ca(t){return typeof t=="string"?[t]:Array.isArray(t)?[...t]:[]}function j8(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}const A8=t=>encodeURIComponent(t).replace(/[!'()*]/g,$j),Bj=t=>t.replace(/\s/g,"_");function Uj(t){return Array.from(new Set(t))}const $j=t=>"%"+t.charCodeAt(0).toString(16);function ro(t){if(t.length!==1||!j8(t[0]))throw new Error(`Since wikibase-sdk v9.0.0, this function expects arguments to be passed in an object + See https://github.com/maxlath/wikibase-sdk/blob/main/CHANGELOG.md`)}function hc(t,e){return typeof e=="string"&&t.includes(e)}function yy(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function by(t){return Object.entries(t)}function ky(t){typeof t=="object"&&(t=t.time);const e=t[0];let[r,n]=t.slice(1).split("T");r=r.replace(/-00/g,"-01");const a=`${r}T${n}`;return Vj(e,a)}const Vj=(t,e)=>{const r=e.split("-")[0];return t==="-"||r.length>4?Gj(t,e,r):new Date(e)},Gj=(t,e,r)=>{let n;return r.length===4?n=`${t}00${e}`:r.length===5?n=`${t}0${e}`:n=t+e,new Date(n)};function wy(t){return e=>{try{return t(e)}catch{e=typeof e=="string"?e:e.time;const r=e[0];let[n,a]=e.slice(1).split("T");if(!r||!n||!a)throw new Error("TimeInput is invalid: "+JSON.stringify(e));return n=n.replace(/-00/g,"-01"),`${r}${n}T${a}`}}}const Wj=t=>ky(t).getTime(),qj=t=>ky(t).toISOString(),Hj=t=>{if(typeof t=="object"){const{time:e,precision:r}=t;r===9?t=e.replace("-01-01T","-00-00T"):r===10?t=e.replace("-01T","-00T"):t=e}return t.split("T")[0].replace(/^\+/,"").replace(/^(-?)0+/,"$1").replace(/-00$/,"").replace(/-00$/,"")},z8=wy(Wj),D8=wy(qj),B8=wy(Hj),Kj=Object.freeze(Object.defineProperty({__proto__:null,wikibaseTimeToDateObject:ky,wikibaseTimeToEpochTime:z8,wikibaseTimeToISOString:D8,wikibaseTimeToSimpleDay:B8},Symbol.toStringTag,{value:"Module"})),no=t=>t.value,Yj=(t,e)=>e.keepRichValues?t.value:t.value.text,gl=(t,e)=>Xj(t,e.entityPrefix),Qj={item:"Q",lexeme:"L",property:"P"},Xj=(t,e)=>{const{value:r}=t,n=r.id||Qj[r["entity-type"]]+r["numeric-id"];return typeof e=="string"?`${e}:${n}`:n},Jj=(t,e)=>{const{value:r}=t,n=parseFloat(r.amount);if(e.keepRichValues){const a={amount:parseFloat(r.amount),unit:r.unit.replace(/^https?:\/\/.*\/entity\//,"")};return r.upperBound!=null&&(a.upperBound=parseFloat(r.upperBound)),r.lowerBound!=null&&(a.lowerBound=parseFloat(r.lowerBound)),a}else return n},Zj=(t,e)=>e.keepRichValues?t.value:[t.value.latitude,t.value.longitude],eA=(t,e)=>{let r;if(typeof e.timeConverter=="function"?r=e.timeConverter(t.value):r=tA(e.timeConverter)(t.value),e.keepRichValues){const{timezone:n,before:a,after:i,precision:l,calendarmodel:u}=t.value;return{time:r,timezone:n,before:a,after:i,precision:l,calendarmodel:u}}else return r},tA=(t="iso")=>{const e=rA[t];if(!e)throw new Error(`invalid converter key: ${JSON.stringify(t).substring(0,100)}`);return e},rA={iso:D8,epoch:z8,"simple-day":B8,none:t=>typeof t=="string"?t:t.time},nA={commonsMedia:no,"external-id":no,"geo-shape":no,"globe-coordinate":Zj,math:no,monolingualtext:Yj,"musical-notation":no,quantity:Jj,string:no,"tabular-data":no,time:eA,url:no,"wikibase-entityid":gl,"wikibase-form":gl,"wikibase-item":gl,"wikibase-lexeme":gl,"wikibase-property":gl,"wikibase-sense":gl},U8=t=>t.toLowerCase().replace(/[\s-]/g,""),$8={};for(const[t,e]of Object.entries(nA))$8[U8(t)]=e;function aA(t,e,r,n){t=t||e.type;try{const a=$8[U8(t)];return a(e,r)}catch(a){throw a.message==="parsers[datatype] is not a function"&&(a.message=`${t} claim parser isn't implemented + Claim id: ${n} + Please report to https://github.com/maxlath/wikibase-sdk/issues`),a}}function xy(t){const e={};for(const r of t){const{rank:n}=r;e[n]=e[n]||[],e[n].push(r)}return e.preferred||e.normal||[]}function V8(t){return t.filter(e=>e.rank!=="deprecated")}function iA(t){const e={};for(const[r,n]of by(t))e[r]=xy(n);return e}const oA=Object.freeze(Object.defineProperty({__proto__:null,nonDeprecatedPropertyClaims:V8,truthyClaims:iA,truthyPropertyClaims:xy},Symbol.toStringTag,{value:"Module"}));function Sy(t,e){const{propertyPrefix:r}=e,n={};for(let a in t){const i=t[a];r&&(a=r+":"+a),n[a]=Cy(i,e)}return n}function Cy(t,e){if(t==null||t.length===0)return[];const{keepNonTruthy:r,keepNonDeprecated:n,areSubSnaks:a}=K8(e);return n?t=V8(t):r||a||(t=xy(t)),t=t.map(i=>_y(i,e)).filter(i=>i!==void 0),t[0]&&typeof t[0]!="object"?Uj(t):t}function G8(t,e){const{keepQualifiers:r,keepReferences:n,keepIds:a,keepHashes:i,keepTypes:l,keepSnaktypes:u,keepRanks:c}=K8(e),{mainsnak:d,rank:f}=t;let g,v,y,b,S,E;if(d?(v=d.datatype,y=d.datavalue,b=d.snaktype):(y=t.datavalue,v=t.datatype,b=t.snaktype,t.hash?S=!0:E=!0),y)g=aA(v,y,e,t.id);else if(b==="somevalue")g=e.somevalueValue;else if(b==="novalue")g=e.novalueValue;else throw new Error("no datavalue or special snaktype found");if(S){if(!(i||l||u))return g;const m={value:g};return i&&(m.hash=t.hash),l&&(m.type=v),u&&(m.snaktype=b),m}if(E)return l?{type:v,value:g}:g;if(!(r||n||a||l||u||c))return g;const x={value:g};l&&(x.type=v),u&&(x.snaktype=b),c&&(x.rank=f);const w=vp(e);return w.keepHashes=i,r&&(x.qualifiers=q8(t.qualifiers,w)),n&&(t.references=t.references||[],x.references=H8(t.references,w)),a&&(x.id=t.id),x}function vl(t,e={}){return Sy(t,e)}function W8(t,e={}){return Cy(t,e)}function _y(t,e={}){return G8(t,e)}function q8(t,e={}){return Sy(t,vp(e))}function sA(t,e={}){return Cy(t,vp(e))}function lA(t,e={}){return G8(t,e)}function H8(t,e={}){return t.map(r=>uA(r,e))}function uA(t,e={}){const r=vp(e),n=Sy(t.snaks,r);return r.keepHashes?{snaks:n,hash:t.hash}:n}const vp=(t={})=>t.areSubSnaks?t:Object.assign({},t,{areSubSnaks:!0}),cA=["keepQualifiers","keepReferences","keepIds","keepHashes","keepTypes","keepSnaktypes","keepRanks","keepRichValues"],K8=(t={})=>(t.keepAll&&cA.forEach(e=>{t[e]==null&&(t[e]=!0)}),t);function fc(t){const e={};for(const[r,n]of by(t))e[r]=n!=null?n.value:null;return e}function dA(t){const e={};for(const[r,n]of by(t))e[r]=n!=null?n.map(a=>a.value):[];return e}function Y8(t){return fc(t)}function Q8(t){return fc(t)}function X8(t){return dA(t)}function J8(t){return fc(t)}function Z8(t){return fc(t)}function e6(t){return fc(t)}const t6=(t,e={})=>{const{id:r,representations:n,grammaticalFeatures:a,claims:i}=t;if(!O8(r))throw new Error("invalid form object");return{id:r,representations:Z8(n),grammaticalFeatures:a,claims:vl(i,e)}},r6=(t,e={})=>t.map(r=>t6(r,e)),n6=(t,e={})=>{const{id:r,glosses:n,claims:a}=t;if(!R8(r))throw new Error("invalid sense object");return{id:r,glosses:e6(n),claims:vl(a,e)}};function a6(t,e={}){return t.map(r=>n6(r,e))}const Ey={commonswiki:"commons",foundationwiki:"foundation",mediawikiwiki:"mediawiki",metawiki:"meta",outreachwiki:"outreach",sourceswiki:"sources",specieswiki:"species",wikidatawiki:"wikidata",wikifunctionswiki:"wikifunctions",wikimaniawiki:"wikimania"},Py=["aawiki","aawikibooks","aawiktionary","abwiki","abwiktionary","acewiki","adywiki","afwiki","afwikibooks","afwikiquote","afwiktionary","akwiki","akwikibooks","akwiktionary","alswiki","alswikibooks","alswikiquote","alswiktionary","altwiki","amiwiki","amwiki","amwikiquote","amwiktionary","angwiki","angwikibooks","angwikiquote","angwikisource","angwiktionary","anpwiki","anwiki","anwiktionary","arcwiki","arwiki","arwikibooks","arwikinews","arwikiquote","arwikisource","arwikiversity","arwiktionary","arywiki","arzwiki","astwiki","astwikibooks","astwikiquote","astwiktionary","aswiki","aswikibooks","aswikiquote","aswikisource","aswiktionary","atjwiki","avkwiki","avwiki","avwiktionary","awawiki","aywiki","aywikibooks","aywiktionary","azbwiki","azwiki","azwikibooks","azwikiquote","azwikisource","azwiktionary","banwiki","banwikisource","barwiki","bat_smgwiki","bawiki","bawikibooks","bbcwiki","bclwiki","bclwikiquote","bclwiktionary","be_x_oldwiki","bewiki","bewikibooks","bewikiquote","bewikisource","bewiktionary","bgwiki","bgwikibooks","bgwikinews","bgwikiquote","bgwikisource","bgwiktionary","bhwiki","bhwiktionary","biwiki","biwikibooks","biwiktionary","bjnwiki","bjnwikiquote","bjnwiktionary","blkwiki","blkwiktionary","bmwiki","bmwikibooks","bmwikiquote","bmwiktionary","bnwiki","bnwikibooks","bnwikiquote","bnwikisource","bnwikivoyage","bnwiktionary","bowiki","bowikibooks","bowiktionary","bpywiki","brwiki","brwikiquote","brwikisource","brwiktionary","bswiki","bswikibooks","bswikinews","bswikiquote","bswikisource","bswiktionary","btmwiktionary","bugwiki","bxrwiki","cawiki","cawikibooks","cawikinews","cawikiquote","cawikisource","cawiktionary","cbk_zamwiki","cdowiki","cebwiki","cewiki","chowiki","chrwiki","chrwiktionary","chwiki","chwikibooks","chwiktionary","chywiki","ckbwiki","ckbwiktionary","commonswiki","cowiki","cowikibooks","cowikiquote","cowiktionary","crhwiki","crwiki","crwikiquote","crwiktionary","csbwiki","csbwiktionary","cswiki","cswikibooks","cswikinews","cswikiquote","cswikisource","cswikiversity","cswiktionary","cuwiki","cvwiki","cvwikibooks","cywiki","cywikibooks","cywikiquote","cywikisource","cywiktionary","dagwiki","dawiki","dawikibooks","dawikiquote","dawikisource","dawiktionary","dewiki","dewikibooks","dewikinews","dewikiquote","dewikisource","dewikiversity","dewikivoyage","dewiktionary","dgawiki","dinwiki","diqwiki","diqwiktionary","dsbwiki","dtywiki","dvwiki","dvwiktionary","dzwiki","dzwiktionary","eewiki","elwiki","elwikibooks","elwikinews","elwikiquote","elwikisource","elwikiversity","elwikivoyage","elwiktionary","emlwiki","enwiki","enwikibooks","enwikinews","enwikiquote","enwikisource","enwikiversity","enwikivoyage","enwiktionary","eowiki","eowikibooks","eowikinews","eowikiquote","eowikisource","eowikivoyage","eowiktionary","eswiki","eswikibooks","eswikinews","eswikiquote","eswikisource","eswikiversity","eswikivoyage","eswiktionary","etwiki","etwikibooks","etwikiquote","etwikisource","etwiktionary","euwiki","euwikibooks","euwikiquote","euwikisource","euwiktionary","extwiki","fatwiki","fawiki","fawikibooks","fawikinews","fawikiquote","fawikisource","fawikivoyage","fawiktionary","ffwiki","fiu_vrowiki","fiwiki","fiwikibooks","fiwikinews","fiwikiquote","fiwikisource","fiwikiversity","fiwikivoyage","fiwiktionary","fjwiki","fjwiktionary","fonwiki","foundationwiki","fowiki","fowikisource","fowiktionary","frpwiki","frrwiki","frwiki","frwikibooks","frwikinews","frwikiquote","frwikisource","frwikiversity","frwikivoyage","frwiktionary","furwiki","fywiki","fywikibooks","fywiktionary","gagwiki","ganwiki","gawiki","gawikibooks","gawikiquote","gawiktionary","gcrwiki","gdwiki","gdwiktionary","glkwiki","glwiki","glwikibooks","glwikiquote","glwikisource","glwiktionary","gnwiki","gnwikibooks","gnwiktionary","gomwiki","gomwiktionary","gorwiki","gorwiktionary","gotwiki","gotwikibooks","gpewiki","gucwiki","gurwiki","guwiki","guwikibooks","guwikiquote","guwikisource","guwiktionary","guwwiki","guwwikinews","guwwikiquote","guwwiktionary","gvwiki","gvwiktionary","hakwiki","hawiki","hawiktionary","hawwiki","hewiki","hewikibooks","hewikinews","hewikiquote","hewikisource","hewikivoyage","hewiktionary","hifwiki","hifwiktionary","hiwiki","hiwikibooks","hiwikiquote","hiwikisource","hiwikiversity","hiwikivoyage","hiwiktionary","howiki","hrwiki","hrwikibooks","hrwikiquote","hrwikisource","hrwiktionary","hsbwiki","hsbwiktionary","htwiki","htwikisource","huwiki","huwikibooks","huwikinews","huwikiquote","huwikisource","huwiktionary","hywiki","hywikibooks","hywikiquote","hywikisource","hywiktionary","hywwiki","hzwiki","iawiki","iawikibooks","iawiktionary","idwiki","idwikibooks","idwikiquote","idwikisource","idwiktionary","iewiki","iewikibooks","iewiktionary","igwiki","igwikiquote","igwiktionary","iiwiki","ikwiki","ikwiktionary","ilowiki","inhwiki","iowiki","iowiktionary","iswiki","iswikibooks","iswikiquote","iswikisource","iswiktionary","itwiki","itwikibooks","itwikinews","itwikiquote","itwikisource","itwikiversity","itwikivoyage","itwiktionary","iuwiki","iuwiktionary","jamwiki","jawiki","jawikibooks","jawikinews","jawikiquote","jawikisource","jawikiversity","jawikivoyage","jawiktionary","jbowiki","jbowiktionary","jvwiki","jvwikisource","jvwiktionary","kaawiki","kabwiki","kawiki","kawikibooks","kawikiquote","kawiktionary","kbdwiki","kbdwiktionary","kbpwiki","kcgwiki","kcgwiktionary","kgwiki","kiwiki","kjwiki","kkwiki","kkwikibooks","kkwikiquote","kkwiktionary","klwiki","klwiktionary","kmwiki","kmwikibooks","kmwiktionary","knwiki","knwikibooks","knwikiquote","knwikisource","knwiktionary","koiwiki","kowiki","kowikibooks","kowikinews","kowikiquote","kowikisource","kowikiversity","kowiktionary","krcwiki","krwiki","krwikiquote","kshwiki","kswiki","kswikibooks","kswikiquote","kswiktionary","kuwiki","kuwikibooks","kuwikiquote","kuwiktionary","kvwiki","kwwiki","kwwikiquote","kwwiktionary","kywiki","kywikibooks","kywikiquote","kywiktionary","ladwiki","lawiki","lawikibooks","lawikiquote","lawikisource","lawiktionary","lbewiki","lbwiki","lbwikibooks","lbwikiquote","lbwiktionary","lezwiki","lfnwiki","lgwiki","lijwiki","lijwikisource","liwiki","liwikibooks","liwikinews","liwikiquote","liwikisource","liwiktionary","lldwiki","lmowiki","lmowiktionary","lnwiki","lnwikibooks","lnwiktionary","lowiki","lowiktionary","lrcwiki","ltgwiki","ltwiki","ltwikibooks","ltwikiquote","ltwikisource","ltwiktionary","lvwiki","lvwikibooks","lvwiktionary","madwiki","maiwiki","map_bmswiki","mdfwiki","mediawikiwiki","metawiki","mgwiki","mgwikibooks","mgwiktionary","mhrwiki","mhwiki","mhwiktionary","minwiki","minwiktionary","miwiki","miwikibooks","miwiktionary","mkwiki","mkwikibooks","mkwikisource","mkwiktionary","mlwiki","mlwikibooks","mlwikiquote","mlwikisource","mlwiktionary","mniwiki","mniwiktionary","mnwiki","mnwikibooks","mnwiktionary","mnwwiki","mnwwiktionary","mowiki","mowiktionary","mrjwiki","mrwiki","mrwikibooks","mrwikiquote","mrwikisource","mrwiktionary","mswiki","mswikibooks","mswiktionary","mtwiki","mtwiktionary","muswiki","mwlwiki","myvwiki","mywiki","mywikibooks","mywiktionary","mznwiki","nahwiki","nahwikibooks","nahwiktionary","napwiki","napwikisource","nawiki","nawikibooks","nawikiquote","nawiktionary","nds_nlwiki","ndswiki","ndswikibooks","ndswikiquote","ndswiktionary","newiki","newikibooks","newiktionary","newwiki","ngwiki","niawiki","niawiktionary","nlwiki","nlwikibooks","nlwikinews","nlwikiquote","nlwikisource","nlwikivoyage","nlwiktionary","nnwiki","nnwikiquote","nnwiktionary","novwiki","nowiki","nowikibooks","nowikinews","nowikiquote","nowikisource","nowiktionary","nqowiki","nrmwiki","nsowiki","nvwiki","nywiki","ocwiki","ocwikibooks","ocwiktionary","olowiki","omwiki","omwiktionary","orwiki","orwikisource","orwiktionary","oswiki","outreachwiki","pagwiki","pamwiki","papwiki","pawiki","pawikibooks","pawikisource","pawiktionary","pcdwiki","pcmwiki","pdcwiki","pflwiki","pihwiki","piwiki","piwiktionary","plwiki","plwikibooks","plwikinews","plwikiquote","plwikisource","plwikivoyage","plwiktionary","pmswiki","pmswikisource","pnbwiki","pnbwiktionary","pntwiki","pswiki","pswikibooks","pswikivoyage","pswiktionary","ptwiki","ptwikibooks","ptwikinews","ptwikiquote","ptwikisource","ptwikiversity","ptwikivoyage","ptwiktionary","pwnwiki","quwiki","quwikibooks","quwikiquote","quwiktionary","rmwiki","rmwikibooks","rmwiktionary","rmywiki","rnwiki","rnwiktionary","roa_rupwiki","roa_rupwiktionary","roa_tarawiki","rowiki","rowikibooks","rowikinews","rowikiquote","rowikisource","rowikivoyage","rowiktionary","ruewiki","ruwiki","ruwikibooks","ruwikinews","ruwikiquote","ruwikisource","ruwikiversity","ruwikivoyage","ruwiktionary","rwwiki","rwwiktionary","sahwiki","sahwikiquote","sahwikisource","satwiki","sawiki","sawikibooks","sawikiquote","sawikisource","sawiktionary","scnwiki","scnwiktionary","scowiki","scwiki","scwiktionary","sdwiki","sdwikinews","sdwiktionary","sewiki","sewikibooks","sgwiki","sgwiktionary","shiwiki","shnwiki","shnwikibooks","shnwikivoyage","shnwiktionary","shwiki","shwiktionary","shywiktionary","simplewiki","simplewikibooks","simplewikiquote","simplewiktionary","siwiki","siwikibooks","siwiktionary","skrwiki","skrwiktionary","skwiki","skwikibooks","skwikiquote","skwikisource","skwiktionary","slwiki","slwikibooks","slwikiquote","slwikisource","slwikiversity","slwiktionary","smnwiki","smwiki","smwiktionary","snwiki","snwiktionary","sourceswiki","sowiki","sowiktionary","specieswiki","sqwiki","sqwikibooks","sqwikinews","sqwikiquote","sqwiktionary","srnwiki","srwiki","srwikibooks","srwikinews","srwikiquote","srwikisource","srwiktionary","sswiki","sswiktionary","stqwiki","stwiki","stwiktionary","suwiki","suwikibooks","suwikiquote","suwikisource","suwiktionary","svwiki","svwikibooks","svwikinews","svwikiquote","svwikisource","svwikiversity","svwikivoyage","svwiktionary","swwiki","swwikibooks","swwiktionary","szlwiki","szywiki","tawiki","tawikibooks","tawikinews","tawikiquote","tawikisource","tawiktionary","taywiki","tcywiki","tetwiki","tewiki","tewikibooks","tewikiquote","tewikisource","tewiktionary","tgwiki","tgwikibooks","tgwiktionary","thwiki","thwikibooks","thwikinews","thwikiquote","thwikisource","thwiktionary","tiwiki","tiwiktionary","tkwiki","tkwikibooks","tkwikiquote","tkwiktionary","tlwiki","tlwikibooks","tlwikiquote","tlwiktionary","tlywiki","tnwiki","tnwiktionary","towiki","towiktionary","tpiwiki","tpiwiktionary","trvwiki","trwiki","trwikibooks","trwikinews","trwikiquote","trwikisource","trwikivoyage","trwiktionary","tswiki","tswiktionary","ttwiki","ttwikibooks","ttwikiquote","ttwiktionary","tumwiki","twwiki","twwiktionary","tyvwiki","tywiki","udmwiki","ugwiki","ugwikibooks","ugwikiquote","ugwiktionary","ukwiki","ukwikibooks","ukwikinews","ukwikiquote","ukwikisource","ukwikivoyage","ukwiktionary","urwiki","urwikibooks","urwikiquote","urwiktionary","uzwiki","uzwikibooks","uzwikiquote","uzwiktionary","vecwiki","vecwikisource","vecwiktionary","vepwiki","vewiki","viwiki","viwikibooks","viwikiquote","viwikisource","viwikivoyage","viwiktionary","vlswiki","vowiki","vowikibooks","vowikiquote","vowiktionary","warwiki","wawiki","wawikibooks","wawikisource","wawiktionary","wikidatawiki","wikifunctionswiki","wikimaniawiki","wowiki","wowikiquote","wowiktionary","wuuwiki","xalwiki","xhwiki","xhwikibooks","xhwiktionary","xmfwiki","yiwiki","yiwikisource","yiwiktionary","yowiki","yowikibooks","yowiktionary","yuewiktionary","zawiki","zawikibooks","zawikiquote","zawiktionary","zeawiki","zghwiki","zh_classicalwiki","zh_min_nanwiki","zh_min_nanwikibooks","zh_min_nanwikiquote","zh_min_nanwikisource","zh_min_nanwiktionary","zh_yuewiki","zhwiki","zhwikibooks","zhwikinews","zhwikiquote","zhwikisource","zhwikiversity","zhwikivoyage","zhwiktionary","zuwiki","zuwikibooks","zuwiktionary"],hA="https://www.wikidata.org/wiki/";function i6({site:t,title:e}){if(ro(arguments),!t)throw new Error("missing a site");if(!e)throw new Error("missing a title");if(yy(yp,t))return yp[t](e);const r=t.replace(/wiki$/,"");if(yy(yp,r))return yp[r](e);const{lang:n,project:a}=o6(t);return e=A8(Bj(e)),`https://${n}.${a}.org/wiki/${e}`}const Ho=t=>e=>`https://${t}.wikimedia.org/wiki/${e}`,yp={commons:Ho("commons"),foundation:Ho("foundation"),mediawiki:t=>`https://www.mediawiki.org/wiki/${t}`,meta:Ho("meta"),outreach:Ho("outreach"),sources:t=>`https://wikisource.org/wiki/${t}`,species:Ho("species"),wikidata:t=>{const e=fA[t[0]];let r=e?`${e}:${t}`:t;return r=r.replace("-","#"),`${hA}${r}`},wikifunctions:Ho("wikifunctions"),wikimania:Ho("wikimania")},fA={E:"EntitySchema",L:"Lexeme",P:"Property"},pA=/^https?:\/\/([\w-]{2,10})\.(\w+)\.org\/\w+\/(.*)/;function o6(t){if(t.startsWith("http")){const e=t,r=e.match(pA);if(!r)throw new Error(`invalid sitelink url: ${e}`);let[n,a,i]=r.slice(1);if(i=decodeURIComponent(i),n==="commons")return{lang:"en",project:"commons",key:"commons",title:i,url:e};if(!hc(gA,a))throw new Error(`project is unknown: ${a}`);if(n==="www")return{lang:"en",project:a,key:a,title:i,url:e};const l=`${n.replace(/-/g,"_")}${a}`.replace("wikipedia","wiki");return{lang:n,project:a,key:l,title:i,url:e}}else{if(yy(Ey,t))return{lang:"en",project:Ey[t],key:t};if(!hc(Py,t))throw new Error(`site not found: ${t}. Updating wikibase-sdk to a more recent version might fix the issue.`);let[e,r,n]=t.split("wik");if(n!=null)throw new Error(`invalid sitelink key: ${t}`);e=e.replace(/_/g,"-");const a=l6[r];if(!a)throw new Error(`sitelink project not found: ${a}`);return{lang:e,project:a,key:t}}}const s6=t=>hc(Py,t),mA=s6,l6={i:"wikipedia",isource:"wikisource",iquote:"wikiquote",tionary:"wiktionary",ibooks:"wikibooks",iversity:"wikiversity",ivoyage:"wikivoyage",inews:"wikinews"},gA=[...Object.values(l6),...Object.values(Ey)],vA=Object.freeze(Object.defineProperty({__proto__:null,getSitelinkData:o6,getSitelinkUrl:i6,isSite:s6,isSitelinkKey:mA},Symbol.toStringTag,{value:"Module"}));function u6(t,e={}){let{addUrl:r,keepBadges:n,keepAll:a}=e;return n=n||a,Object.keys(t).reduce(yA({sitelinks:t,addUrl:r,keepBadges:n}),{})}const yA=({sitelinks:t,addUrl:e,keepBadges:r})=>(n,a)=>{if(t[a]==null)return n[a]=t[a],n;const{title:i,badges:l}=t[a];return e||r?(n[a]={title:i},e&&(n[a].url=i6({site:a,title:i})),r&&(n[a].badges=l)):n[a]=i,n},bA={labels:Y8,descriptions:Q8,aliases:X8,claims:vl,statements:vl,sitelinks:u6,lemmas:J8,forms:r6,senses:a6},c6=(t,e={})=>{const{type:r}=t,n={id:t.id,type:r,modified:t.modified};return r==="item"?(Wr(t,n,"labels"),Wr(t,n,"descriptions"),Wr(t,n,"aliases"),Wr(t,n,"claims",e),Wr(t,n,"sitelinks",e)):r==="property"?(n.datatype=t.datatype,Wr(t,n,"labels"),Wr(t,n,"descriptions"),Wr(t,n,"aliases"),Wr(t,n,"claims",e)):r==="lexeme"?(Wr(t,n,"lemmas"),n.lexicalCategory=t.lexicalCategory,n.language=t.language,Wr(t,n,"claims",e),Wr(t,n,"forms",e),Wr(t,n,"senses",e)):r==="mediainfo"&&(Wr(t,n,"labels"),Wr(t,n,"descriptions"),Wr(t,n,"statements",e)),n},Wr=(t,e,r,n)=>{t[r]!=null&&(e[r]=bA[r](t[r],n))},d6=(t,e={})=>{t.entities&&(t=t.entities);const{entityPrefix:r}=e,n={};for(const[a,i]of Object.entries(t)){const l=r?`${r}:${a}`:a;n[l]=c6(i,e)}return n};function kA(t){t=t.body||t;const{entities:e}=t;return d6(e)}function wA(t){return t=t.body||t,t.query.search.map(e=>e.title)}const xA=Object.freeze(Object.defineProperty({__proto__:null,entities:kA,pagesTitles:wA},Symbol.toStringTag,{value:"Module"}));function SA(t,e={}){typeof t=="string"&&(t=JSON.parse(t));const{vars:r}=t.head,n=t.results.bindings;if(r.length===1&&e.minimize){const u=r[0];return n.map(c=>My(c[u])).filter(c=>c!=null)}const{richVars:a,associatedVars:i,standaloneVars:l}=EA(r);return n.map(u=>PA(a,i,l,u))}function My(t){if(!t||t.type==="bnode")return null;const{value:e}=t;if(t.type==="uri")return CA(e);const r=(t.datatype||"").replace("http://www.w3.org/2001/XMLSchema#","");return r==="decimal"||r==="integer"||r==="float"||r==="double"?parseFloat(e):r==="boolean"?e==="true":e}function CA(t){return t.match(/http.*\/entity\/statement\//)?_A(t):t.replace(/^https?:\/\/.*\/entity\//,"").replace(/^https?:\/\/.*\/prop\/direct\//,"")}function _A(t){t=t.replace(/^https?:\/\/.*\/entity\/statement\//,"");const e=t.split("-");return e[0]+"$"+e.slice(1).join("-")}function EA(t){let e=t.filter(i=>{const l=new RegExp(`^${i}[A-Z]\\w+`);return t.some(u=>l.test(u))});e=e.filter(i=>!e.some(l=>i!==l&&i.startsWith(l)));const r=new RegExp(`^(${e.join("|")})[A-Z]`),n=t.filter(i=>r.test(i)),a=t.filter(i=>!e.includes(i)&&!r.test(i));return{richVars:e,associatedVars:n,standaloneVars:a}}function PA(t,e,r,n){const a={};for(const i of t){const l={},u=My(n[i]);u!=null&&(l.value=u);for(const c of e)c.startsWith(i)&&MA(n,i,c,l);Object.keys(l).length>0&&(a[i]=l)}for(const i of r){const l=My(n[i]);l!=null&&(a[i]=l)}return a}function MA(t,e,r,n){let a=r.split(e)[1];a=a[0].toLowerCase()+a.slice(1),a=a==="altLabel"?"aliases":a;const i=t[r];i!=null&&(n[a]=i.value)}const IA=Object.freeze(Object.defineProperty({__proto__:null,aliases:X8,claim:_y,claims:vl,descriptions:Q8,entities:d6,entity:c6,form:t6,forms:r6,glosses:e6,labels:Y8,lemmas:J8,propertyClaims:W8,propertyQualifiers:sA,propertySnaks:W8,qualifier:lA,qualifiers:q8,references:H8,representations:Z8,sense:n6,senses:a6,sitelinks:u6,snak:_y,snaks:vl,sparqlResults:SA},Symbol.toStringTag,{value:"Module"})),NA=/^\d+[|\d]*$/;function OA(t){return function(e){ro(arguments);for(const[y,b]of Object.entries(e))if(y.startsWith("sr")){const S=y.replace(/^sr/,"");if(e[S]!=null)throw new Error(`${S} and ${y} are the same`);e[S]=b}const{search:r,haswbstatement:n,format:a="json",limit:i,offset:l,profile:u,sort:c}=e;let{namespace:d,prop:f}=e;if(!(r||n))throw new Error('missing "search" or "haswbstatement" parameter');let g="";if(r&&(g+=r),n){const y=n instanceof Array?n:[n];for(const b of y)b[0]==="-"?g+=` -haswbstatement:${b.slice(1)}`:g+=` haswbstatement:${b}`}if(i!=null&&(typeof i!="number"||i<1))throw new Error(`invalid limit: ${i}`);if(l!=null&&(typeof l!="number"||l<0))throw new Error(`invalid offset: ${l}`);if(d instanceof Array?d=d.join("|"):typeof d=="number"&&(d=d.toString()),d&&!NA.test(d))throw new Error(`invalid namespace: ${d}`);if(u!=null&&typeof u!="string")throw new Error(`invalid profile: ${u} (${typeof u}, expected string)`);if(c!=null&&typeof c!="string")throw new Error(`invalid sort: ${c} (${typeof c}, expected string)`);let v;if(f!=null){if(f instanceof Array&&(f=f.join("|")),typeof f!="string")throw new Error(`invalid prop: ${f} (${typeof f}, expected string)`);v=f.toString()}return t({action:"query",list:"search",srsearch:g.trim(),format:a,srnamespace:d,srlimit:i,sroffset:l,srqiprofile:u,srsort:c,srprop:v})}}function bp(t,e){return function(r){if(!e(r))throw new Error(`invalid ${t}: ${r} (type: ${FA(r)})`)}}const h6=bp("entity id",vy),RA=bp("property id",gp),TA=bp("entity page title",F8),LA=bp("revision id",T8);function FA(t){const e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Array)return"array";if(t instanceof Promise)return"promise"}return e==="number"&&Number.isNaN(t)?"NaN":e}function f6(t){return function({ids:e,languages:r,props:n,format:a="json",redirects:i}){if(ro(arguments),!(e&&e.length>0))throw new Error("no id provided");e=Ca(e),e.forEach(u=>h6(u)),e.length>50&&console.warn(`getEntities accepts 50 ids max to match Wikidata API limitations: + this request won't get all the desired entities. + You can use getManyEntities instead to generate several request urls + to work around this limitation`);const l={action:"wbgetentities",ids:e.join("|"),format:a};return i===!1&&(l.redirects="no"),r&&(r=Ca(r),l.languages=r.join("|")),n&&n.length>0&&(l.props=Ca(n).join("|")),t(l)}}function jA(t){return function({titles:e,sites:r,languages:n,props:a,format:i="json",redirects:l}){if(ro(arguments),!(e&&e.length>0))throw new Error("no titles provided");r&&r.length>0||(r=["enwiki"]),e=Ca(e),r=Ca(r).map(AA),a=Ca(a);const u={action:"wbgetentities",titles:e.join("|"),sites:r.join("|"),format:i};return r.length===1&&e.length===1&&(u.normalize=!0),n&&(n=Ca(n),u.languages=n.join("|")),a.length>0&&(u.props=a.join("|")),l===!1&&(u.redirects="no"),t(u)}}function AA(t){return hc(Py,t)?t:t.replace(/-/g,"_")+"wiki"}function zA(t,e){return function({id:r,revision:n}){return ro(arguments),h6(r),LA(n),`${t}/${e}/index.php?title=Special:EntityData/${r}.json&revision=${n}`}}function DA(t){const e=f6(t);return function({ids:r,languages:n,props:a,format:i,redirects:l}){if(ro(arguments),!(r instanceof Array))throw new Error("getManyEntities expects an array of ids");return BA(r).map(u=>e({ids:u,languages:n,props:a,format:i,redirects:l}))}}function BA(t){const e=[];for(;t.length>0;){const r=t.slice(0,50);t=t.slice(50),e.push(r)}return e}function p6(t){return function(e){const r=A8(e);return`${t}?format=json&query=${r}`}}const UA="FILTER NOT EXISTS { ?subject rdf:type wikibase:Property . } ",$A=t=>{const e=p6(t);return function(r){let{properties:n}=r;const{values:a,limit:i,caseInsensitive:l,keepProperties:u}=r,c=l?WA:GA,d=u?"":UA;n=Ca(n),n.forEach(g=>RA(g));let f=`SELECT DISTINCT ?subject WHERE { ${VA(a,c,n,d)} }`;return i&&(f+=` LIMIT ${i}`),e(f)}},VA=(t,e,r,n)=>(r=r.map(qA).join("|"),t instanceof Array?"{ "+t.map(m6).map(a=>e(r,a,n)).join("} UNION {")+" }":e(r,m6(t),n)),m6=t=>(mp(t)?t=`wd:${t}`:typeof t=="string"&&(t=`'${t}'`),t),GA=(t,e,r)=>`?subject ${t} ${e} . + ${r}`,WA=(t,e,r)=>`?subject ${t} ?value . + FILTER (lcase(?value) = ${e.toLowerCase()}) + ${r}`,qA=t=>"wdt:"+t;function HA(t){return function({ids:e,format:r,limit:n,start:a,end:i,prop:l,user:u,excludeuser:c,tag:d}){ro(arguments),e=Ca(e),e.forEach(v=>TA(v));const f=e.length===1,g={action:"query",prop:"revisions"};return g.titles=e.join("|"),g.format=r||"json",f&&(g.rvlimit=n||"max"),f&&a&&(g.rvstart=g6(a)),f&&i&&(g.rvend=g6(i)),l?g.rvprop=Ca(l).join("|"):g.rvprop="ids|flags|timestamp|user|userid|size|slotsize|sha1|slotsha1|contentmodel|comment|parsedcomment|content|tags|roles|oresscores",g.rvslots="*",u&&(g.rvuser=u),c&&(g.rvexcludeuser=c),d&&(g.rvtag=d),t(g)}}const g6=t=>typeof t=="number"&&tfunction({search:e,language:r="en",uselang:n,limit:a="20",continue:i="0",format:l="json",type:u="item"}){if(ro(arguments),n=n||r,!(e&&e.length>0))throw new Error("search can't be empty");if(!hc(YA,u))throw new Error(`invalid type: ${u}`);return t({action:"wbsearchentities",search:e,language:r,limit:a,continue:i,format:l,uselang:n,type:u})},XA=typeof location<"u"&&typeof document<"u";function JA(t){return e=>{XA&&(e=Object.assign(Object.assign({},e),{origin:"*"}));const r=Object.entries(e).filter(([,a])=>a!=null).map(([a,i])=>[a,String(i)]),n=new URLSearchParams(r).toString();return t+"?"+n}}const ZA=`Tip: if you just want to access functions that don't need an instance or a sparqlEndpoint, +those are also exposed directly on the module object. Exemple: +import { isItemId, simplify } from 'wikibase-sdk'`,ez=Object.assign(Object.assign(Object.assign(Object.assign({simplify:IA,parse:xA},Dj),vA),oA),Kj);function tz(t){if(!j8(t))throw new Error("invalid config");const{instance:e,sparqlEndpoint:r}=t;let{wgScriptPath:n="w"}=t;if(n=n.replace(/^\//,""),!(e||r))throw new Error(`one of instance or sparqlEndpoint should be set at initialization. +${ZA}`);let a,i,l;if(e){v6("instance",e),i=e.replace(/\/$/,"").replace(`/${n}/api.php`,""),l=`${i}/${n}/api.php`;const c=JA(l);a={searchEntities:QA(c),cirrusSearchPages:OA(c),getEntities:f6(c),getManyEntities:DA(c),getRevisions:HA(c),getEntityRevision:zA(e,n),getEntitiesFromSitelinks:jA(c)}}else a={searchEntities:Ko("searchEntities"),cirrusSearchPages:Ko("cirrusSearchPages"),getEntities:Ko("getEntities"),getManyEntities:Ko("getManyEntities"),getRevisions:Ko("getRevisions"),getEntityRevision:Ko("getEntityRevision"),getEntitiesFromSitelinks:Ko("getEntitiesFromSitelinks")};let u;return r?(v6("sparqlEndpoint",r),u={sparqlQuery:p6(r),getReverseClaims:$A(r)}):u={sparqlQuery:b6("sparqlQuery"),getReverseClaims:b6("getReverseClaims")},Object.assign(Object.assign(Object.assign({instance:{root:i,apiEndpoint:l}},ez),a),u)}const v6=(t,e)=>{if(!(typeof e=="string"&&e.startsWith("http")))throw new Error(`invalid ${t}: ${e}`)},y6=t=>e=>()=>{throw new Error(`${e} requires ${t} to be set at initialization`)},b6=y6("a sparqlEndpoint"),Ko=y6("an instance"),rz={sparqlQuery:(t="")=>{const e=tz({instance:"https://www.wikidata.org",sparqlEndpoint:"https://query.wikidata.org/sparql"}),r=` + SELECT ?item ?itemLabel ?artworkLabel ?countryLabel ?genreLabel ?year ?locationLabel ?creatorLabel ?materialLabel ?depictsLabel ?collectionLabel ?iiifManifest + WITH { + SELECT ?item (SAMPLE(?artwork) as ?artwork) (SAMPLE(?country) as ?country) (SAMPLE(?genre) as ?genre) (SAMPLE(YEAR(?inception)) as ?year) (SAMPLE(?location) as ?location) (SAMPLE(?creator) as ?creator) (SAMPLE(?material) as ?material) (SAMPLE(?depicts) as ?depicts) (SAMPLE(?collection) as ?collection) (SAMPLE(?iiifManifest) as ?iiifManifest) + WHERE { + ?item wdt:P6108 ?iiifManifest ; + wdt:P195 ?collection ; + wdt:P31 ?artwork . + FILTER ( ?artwork = wd:Q3305213 || ?artwork = wd:Q93184 || ?artwork = wd:Q11060274 || ?artwork = wd:Q860861 || ?artwork = wd:Q125191 ) + ${t!==""?`FILTER ( ?material = ${t} )`:""} + OPTIONAL { + ?item wdt:P495 ?countryOfOrigin. + FILTER(?countryOfOrigin = wd:Q31 || ?countryOfOrigin = wd:Q213 || ?countryOfOrigin = wd:Q35 || ?countryOfOrigin = wd:Q142 || ?countryOfOrigin = wd:Q36 || ?countryOfOrigin = wd:Q39 || ?countryOfOrigin = wd:Q32 || ?countryOfOrigin = wd:Q40 || ?countryOfOrigin = wd:Q55 || ?countryOfOrigin = wd:Q183 ) + } + OPTIONAL { + ?collection wdt:P17 ?country. + FILTER(?country = wd:Q31 || ?country = wd:Q213 || ?country = wd:Q35 || ?country = wd:Q142 || ?country = wd:Q36 || ?country = wd:Q39 || ?country = wd:Q32 || ?country = wd:Q40 || ?country = wd:Q55 || ?country = wd:Q183 ) + } + BIND(COALESCE(?countryOfOrigin, ?country) AS ?country) + FILTER(BOUND(?country)) + + OPTIONAL { ?item wdt:P136 ?genre. } + OPTIONAL { ?item wdt:P571 ?inception. } + OPTIONAL { ?item wdt:P276 ?location. } + OPTIONAL { ?item wdt:P170 ?creator. } + OPTIONAL { ?item wdt:P186 ?material. } + OPTIONAL { ?item wdt:P180 ?depicts. } + } + GROUP BY ?item + LIMIT 10 + } AS %result + WHERE { + INCLUDE %result. + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } + } ORDER BY ?itemLabel + `;return e.sparqlQuery(r)}},nz=()=>{const[t,e]=I.useState([]),[r,n]=I.useState(!0),[a,i]=I.useState(null);return I.useEffect(()=>{(async()=>{try{const l=await fetch(rz.sparqlQuery());if(!l.ok)throw new Error(`Error: ${l.status} - ${l.statusText}`);const u=await l.json();e(u.results.bindings)}catch(l){i(l.message)}finally{n(!1)}})()},[]),{data:t,loading:r,error:a}},k6=({onClick:t,materialIcon:e})=>te.jsx(Vr,{className:"p-4 text-xl text-black",onClick:t,rounded:!0,inline:!0,children:te.jsx(kn,{material:e})});function az(){const{t}=Fu(),[e,r]=I.useState(0),{addToImageList:n,imageList:a,removeFromImageList:i}=ii(),{data:l}=nz(),u=ii(x=>x.likeImage),c=I.useRef(e),d=I.useRef(null),f=I.useCallback(async x=>{if(!x)return;const w=async C=>{try{return await vx.fetchIIIFIdentifier(C)}catch(N){return console.error("Error:",N),null}},m=(await Promise.all(x.map(async C=>{var N,O,A,R,j;try{const L=await w(C.iiifManifest.value);return L!==null?{id:C.item.value,name:C.itemLabel.value||"",year:((N=C.year)==null?void 0:N.value)||"",country:(O=C.countryLabel)==null?void 0:O.value,location:((A=C?.locationLabel)==null?void 0:A.value)||"",creator:((R=C.creatorLabel)==null?void 0:R.value)||"",url:(j=C.iiifManifest)==null?void 0:j.value,identifier:L,image:`${L}/full/400,/0/default.jpg`,thumbnail:`${L}/full/100,100/0/default.jpg`}:null}catch(L){return console.error("Error processing image:",L),null}}))).filter(C=>C!==null);n(m)},[n]);I.useEffect(()=>{l.length>0&&f(l)},[l,f]);const g=x=>{r(x),c.current=x},v=e>=0,y=(x,w)=>{x==="right"&&u(E),i(E.id),g(w+1)},b=x=>{var w;c.current>=x&&((w=d.current)==null||w.restoreCard())},S=async x=>{var w;v&&ey(x,e),onCardLeftScreen:()=>b(e),preventSwipe:["up","down"],children:te.jsx("img",{alt:E.name,src:E.image})},E.id),te.jsxs("div",{className:"flex justify-between",children:[te.jsx(k6,{onClick:()=>S("left"),materialIcon:te.jsx(R_,{className:"w-6 h-6"})}),te.jsx(k6,{onClick:()=>S("right"),materialIcon:te.jsx(F_,{className:"w-6 h-6"})})]})]})})}),te.jsxs("div",{className:"mb-8 p-4 bg-white rounded h-1/3 opacity-90 max-w-lg w-2/3 text-center mx-auto shadow-md shadow-[#BC13FE]/90",children:[te.jsx("h2",{className:"text-2xl font-bold mb-4 text-black",children:E?.name}),te.jsxs("p",{className:"text-gray-600",children:[t("selectionYear")," ",E?.year!==""?E?.year:t("selectionUnknown")]}),te.jsxs("p",{className:"text-gray-600",children:[t("selectionCreator")," ",E?.creator!==""?E?.creator:t("selectionUnknown")]}),te.jsxs("p",{className:"text-gray-600",children:[t("selectionLocation")," ",E?.location!==""?E?.location:t("selectionUnknown")]})]})]})}const iz="/collage.webp",oz="/logo_animated.svg",sz=()=>te.jsx("img",{src:oz,alt:"Logo GLAMorous Europe",className:"w-96 m-auto"}),lz=()=>te.jsx("img",{src:iz,alt:"Collage GLAMorous Europe",className:"w-96 m-auto",decoding:"async"});function uz(){const{t}=Fu(),{imageLikeList:e,resetState:r}=ii(),[n,a]=I.useState(!1),i=()=>{e.length>0?a(!0):window.location.href="/selection"},l=()=>{a(!1)},u=()=>{a(!1),r()};return te.jsxs(Xa,{className:"flex flex-col flex-wrap gap-4 container justify-center content-center text-center mx-auto",children:[te.jsx(sz,{}),te.jsx("h1",{className:"text-3xl",children:t("startTitle")}),te.jsx("h2",{className:"text-xl",children:t("startSubtitle")}),te.jsx(lz,{}),te.jsx("p",{className:"text-xl",children:t("startText")}),te.jsx(Vr,{large:!0,className:"text-4xl w-1/2 mx-auto h-16",rounded:!0,inline:!0,onClick:i,children:t("startButtonText")}),n&&te.jsx(w3,{opened:n,onBackdropClick:()=>a(!1),children:te.jsxs(A1,{children:[te.jsx(b3,{title:t("discardModalTitle"),right:te.jsx(Th,{to:"/",onClick:l,children:t("discardModalCancel")})}),te.jsxs(Xa,{className:"space-y-4",children:[te.jsx("p",{children:t("discardModalMessage")}),te.jsx(Vr,{className:"p-4 rounded-full text-xl bg-red-500 text-white",children:te.jsx(Th,{to:"/selection",onClick:u,children:t("discardModalConfirm")})}),te.jsx(Vr,{className:"p-4 rounded-full text-xl bg-red-500 text-white",onClick:l,children:t("discardModalNotConfirm")})]})]})})]})}function cz(){return te.jsx(t_,{children:te.jsxs(Qs,{path:"/",element:te.jsx(GL,{}),children:[te.jsx(Qs,{index:!0,element:te.jsx(uz,{})}),te.jsx(Qs,{path:"selection",element:te.jsx(az,{})}),te.jsx(Qs,{path:"collection",element:te.jsx(VL,{})}),te.jsx(Qs,{path:"creation",element:te.jsx(OL,{})})]})})}const dz={artwork:"Meine Leinwand",artworkEmpty:"F\xFCge deine pers\xF6nlichen Favoriten hinzu",artworkTitle:"Gestalte mit einzelnen Bildelementen dein ganz eigenes europ\xE4isches Kunstwerk und teile es mit anderen.",chooseLanguage:"Sprache w\xE4hlen:",collection:"Meine Sammlung",collectionAddText:"Ausschnitt meiner Leinwand hinzuf\xFCgen",collectionClose:"Schlie\xDFen",collectionLoading:"Lade...",collectionTitle:"Hier ist deine Auswahl der Favoriten. W\xE4hle einen Auschnitt aus den Bildern f\xFCr deine Leinwand.",discardModalCancel:"Abbrechen",discardModalConfirm:"Ja",discardModalMessage:"M\xF6chtest du die bestehende Auswahl verwerfen?",discardModalNotConfirm:"Nein",discardModalTitle:"Meine Auswahl bereits vorhanden",selection:"Meine Auswahl",selectionCreator:"Urheber:in:",selectionLocation:"Ort:",selectionTitle:"W\xE4hle deine pers\xF6nlichen Favoriten aus.",selectionUnknown:"Unbekannt",selectionYear:"Jahr:",start:"Start",startButtonText:"Los geht's!",startSubtitle:"Entdecke hier die sch\xF6nsten Sammlungsobjekte aus Museen, Galerien, Bibliotheken und Archiven verschiedener L\xE4nder Europas.",startText:"Lass dich von der k\xFCnstlerischen Vielfalt Europas inspirieren!",startTitle:"Herzlich willkommen in der schillernden Welt von GLAMorous Europe!"},hz={translation:dz},fz={artwork:"My Artwork",artworkEmpty:"Add your personal favourites.",artworkTitle:"Use individual picture elements to create your very own European work of art and share it with others.",chooseLanguage:"Choose Language:",collection:"My Collection",collectionAddText:"Add to my artwork",collectionClose:"Close",collectionLoading:"Loading...",collectionTitle:"Open the door to new paintings, sculptures and photographs that perfectly match your taste.",discardModalCancel:"Close",discardModalConfirm:"Yes",discardModalMessage:"Do you want to discard the existing selection?",discardModalNotConfirm:"No",discardModalTitle:"Current selection",selection:"My Selection",selectionCreator:"Creator:",selectionLocation:"Location:",selectionTitle:"Choose your personal favourites.",selectionUnknown:"Unknown",selectionYear:"Year:",start:"start",startButtonText:"Let's go!",startSubtitle:"Discover the most beautiful collection objects from museums, galleries, libraries and archives from various European countries.",startText:"Be inspired by the artistic diversity of Europe!",startTitle:"Welcome to the glittering world of GLAMorous Europe!"},pz={translation:fz};Pr.init({interpolation:{escapeValue:!1},lng:"auto",fallbackLng:"de",resources:{de:{...hz},en:{...pz}}}),z5(document.getElementById("root")).render(te.jsx(z.StrictMode,{children:te.jsx(uC,{i18n:Pr,children:te.jsx(u_,{children:te.jsx(cz,{})})})}));export{g2 as $,Eh as a,yi as b,vi as c,K9 as d,z as e,tS as g,I as r};function kp(t){return kp.viteFileDeps||(kp.viteFileDeps=[]),t.map(e=>kp.viteFileDeps[e])} diff --git a/index-_QMEegZy.css b/index-_QMEegZy.css deleted file mode 100644 index fed6218..0000000 --- a/index-_QMEegZy.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--k-device-pixel-ratio:1;--k-hairline-color:#0003;--k-rtl-reverse:1;--k-color-ios-primary:188 19 254;--k-color-ios-primary-tint:200 60 254;--k-color-ios-primary-shade:167 1 231;--k-color-md-light-primary:152 0 208;--k-color-md-light-on-primary:255 255 255;--k-color-md-light-primary-container:248 216 255;--k-color-md-light-on-primary-container:50 0 71;--k-color-md-light-secondary:105 89 109;--k-color-md-light-on-secondary:255 255 255;--k-color-md-light-secondary-container:241 220 244;--k-color-md-light-on-secondary-container:35 23 40;--k-color-md-light-surface:255 251 255;--k-color-md-light-on-surface:30 27 30;--k-color-md-light-surface-variant:235 223 233;--k-color-md-light-on-surface-variant:76 68 77;--k-color-md-light-outline:125 116 125;--k-color-md-light-outline-variant:206 195 205;--k-color-md-light-surface-1:250 238 253;--k-color-md-light-surface-2:247 231 251;--k-color-md-light-surface-3:244 223 250;--k-color-md-light-surface-4:243 221 249;--k-color-md-light-surface-5:241 216 248;--k-color-md-dark-primary:235 178 255;--k-color-md-dark-on-primary:82 0 114;--k-color-md-dark-primary-container:116 0 159;--k-color-md-dark-on-primary-container:248 216 255;--k-color-md-dark-secondary:212 192 215;--k-color-md-dark-on-secondary:57 44 61;--k-color-md-dark-secondary-container:80 66 85;--k-color-md-dark-on-secondary-container:241 220 244;--k-color-md-dark-surface:30 27 30;--k-color-md-dark-on-surface:232 224 229;--k-color-md-dark-surface-variant:76 68 77;--k-color-md-dark-on-surface-variant:206 195 205;--k-color-md-dark-outline:151 142 151;--k-color-md-dark-outline-variant:76 68 77;--k-color-md-dark-surface-1:40 35 41;--k-color-md-dark-surface-2:46 39 48;--k-color-md-dark-surface-3:53 44 55;--k-color-md-dark-surface-4:55 45 57;--k-color-md-dark-surface-5:59 48 62;--k-color-primary:188 19 254;--k-color-brand-secondary:105 192 176;--k-color-brand-tertiary:237 236 234;--k-color-brand-background:43 40 41;--k-color-brand-text:255 255 255}[dir=rtl]{--k-rtl-reverse:-1}.dark{--k-hairline-color:#ffffff26;color:#fff;background-color:#000}@media (-webkit-min-device-pixel-ratio:1.25),(min-resolution:1.25dppx){:root{--k-device-pixel-ratio:1.25}}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){:root{--k-device-pixel-ratio:1.5}}@media (-webkit-min-device-pixel-ratio:1.75),(min-resolution:1.75dppx){:root{--k-device-pixel-ratio:1.75}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){:root{--k-device-pixel-ratio:2}}@media (-webkit-min-device-pixel-ratio:2.25),(min-resolution:2.25dppx){:root{--k-device-pixel-ratio:2.25}}@media (-webkit-min-device-pixel-ratio:2.5),(min-resolution:2.5dppx){:root{--k-device-pixel-ratio:2.5}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:3dppx){:root{--k-device-pixel-ratio:3}}*{-webkit-tap-highlight-color:#0000;-webkit-text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.k-ios,.ios{font-family:-apple-system,SF Pro Text,SF UI Text,system-ui,Helvetica Neue,Helvetica,Arial,sans-serif}.k-material,.md{font-family:Roboto,system-ui,Noto,Helvetica,Arial,sans-serif}:root{--k-touch-ripple-opacity:.15;--k-touch-ripple-black:rgba(0,0,0,var(--k-touch-ripple-opacity));--k-touch-ripple-white:rgba(255,255,255,var(--k-touch-ripple-opacity));--k-touch-ripple-color:var(--k-touch-ripple-black)}.k-touch-ripple-wave{pointer-events:none;z-index:-1;background-color:var(--k-touch-ripple-color);border-radius:50%;margin:0;padding:0;font-size:0;animation:.2s forwards k-touch-ripple-in;top:0;left:0;transform:matrix(0,0,0,0,0,0);display:block!important;position:absolute!important}.k-touch-ripple-wave.k-touch-ripple-wave-out{transform:var(--k-ripple-transform);animation:.3s forwards k-touch-ripple-out}@keyframes k-touch-ripple-in{0%{transform:matrix(0,0,0,0,0,0)}to{transform:var(--k-ripple-transform)}}@keyframes k-touch-ripple-out{0%{opacity:1}to{opacity:0}}:root{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}@supports (left:env(safe-area-inset-left)){.safe-areas{--k-safe-area-left:env(safe-area-inset-left);--k-safe-area-right:env(safe-area-inset-right);--k-safe-area-top:env(safe-area-inset-top);--k-safe-area-bottom:env(safe-area-inset-bottom)}}*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.k-ios-preloader>span{animation:1s steps(8,end) infinite k-ios-preloader-spin}.k-material-preloader>span{animation:1.4s linear infinite k-material-preloader-rotate}.k-material-preloader circle{stroke-dasharray:100;stroke-dashoffset:80px;stroke-width:4px;transform-origin:18px 18px;animation:5.6s ease-in-out infinite k-material-preloader-circle-rotate;transform:rotate(-90deg)}@keyframes k-ios-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes k-material-preloader-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes k-material-preloader-circle-rotate{0%{stroke-dashoffset:100px;transform:rotate(-90deg)}12.5%{stroke-dashoffset:25px;transform:rotate(-90deg)}25%{stroke-dashoffset:100px;transform:rotate(180deg)}25.1%{stroke-dashoffset:100px;transform:rotate(-180deg)}37.5%{stroke-dashoffset:25px;transform:rotate(-180deg)}50%{stroke-dashoffset:100px;transform:rotate(90deg)}50.1%{stroke-dashoffset:100px;transform:rotate(90deg)}62.5%{stroke-dashoffset:25px;transform:rotate(90deg)}75%{stroke-dashoffset:100px;transform:rotate(360deg)}75.1%{stroke-dashoffset:100px;transform:rotate(0)}87.5%{stroke-dashoffset:25px;transform:rotate(0)}to{stroke-dashoffset:100px;transform:rotate(270deg)}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-1\/2{inset:50%}.inset-y-0{top:0;bottom:0}.-end-1{inset-inline-end:-.25rem}.-end-1\.5{inset-inline-end:-.375rem}.-left-4{left:-1rem}.-left-4\.75{left:-1.1875rem}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-2{top:-.5rem}.-top-4{top:-1rem}.-top-4\.75{top:-1.1875rem}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.bottom-full{bottom:100%}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-4\.75{left:1.1875rem}.left-full{left:100%}.right-full{right:100%}.start-0{inset-inline-start:0}.start-0\.5{inset-inline-start:.125rem}.start-2{inset-inline-start:.5rem}.start-4{inset-inline-start:1rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-4\.75{top:1.1875rem}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-0{margin:0}.-m-0\.5{margin:-.125rem}.-m-1{margin:-.25rem}.m-0{margin:0}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.\!ms-0{margin-inline-start:0!important}.-mb-2{margin-bottom:-.5rem}.-mb-2\.5{margin-bottom:-.625rem}.-mb-6{margin-bottom:-1.5rem}.-me-2{margin-inline-end:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-ms-2{margin-inline-start:-.5rem}.-ms-3{margin-inline-start:-.75rem}.-mt-2{margin-top:-.5rem}.-mt-2\.5{margin-top:-.625rem}.-mt-4{margin-top:-1rem}.-mt-6{margin-top:-1.5rem}.-mt-px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.me-1{margin-inline-end:.25rem}.me-1\.5{margin-inline-end:.375rem}.me-2{margin-inline-end:.5rem}.me-3{margin-inline-end:.75rem}.me-4{margin-inline-end:1rem}.ml-10{margin-left:2.5rem}.ml-4{margin-left:1rem}.mr-4{margin-right:1rem}.ms-1{margin-inline-start:.25rem}.ms-2{margin-inline-start:.5rem}.ms-3{margin-inline-start:.75rem}.ms-4{margin-inline-start:1rem}.ms-auto{margin-inline-start:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.\!h-auto{height:auto!important}.h-0{height:0}.h-0\.25{height:.0625rem}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\/3{height:33.3333%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-12\.5{height:3.125rem}.h-13{height:3.25rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-1em{height:1em}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-2\/3{height:66.6667%}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-4\.5{height:1.125rem}.h-5{height:1.25rem}.h-5\.5{height:1.375rem}.h-6{height:1.5rem}.h-6\.5{height:1.625rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[1em\]{height:1em}.h-\[5\.5rem\]{height:5.5rem}.h-\[calc\(100\%_-_128px\)\]{height:calc(100% - 128px)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-12{max-height:3rem}.max-h-full{max-height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.min-h-\[3\.5rem\]{min-height:3.5rem}.min-h-\[56px\]{min-height:56px}.min-h-screen{min-height:100vh}.w-0{width:0}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-13{width:3.25rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-1em{width:1em}.w-2\/3{width:66.6667%}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-4\.5{width:1.125rem}.w-5{width:1.25rem}.w-5\.5{width:1.375rem}.w-6{width:1.5rem}.w-6\.5{width:1.625rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-96{width:24rem}.w-\[16\.875rem\]{width:16.875rem}.w-\[19\.5rem\]{width:19.5rem}.w-\[calc\(100\%\+32px\)\]{width:calc(100% + 32px)}.w-full{width:100%}.w-screen{width:100vw}.min-w-12{min-width:3rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.max-w-\[66\%\]{max-width:66%}.max-w-\[70\%\]{max-width:70%}.max-w-\[90\%\]{max-width:90%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:0 100%}.origin-bottom-right{transform-origin:100% 100%}.origin-left{transform-origin:0}.origin-right{transform-origin:100%}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:-.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-3{--tw-translate-y:.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-6{--tw-translate-y:1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-8{--tw-translate-y:2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-133{--tw-scale-x:1.33333;--tw-scale-y:1.33333;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-\[0\.666\]{--tw-scale-x:.666;--tw-scale-y:.666;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-\[0\.85\]{--tw-scale-x:.85;--tw-scale-y:.85;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-x-90{--tw-scale-x:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-x-\[0\.5\]{--tw-scale-x:.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-y-75{--tw-scale-y:.75;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.scale-y-\[2\]{--tw-scale-y:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0)rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-pointer{cursor:pointer}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x)var(--tw-pan-y)var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;appearance:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0px*var(--tw-space-x-reverse));margin-left:calc(0px*calc(1 - var(--tw-space-x-reverse)))}.space-x-0\.75>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.1875rem*var(--tw-space-x-reverse));margin-left:calc(.1875rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem*var(--tw-space-x-reverse));margin-left:calc(.75rem*calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(2px*var(--tw-divide-x-reverse));border-left-width:calc(2px*calc(1 - var(--tw-divide-x-reverse)))}.divide-black>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(0 0 0/var(--tw-divide-opacity))}.divide-md-light-outline>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-md-light-outline)/var(--tw-divide-opacity))}.divide-primary>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-primary)/var(--tw-divide-opacity))}.divide-opacity-10>:not([hidden])~:not([hidden]){--tw-divide-opacity:.1}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\!rounded{border-radius:.25rem!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[1\.75rem\]{border-radius:1.75rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-e-full{border-start-end-radius:9999px;border-end-end-radius:9999px}.rounded-e-lg{border-start-end-radius:.5rem;border-end-end-radius:.5rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-r-2xl{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-s-full{border-start-start-radius:9999px;border-end-start-radius:9999px}.rounded-s-lg{border-start-start-radius:.5rem;border-end-start-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\[\#c8c8cd\]{--tw-border-opacity:1;border-color:rgb(200 200 205/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-md-dark-outline{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-border-opacity))}.border-md-light-on-surface{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-on-surface)/var(--tw-border-opacity))}.border-md-light-outline{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-outline)/var(--tw-border-opacity))}.border-md-light-primary{--tw-border-opacity:1;border-color:rgb(var(--k-color-md-light-primary)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--k-color-primary)/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-opacity-10{--tw-border-opacity:.1}.border-opacity-20{--tw-border-opacity:.2}.border-opacity-30{--tw-border-opacity:.3}.bg-\[\#e5e5ea\]{--tw-bg-opacity:1;background-color:rgb(229 229 234/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/10{background-color:#0000001a}.bg-current{background-color:currentColor}.bg-ios-light-surface{--tw-bg-opacity:1;background-color:rgb(239 239 244/var(--tw-bg-opacity))}.bg-ios-light-surface-1{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-ios-light-surface-2{--tw-bg-opacity:1;background-color:rgb(247 247 248/var(--tw-bg-opacity))}.bg-ios-light-surface-3{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-ios-light-surface-variant{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-md-light-on-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-on-primary)/var(--tw-bg-opacity))}.bg-md-light-outline{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-outline)/var(--tw-bg-opacity))}.bg-md-light-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary)/var(--tw-bg-opacity))}.bg-md-light-primary-container{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary-container)/var(--tw-bg-opacity))}.bg-md-light-secondary-container{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-secondary-container)/var(--tw-bg-opacity))}.bg-md-light-surface{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface)/var(--tw-bg-opacity))}.bg-md-light-surface-1{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-1)/var(--tw-bg-opacity))}.bg-md-light-surface-2{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-2)/var(--tw-bg-opacity))}.bg-md-light-surface-3{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-3)/var(--tw-bg-opacity))}.bg-md-light-surface-5{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-5)/var(--tw-bg-opacity))}.bg-md-light-surface-variant{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-surface-variant)/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:#0000}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-10{--tw-bg-opacity:.1}.bg-opacity-15{--tw-bg-opacity:.15}.bg-opacity-20{--tw-bg-opacity:.2}.bg-opacity-30{--tw-bg-opacity:.3}.bg-opacity-5{--tw-bg-opacity:.05}.bg-opacity-50{--tw-bg-opacity:.5}.bg-cover{background-size:cover}.fill-black{fill:#000}.fill-primary{fill:rgb(var(--k-color-primary)/1)}.fill-stone-400{fill:#a8a29e}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.pl-7{padding-left:1.75rem}.pr-7{padding-right:1.75rem}.ps-1{padding-inline-start:.25rem}.ps-12{padding-inline-start:3rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-2xs{font-size:.625rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.875rem\]{font-size:.875rem}.text-\[1\.125rem\]{font-size:1.125rem}.text-\[1\.375rem\]{font-size:1.375rem}.text-\[1\.5rem\]{font-size:1.5rem}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[1rem\]{font-size:1rem}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[28px\]{font-size:28px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-icon-ios{font-size:28px}.text-icon-material{font-size:24px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-black\/45{color:#00000073}.text-current{color:currentColor}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-md-light-on-primary{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-primary)/var(--tw-text-opacity))}.text-md-light-on-primary-container{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-primary-container)/var(--tw-text-opacity))}.text-md-light-on-secondary-container{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-secondary-container)/var(--tw-text-opacity))}.text-md-light-on-surface{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-surface)/var(--tw-text-opacity))}.text-md-light-on-surface-variant{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-text-opacity))}.text-md-light-primary{--tw-text-opacity:1;color:rgb(var(--k-color-md-light-primary)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--k-color-primary)/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-opacity-30{--tw-text-opacity:.3}.text-opacity-40{--tw-text-opacity:.4}.text-opacity-45{--tw-text-opacity:.45}.text-opacity-55{--tw-text-opacity:.55}.text-opacity-75{--tw-text-opacity:.75}.text-opacity-90{--tw-text-opacity:.9}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(0 0 0/var(--tw-placeholder-opacity))}.placeholder-md-light-on-surface-variant::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-placeholder-opacity))}.placeholder-transparent::placeholder{color:#0000}.placeholder-opacity-30::placeholder{--tw-placeholder-opacity:.3}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-35{opacity:.35}.opacity-45{opacity:.45}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-ios-toggle{--tw-shadow:0 2px 4px #0000004d;--tw-shadow-colored:0 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[\#BC13FE\]\/90{--tw-shadow-color:#bc13fee6;--tw-shadow:var(--tw-shadow-colored)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.outline-offset-0{outline-offset:0px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.filter{filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform-opacity{transition-property:transform,opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.duration-500{transition-duration:.5s}.duration-\[600ms\]{transition-duration:.6s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-material-in{transition-timing-function:cubic-bezier(0,.8,.34,1)}.ease-material-in-popup{transition-timing-function:cubic-bezier(0,1,.2,1)}.hairline-t:before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:top;transform:scaleY(calc(1/var(--k-device-pixel-ratio,1)));width:100%;height:1px;position:absolute;top:0;left:0}.hairline-t-none:before,.hairline-t-none :not(.hairline-l):before{display:none}.hairline-t-scale:before{transform:scaleY(2)}.hairline-l:before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:0;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;left:0}.hairline-l-none:before,.hairline-l-none :not(.hairline-l):before{display:none}.hairline-l-scale:before{transform:scaleX(2)}.hairline-b:after{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:bottom;transform:scaleY(calc(1/var(--k-device-pixel-ratio,1)));width:100%;height:1px;position:absolute;bottom:0;left:0}.hairline-b-scale:after{transform:scaleY(2)}.hairline-b-none:after,.hairline-b-none :not(.hairline-b):after,.hairline-b-none>*>:after,.last-child-hairline-b-none>:last-child:after,.last-child-hairline-b-none>:last-child :not(.hairline-b):after,.last-child-hairline-b-none>:last-child>*>:after,.last-child-hairline-b-none>:last-child>:after,.last-child-hairline-r-none>:last-child:after,.last-child-hairline-r-none>:last-child :not(.hairline-b):after,.last-child-hairline-r-none>:last-child>*>:after,.last-child-hairline-r-none>:last-child>:after,.first-child-hairline-r-none>:first-child:after,.first-child-hairline-r-none>:first-child :not(.hairline-b):after,.first-child-hairline-r-none>:first-child>*>:after,.first-child-hairline-r-none>:first-child>:after{display:none}.hairline-r:after{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:100%;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;right:0}.hairline-r-none:after,.hairline-r-none :not(.hairline-r):after{display:none}.hairline-r-scale:after{transform:scaleX(2)}.touch-ripple-current{--k-touch-ripple-color:currentColor}.touch-ripple-black{--k-touch-ripple-color:var(--k-touch-ripple-black)}.touch-ripple-white{--k-touch-ripple-color:var(--k-touch-ripple-white)}.touch-ripple-primary{--k-touch-ripple-color:rgb(var(--k-color-primary)/var(--k-touch-ripple-opacity))}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.no-safe-areas{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}.no-safe-areas-top{--k-safe-area-top:0px}.no-safe-areas-left{--k-safe-area-left:0px}.no-safe-areas-right{--k-safe-area-right:0px}.no-safe-areas-bottom{--k-safe-area-bottom:0px}.pt-safe{padding-top:var(--k-safe-area-top)}.top-2-safe{top:calc(var(--k-safe-area-top) + .5rem)}.top-11-safe{top:calc(var(--k-safe-area-top) + 2.75rem)}.top-16-safe{top:calc(var(--k-safe-area-top) + 4rem)}.pr-safe{padding-right:var(--k-safe-area-right)}.pr-2-safe{padding-right:calc(var(--k-safe-area-right) + .5rem)}.mr-2-safe{margin-right:calc(var(--k-safe-area-right) + .5rem)}.pr-4-safe{padding-right:calc(var(--k-safe-area-right) + 1rem)}.mr-4-safe{margin-right:calc(var(--k-safe-area-right) + 1rem)}.pr-6-safe{padding-right:calc(var(--k-safe-area-right) + 1.5rem)}.pr-8-safe{padding-right:calc(var(--k-safe-area-right) + 2rem)}.pb-safe{padding-bottom:var(--k-safe-area-bottom)}.pb-2-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .5rem)}.bottom-2-safe{bottom:calc(var(--k-safe-area-bottom) + .5rem)}.pb-3-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .75rem)}.pb-3\.5-safe{padding-bottom:calc(var(--k-safe-area-bottom) + .875rem)}.pl-safe{padding-left:var(--k-safe-area-left)}.pl-2-safe{padding-left:calc(var(--k-safe-area-left) + .5rem)}.ml-2-safe{margin-left:calc(var(--k-safe-area-left) + .5rem)}.pl-4-safe{padding-left:calc(var(--k-safe-area-left) + 1rem)}.ml-4-safe{margin-left:calc(var(--k-safe-area-left) + 1rem)}.pl-6-safe{padding-left:calc(var(--k-safe-area-left) + 1.5rem)}.pl-8-safe{padding-left:calc(var(--k-safe-area-left) + 2rem)}.ps-4-safe{padding-inline-start:calc(var(--k-safe-area-left) + 1rem)}.pe-4-safe{padding-inline-end:calc(var(--k-safe-area-right) + 1rem)}@supports ((-webkit-backdrop-filter:blur(20px))) or ((-webkit-backdrop-filter:blur(20px)) or (backdrop-filter:blur(20px))){.translucent{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);--tw-bg-opacity:.8!important}}.touch-pan-y{touch-action:pan-y}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{opacity:0;display:none}@font-face{font-family:Neucha;src:url(./fonts/Neucha.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:AverageSans-Regular;src:url(./fonts/AverageSans-Regular.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}body,.k-material{font-family:AverageSans-Regular,sans-serif}a>span>.text-xs,button{text-transform:uppercase;font-family:Neucha,sans-serif;font-size:1.1rem;line-height:1.5}.tabbar-inner{height:8rem}.before\:me-1:before{content:var(--tw-content);margin-inline-end:.25rem}.before\:inline-block:before{content:var(--tw-content);display:inline-block}.before\:h-0:before{content:var(--tw-content);height:0}.before\:h-0\.75:before{content:var(--tw-content);height:.1875rem}.before\:w-0:before{content:var(--tw-content);width:0}.before\:w-0\.75:before{content:var(--tw-content);width:.1875rem}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-md-light-on-surface-variant:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-on-surface-variant)/var(--tw-bg-opacity))}.before\:align-middle:before{content:var(--tw-content);vertical-align:middle}.first\:mx-2:first-child{margin-left:.5rem;margin-right:.5rem}.first\:mx-4:first-child{margin-left:1rem;margin-right:1rem}.first\:mt-0:first-child{margin-top:0}.first\:mt-2:first-child{margin-top:.5rem}.first\:rounded-s:first-child{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.first\:rounded-t-xl:first-child{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.first\:rounded-bl-xl:first-child{border-bottom-left-radius:.75rem}.first\:border-r:first-child{border-right-width:1px}.first\:border-r-0:first-child{border-right-width:0}.first\:px-6:first-child{padding-left:1.5rem;padding-right:1.5rem}.last\:rounded-b-xl:last-child{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.last\:rounded-e:last-child{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.last\:rounded-br-xl:last-child{border-bottom-right-radius:.75rem}.last\:border-l:last-child{border-left-width:1px}.last\:hairline-transparent:last-child{--k-hairline-color:transparent}.hover\:bg-black\/5:hover{background-color:#0000000d}.hover\:bg-md-light-secondary-container:hover{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-secondary-container)/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.active\:bg-black:active{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.active\:bg-ios-primary-shade:active{--tw-bg-opacity:1;background-color:rgb(var(--k-color-ios-primary-shade)/var(--tw-bg-opacity))}.active\:bg-neutral-200:active{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity))}.active\:bg-primary:active{--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}.active\:bg-opacity-10:active{--tw-bg-opacity:.1}.active\:bg-opacity-15:active{--tw-bg-opacity:.15}.active\:bg-opacity-25:active{--tw-bg-opacity:.25}.active\:fill-stone-200:active{fill:#e7e5e4}.active\:opacity-100:active{opacity:1}.active\:opacity-20:active{opacity:.2}.active\:opacity-30:active{opacity:.3}.active\:opacity-55:active{opacity:.55}.active\:shadow-lg:active{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.active\:duration-0:active{transition-duration:0s}.active\:hairline-transparent:active{--k-hairline-color:transparent}.group:active .group-active\:scale-\[1\.1\]{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-thumb\:relative::-webkit-slider-thumb{position:relative}.range-thumb\:-mt-1::-webkit-slider-thumb{margin-top:-.25rem}.range-thumb\:-mt-1\.5::-webkit-slider-thumb{margin-top:-.375rem}.range-thumb\:-mt-3::-webkit-slider-thumb{margin-top:-.75rem}.range-thumb\:-mt-3\.5::-webkit-slider-thumb{margin-top:-.875rem}.range-thumb\:h-3::-webkit-slider-thumb{height:.75rem}.range-thumb\:h-7::-webkit-slider-thumb{height:1.75rem}.range-thumb\:w-3::-webkit-slider-thumb{width:.75rem}.range-thumb\:w-7::-webkit-slider-thumb{width:1.75rem}.range-thumb\:transform::-webkit-slider-thumb{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-thumb\:appearance-none::-webkit-slider-thumb{-webkit-appearance:none;appearance:none}.range-thumb\:rounded-full::-webkit-slider-thumb{border-radius:9999px}.range-thumb\:border-none::-webkit-slider-thumb{border-style:none}.range-thumb\:bg-md-light-primary::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-light-primary)/var(--tw-bg-opacity))}.range-thumb\:bg-white::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.range-thumb\:shadow-ios-toggle::-webkit-slider-thumb{--tw-shadow:0 2px 4px #0000004d;--tw-shadow-colored:0 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.range-thumb\:duration-200::-webkit-slider-thumb{transition-duration:.2s}.active\:range-thumb\:scale-150::-webkit-slider-thumb:active{--tw-scale-x:1.5;--tw-scale-y:1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.range-track\:h-px::-webkit-slider-runnable-track{height:1px}.range-track\:appearance-none::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none}:is(.dark .dark\:divide-md-dark-outline)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-divide-opacity))}:is(.dark .dark\:border-md-dark-on-surface){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-on-surface)/var(--tw-border-opacity))}:is(.dark .dark\:border-md-dark-outline){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-outline)/var(--tw-border-opacity))}:is(.dark .dark\:border-md-dark-primary){--tw-border-opacity:1;border-color:rgb(var(--k-color-md-dark-primary)/var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:border-opacity-10){--tw-border-opacity:.1}:is(.dark .dark\:border-opacity-15){--tw-border-opacity:.15}:is(.dark .dark\:border-opacity-20){--tw-border-opacity:.2}:is(.dark .dark\:border-opacity-30){--tw-border-opacity:.3}:is(.dark .dark\:bg-\[\#1e1e1e\]){--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#252525\]){--tw-bg-opacity:1;background-color:rgb(37 37 37/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#323234\]){--tw-bg-opacity:1;background-color:rgb(50 50 52/var(--tw-bg-opacity))}:is(.dark .dark\:bg-black),:is(.dark .dark\:bg-ios-dark-surface){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-1){--tw-bg-opacity:1;background-color:rgb(28 28 29/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-2){--tw-bg-opacity:1;background-color:rgb(18 18 18/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-3){--tw-bg-opacity:1;background-color:rgb(28 28 29/var(--tw-bg-opacity))}:is(.dark .dark\:bg-ios-dark-surface-variant){--tw-bg-opacity:1;background-color:rgb(35 35 35/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-on-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-on-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-outline){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-outline)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-primary-container){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-secondary-container){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-secondary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-1){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-1)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-2){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-2)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-3){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-3)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-5){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-5)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-md-dark-surface-variant){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-surface-variant)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-neutral-800){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity))}:is(.dark .dark\:bg-primary){--tw-bg-opacity:1;background-color:rgb(var(--k-color-primary)/var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:#0000}:is(.dark .dark\:bg-white){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}:is(.dark .dark\:bg-white\/10){background-color:#ffffff1a}:is(.dark .dark\:bg-opacity-0){--tw-bg-opacity:0}:is(.dark .dark\:bg-opacity-10){--tw-bg-opacity:.1}:is(.dark .dark\:bg-opacity-15){--tw-bg-opacity:.15}:is(.dark .dark\:bg-opacity-20){--tw-bg-opacity:.2}:is(.dark .dark\:bg-opacity-30){--tw-bg-opacity:.3}:is(.dark .dark\:fill-md-dark-primary){fill:rgb(var(--k-color-md-dark-primary)/1)}:is(.dark .dark\:fill-stone-500){fill:#78716c}:is(.dark .dark\:text-black){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-primary){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-primary)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-primary-container){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-primary-container)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-secondary-container){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-secondary-container)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-surface){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-surface)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-on-surface-variant){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-text-opacity))}:is(.dark .dark\:text-md-dark-primary){--tw-text-opacity:1;color:rgb(var(--k-color-md-dark-primary)/var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\:text-white\/55){color:#ffffff8c}:is(.dark .dark\:text-opacity-30){--tw-text-opacity:.3}:is(.dark .dark\:text-opacity-45){--tw-text-opacity:.45}:is(.dark .dark\:text-opacity-55){--tw-text-opacity:.55}:is(.dark .dark\:text-opacity-75){--tw-text-opacity:.75}:is(.dark .dark\:text-opacity-90){--tw-text-opacity:.9}:is(.dark .dark\:placeholder-md-dark-on-surface-variant)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-md-dark-on-surface-variant)::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-white)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-white)::placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-opacity-30)::-moz-placeholder{--tw-placeholder-opacity:.3}:is(.dark .dark\:placeholder-opacity-30)::placeholder{--tw-placeholder-opacity:.3}:is(.dark .dark\:placeholder-opacity-40)::-moz-placeholder{--tw-placeholder-opacity:.4}:is(.dark .dark\:placeholder-opacity-40)::placeholder{--tw-placeholder-opacity:.4}:is(.dark .dark\:touch-ripple-white){--k-touch-ripple-color:var(--k-touch-ripple-white)}:is(.dark .dark\:touch-ripple-primary){--k-touch-ripple-color:rgb(var(--k-color-primary)/var(--k-touch-ripple-opacity))}:is(.dark .before\:dark\:bg-md-dark-on-surface-variant):before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-on-surface-variant)/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-md-dark-secondary-container:hover){--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-secondary-container)/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-white\/10:hover){background-color:#ffffff1a}:is(.dark .dark\:active\:bg-neutral-700:active){--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity))}:is(.dark .dark\:active\:bg-white:active){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}:is(.dark .dark\:active\:bg-opacity-10:active){--tw-bg-opacity:.1}:is(.dark .dark\:active\:bg-opacity-5:active){--tw-bg-opacity:.05}:is(.dark .dark\:active\:fill-stone-700:active){fill:#44403c}:is(.dark .dark\:range-thumb\:bg-md-dark-primary)::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(var(--k-color-md-dark-primary)/var(--tw-bg-opacity))}@media (min-width:640px){.sm\:left-1\/2{left:50%}.sm\:start-auto{inset-inline-start:auto}.sm\:w-auto{width:auto}.sm\:max-w-lg{max-width:32rem}.sm\:-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.sm\:rounded-2xl{border-radius:1rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\:py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.sm\:bottom-4-safe{bottom:calc(var(--k-safe-area-bottom) + 1rem)}.sm\:start-4-safe{inset-inline-start:calc(var(--k-safe-area-left) + 1rem)}.sm\:end-4-safe{inset-inline-end:calc(var(--k-safe-area-right) + 1rem)}}@media (min-width:768px){.md\:end-auto{inset-inline-end:auto}.md\:start-1\/2{inset-inline-start:50%}.md\:-ms-\[256px\]{margin-inline-start:-256px}.md\:h-160{height:40rem}.md\:w-160{width:40rem}.md\:w-\[568px\]{width:568px}.md\:rounded-\[1\.75rem\]{border-radius:1.75rem}.md\:rounded-lg{border-radius:.5rem}.md\:no-safe-areas{--k-safe-area-left:0px;--k-safe-area-right:0px;--k-safe-area-top:0px;--k-safe-area-bottom:0px}}.rtl\:origin-right:where([dir=rtl],[dir=rtl] *){transform-origin:100%}.rtl\:\!-translate-x-5:where([dir=rtl],[dir=rtl] *){--tw-translate-x:-1.25rem!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))!important}.rtl\:translate-x-1\/2:where([dir=rtl],[dir=rtl] *){--tw-translate-x:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rtl\:rotate-180:where([dir=rtl],[dir=rtl] *){--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skew(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.rtl\:\!space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1!important}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.rtl\:divide-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:1}.rtl\:hairline-l:where([dir=rtl],[dir=rtl] *):before{background-color:var(--k-hairline-color,#0003);transition-duration:var(--k-hairline-transition-duration);content:"";z-index:10;transform-origin:0;transform:scaleX(calc(1/var(--k-device-pixel-ratio,1)));width:1px;height:100%;position:absolute;top:0;left:0}.rtl\:first\:rounded-bl-none:first-child:where([dir=rtl],[dir=rtl] *){border-bottom-left-radius:0}.rtl\:first\:rounded-br-xl:first-child:where([dir=rtl],[dir=rtl] *){border-bottom-right-radius:.75rem}.rtl\:first\:border-l:first-child:where([dir=rtl],[dir=rtl] *){border-left-width:1px}.rtl\:first\:border-r:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:1px}.rtl\:first\:border-r-0:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:0}.rtl\:first\:border-r-2:first-child:where([dir=rtl],[dir=rtl] *){border-right-width:2px}.rtl\:last\:rounded-bl-xl:last-child:where([dir=rtl],[dir=rtl] *){border-bottom-left-radius:.75rem}.rtl\:last\:rounded-br-none:last-child:where([dir=rtl],[dir=rtl] *){border-bottom-right-radius:0}.rtl\:last\:border-l-0:last-child:where([dir=rtl],[dir=rtl] *){border-left-width:0}.rtl\:last\:border-r-0:last-child:where([dir=rtl],[dir=rtl] *){border-right-width:0}.\[\&\:nth-child\(2\)\]\:-mt-12:nth-child(2){margin-top:-3rem} \ No newline at end of file diff --git a/index.html b/index.html index 5bef41f..536e0a0 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,8 @@ - - + + diff --git a/sw.js b/sw.js index 7f42d59..b30a354 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let n,l={};const d=(e,s)=>(e=new URL(e+".js",s).href,l[e]||new Promise(i=>{if("document"in self){const r=document.createElement("script");r.src=e,r.onload=i,document.head.appendChild(r)}else n=e,importScripts(e),i()}).then(()=>{let i=l[e];if(!i)throw new Error(`Module ${e} didn\u2019t register its module`);return i}));self.define=(e,s)=>{const i=n||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let r={};const o=t=>d(t,i),u={module:{uri:i},exports:r,require:o};l[i]=Promise.all(e.map(t=>u[t]||o(t))).then(t=>(s(...t),r))}}define(["./workbox-3e911b1d"],function(n){"use strict";self.skipWaiting(),n.clientsClaim(),n.precacheAndRoute([{url:"index-_QMEegZy.css",revision:null},{url:"index-8QsdpE8Q.js",revision:null},{url:"index-kb1q0BGh.js",revision:null},{url:"index.html",revision:null},{url:"registerSW.js",revision:null},{url:"pwa-64x64.png",revision:"5b92749999a938c2f00c73135ef89c6b"},{url:"pwa-192x192.png",revision:"5d2322dbd5722c6f6809b5b5d46429f2"},{url:"pwa-512x512.png",revision:"921f5fadb70da56f69bb4539140fd572"},{url:"maskable-icon-512x512.png",revision:"084b31041f64392a2d2beb089908caa8"},{url:"manifest.webmanifest",revision:"4a167b547c64347d26602cc33d7243f2"}],{}),n.cleanupOutdatedCaches(),n.registerRoute(new n.NavigationRoute(n.createHandlerBoundToURL("index.html")))}); +if(!self.define){let n,l={};const d=(e,s)=>(e=new URL(e+".js",s).href,l[e]||new Promise(i=>{if("document"in self){const r=document.createElement("script");r.src=e,r.onload=i,document.head.appendChild(r)}else n=e,importScripts(e),i()}).then(()=>{let i=l[e];if(!i)throw new Error(`Module ${e} didn\u2019t register its module`);return i}));self.define=(e,s)=>{const i=n||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let r={};const o=t=>d(t,i),u={module:{uri:i},exports:r,require:o};l[i]=Promise.all(e.map(t=>u[t]||o(t))).then(t=>(s(...t),r))}}define(["./workbox-3e911b1d"],function(n){"use strict";self.skipWaiting(),n.clientsClaim(),n.precacheAndRoute([{url:"index-FV6IdYrE.css",revision:null},{url:"index-S9-2WBXx.js",revision:null},{url:"index-Vzwt8Hh-.js",revision:null},{url:"index.html",revision:null},{url:"registerSW.js",revision:null},{url:"pwa-64x64.png",revision:"5b92749999a938c2f00c73135ef89c6b"},{url:"pwa-192x192.png",revision:"5d2322dbd5722c6f6809b5b5d46429f2"},{url:"pwa-512x512.png",revision:"921f5fadb70da56f69bb4539140fd572"},{url:"maskable-icon-512x512.png",revision:"084b31041f64392a2d2beb089908caa8"},{url:"manifest.webmanifest",revision:"4a167b547c64347d26602cc33d7243f2"}],{}),n.cleanupOutdatedCaches(),n.registerRoute(new n.NavigationRoute(n.createHandlerBoundToURL("index.html")))});