PageSourceSearch

https://app.mential.io/static/js/7995.632bd602.chunk.js

js mential.io collected 2026-09-24 10:56:58 UTC 29,311 bytes, 3 lines download raw bytes

1/*! For license information please see 7995.632bd602.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkchibana_app=self.webpackChunkchibana_app||[]).push([[7995],{97769:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(87462),o=n(63366),s=n(50390),a=n(86599),i=n(16205),c=n(71302),l=n(70719),u=n(41964),h=n(62559);const f=["onChange","maxRows","minRows","style","value"];function d(e,t){return parseInt(e[t],10)||0}const p={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function m(e){return void 0===e||null===e||0===Object.keys(e).length}const g=s.forwardRef((function(e,t){const{onChange:n,maxRows:g,minRows:v=1,style:b,value:y}=e,w=(0,o.Z)(e,f),{current:C}=s.useRef(null!=y),E=s.useRef(null),x=(0,i.Z)(t,E),k=s.useRef(null),N=s.useRef(0),[_,A]=s.useState({}),S=s.useCallback((()=>{const t=E.current,n=(0,c.Z)(t).getComputedStyle(t);if("0px"===n.width)return{};const r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],s=d(n,"padding-bottom")+d(n,"padding-top"),a=d(n,"border-bottom-width")+d(n,"border-top-width"),i=r.scrollHeight;r.value="x";const l=r.scrollHeight;let u=i;v&&(u=Math.max(Number(v)*l,u)),g&&(u=Math.min(Number(g)*l,u)),u=Math.max(u,l);return{outerHeightStyle:u+("border-box"===o?s+a:0),overflow:Math.abs(u-i)<=1}}),[g,v,e.placeholder]),j=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return N.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(N.current+=1,{overflow:r,outerHeightStyle:n}):e},O=s.useCallback((()=>{const e=S();m(e)||A((t=>j(t,e)))}),[S]);s.useEffect((()=>{const e=(0,l.Z)((()=>{N.current=0,E.current&&(()=>{const e=S();m(e)||(0,a.flushSync)((()=>{A((t=>j(t,e)))}))})()})),t=(0,c.Z)(E.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(E.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),(0,u.Z)((()=>{O()})),s.useEffect((()=>{N.current=0}),[y]);return(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)("textarea",(0,r.Z)({value:y,onChange:e=>{N.current=0,C||O(),n&&n(e)},ref:x,rows:v,style:(0,r.Z)({height:_.outerHeightStyle,overflow:_.overflow?"hidden":null},b)},w)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,r.Z)({},p,b,{padding:0})})]})}))},70719:(e,t,n)=>{function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];const a=()=>{e.apply(this,o)};clearTimeout(t),t=setTimeout(a,n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{Z:()=>r})},33917:(e,t,n)=>{function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})}
2,71302:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(33917);function o(e){return(0,r.Z)(e).defaultView||window}},56669:(e,t,n)=>{function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},41964:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(50390);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},16205:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(50390),o=n(56669);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.Z)(t,e)}))}),t)}},2008:(e,t,n)=>{var r=n(30168),o={};try{o.WeakMap=WeakMap}catch(WeakMap){o.WeakMap=function(e,t){var n=t.defineProperty,r=t.hasOwnProperty,o=s.prototype;return o.delete=function(e){return this.has(e)&&delete e[this._]},o.get=function(e){return this.has(e)?e[this._]:void 0},o.has=function(e){return r.call(e,this._)},o.set=function(e,t){return n(e,this._,{configurable:!0,value:t}),this},s;function s(t){n(this,"_",{value:"_@ungap/weakmap"+e++}),t&&t.forEach(a,this)}function a(e){this.set(e[0],e[1])}}(Math.random(),Object)}const s=o.WeakMap;var a={};try{a.Event=new Event(".").constructor}catch(Event){try{a.Event=new CustomEvent(".").constructor}catch(Event){a.Event=function(e,t){t||(t={});var n=document.createEvent("Event"),r=!!t.bubbles,o=!!t.cancelable;n.initEvent(e,r,o);try{n.bubbles=r,n.cancelable=o}catch(n){}return n}}}const i=a.Event;var c={};try{c.WeakSet=WeakSet}catch(WeakSet){!function(e){var t=new e,n=r.prototype;function r(n){t.set(this,new e),n&&n.forEach(this.add,this)}n.add=function(e){return t.get(this).set(e,1),this},n.delete=function(e){return t.get(this).delete(e)},n.has=function(e){return t.get(this).has(e)},c.WeakSet=r}(WeakMap)}const l=c.WeakSet;var u,h,f="-"+Math.random().toFixed(6)+"%",d=!1;try{u=document.createElement("template"),h="tabindex","content"in u&&(u.innerHTML='<p tabindex="'+f+'"></p>',u.content.childNodes[0].getAttribute(h)==f)||(f="_dt: "+f.slice(1,-1)+";",d=!0)}catch(Jt){}var p="\x3c!--"+f+"--\x3e",m=/^(?:plaintext|script|style|textarea|title|xmp)$/i,g=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;function v(e){return e.join(p).replace(k,S).replace(x,_)}var b=" \\f\\n\\r\\t",y="[^ \\f\\n\\r\\t\\/>\"'=]+",w="[ \\f\\n\\r\\t]+"+y,C="<([A-Za-z]+[A-Za-z0-9:._-]*)((?:",E="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+y.replace("\\/","")+"))?)",x=new RegExp(C+w+E+"+)(["+b+"]*/?>)","g"),k=new RegExp(C+w+E+"*)(["+b+"]*/>)","g"),N=new RegExp("("+w+"\\s*=\\s*)(['\"]?)"+p+"\\2","gi");function _(e,t,n,r){return"<"+t+n.replace(N,A)+r}function A(e,t,n){return t+(n||'"')+f+(n||'"')}function S(e,t,n){return g.test(t)?e:"<"+t+n+"></"+t+">"}const{isArray:j}=Array,{indexOf:O,slice:M}=[],Z=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)}),L=(e,t)=>111===e.nodeType?1/t<0?t?(e=>{let{firstChild:t,lastChild:n}=e;const r=document.createRange();return r.setStartAfter(t),r.setEndAfter(n),r.deleteContents(),t})(e):e.lastChild:t?e.valueOf():e.firstChild:e,T=e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=M.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}};var R=function(e){var t="fragment",n="template",r="content"in s(n)?function(e){var t=s(n);return t.innerHTML=e,t.content}:function(e){var r=s(t),a=s(n),i=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var c=RegExp.$1;a.innerHTML="<table>"+e+"</table>",i=a.querySelectorAll(c)}else a.innerHTML=e,i=a.childNodes;return o(r,i),r};return function(e,t){return("svg"===t?a:r)(e)};function o(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function s(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function a(e){var n=s(t),r=s("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",o(n,r.firstChild.childNodes),n}}(document);const $=R,z=(e,t,n,r,o)=>{const s=n.length;let a=t.length,i=s,c=0,l=0,u=null;for(;c<a||l<i;)if(a===c){const t=i<s?l?r(n[l-1],-0).nextSibling:r(n[i-l],0):o;for(;l<i;)e.insertBefore(r(n[l++],1),t)}else if(i===l)for(;c<a;)u&&u.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===n[l])c++,l++;else if(t[a-1]===n[i-1])a--,i--;else if(t[c]===n[i-1]&&n[l]===t[a-1]){const o=r(t[--a],-1).nextSibling;e.insertBefore(r(n[l++],1),r(t[c++],-1).nextSibling),e.insertBefore(r(n[--i],1),o),t[a]=n[i]}else{if(!u){u=new Map;let e=l;for(;e<i;)u.set(n[e],e++)}if(u.has(t[c])){const o=u.get(t[c]);if(l<o&&o<i){let s=c,h=1;for(;++s<a&&s<i&&u.get(t[s])===o+h;)h++;if(h>o-l){const s=r(t[c],0);for(;l<o;)e.insertBefore(r(n[l++],1),s)}else e.replaceChild(r(n[l++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return n};const P=function(e,t,n,r,o){var s=o in e,a=e.createDocumentFragment();return a.appendChild(e.createTextNode("g")),a.appendChild(e.createTextNode("")),(s?e.importNode(a,!0):a.cloneNode(!0)).childNodes.length<2?function e(t,n){for(var r=t.cloneNode(),o=t.childNodes||[],s=o.length,a=0;n&&a<s;a++)r.appendChild(e(o[a],n));return r}:s?e.importNode:function(e,t){return e.cloneNode(!!t)}}(document,0,0,0,"importNode");const W="".trim||function(){return String(this).replace(/^\s+|\s+/g,"")};var U=d?function(e,t){var n=t.join(" ");return t.slice.call(e,0).sort((function(e,t){return n.indexOf(e.name)<=n.indexOf(t.name)?-1:1}))}:function(e,t){return t.slice.call(e,0)};function H(e,t){for(var n=t.length,r=0;r<n;)e=e.childNodes[t[r++]];return e}function B(e,t,n,r){for(var o=e.childNodes,s=o.length,a=0;a<s;){var i=o[a];switch(i.nodeType){case 1:var c=r.concat(a);D(i,t,n,c),B(i,t,n,c);break;case 8:var l=i.textContent;if(l===f)n.shift(),t.push(m.test(e.nodeName)?F(e,r):I(i,r.concat(a)));else switch(l.slice(0,2)){case"/*":if("*/"!==l.slice(-2))break;case"\ud83d\udc7b":e.removeChild(i),a--,s--}break;case 3:m.test(e.nodeName)&&W.call(i.textContent)===p&&(n.shift(),t.push(F(e,r)))}a++}}function D(e,t,n,r){for(var o=e.attributes,s=[],a=[],i=U(o,n),c=i.length,l=0;l<c;){var u,h=i[l++],m=h.value===f;if(m||1<(u=h.value.split(p)).length){var g=h.name;if(s.indexOf(g)<0){s.push(g);var v=n.shift().replace(m?/^(?:|[\S\s]*?\s)(\S+?)\s*=\s*('|")?$/:new RegExp("^(?:|[\\S\\s]*?\\s)("+g+")\\s*=\\s*('|\")[\\S\\s]*","i"),"$1"),b=o[v]||o[v.toLowerCase()];if(m)t.push(V(b,r,v,null));else{for(var y=u.length-2;y--;)n.shift();t.push(V(b,r,v,u))}}a.push(h)}}l=0;for(var w=(0<(c=a.length)&&d&&!("ownerSVGElement"in e));l<c;
2){var C=a[l++];w&&(C.value=""),e.removeAttribute(C.name)}var E=e.nodeName;if(/^script$/i.test(E)){var x=document.createElement(E);for(c=o.length,l=0;l<c;)x.setAttributeNode(o[l++].cloneNode(!0));x.textContent=e.textContent,e.parentNode.replaceChild(x,e)}}function I(e,t){return{type:"any",node:e,path:t}}function V(e,t,n,r){return{type:"attr",node:e,path:t,name:n,sparse:r}}function F(e,t){return{type:"text",node:e,path:t}}const q=function(e){var t=K,n=X;return function(r){return t!==r&&(n=J(e,t=r)),n.apply(null,arguments)}};var G=Z(new s);function Q(e,t){var n=(e.convert||v)(t),r=e.transform;r&&(n=r(n));var o=$(n,e.type);X(o);var s=[];return B(o,s,t.slice(0),[]),{content:o,updates:function(n){for(var r=[],o=s.length,a=0,i=0;a<o;){var c=s[a++],l=H(n,c.path);switch(c.type){case"any":r.push({fn:e.any(l,[]),sparse:!1});break;case"attr":var u=c.sparse,h=e.attribute(l,c.name,c.node);null===u?r.push({fn:h,sparse:!1}):(i+=u.length-2,r.push({fn:h,sparse:!0,values:u}));break;case"text":r.push({fn:e.text(l),sparse:!1}),l.textContent=""}}return o+=i,function(){var e=arguments.length;if(o!==e-1)throw new Error(e-1+" values instead of "+o+"\n"+t.join("${value}"));for(var s=1,a=1;s<e;){var i=r[s-a];if(i.sparse){var c=i.values,l=c[0],u=1,h=c.length;for(a+=h-2;u<h;)l+=arguments[s++]+c[u++];i.fn(l)}else i.fn(arguments[s++])}return n}}}}function J(e,t){var n=G.get(t)||G.set(t,Q(e,t));return n.updates(P.call(document,n.content,!0))}var K=[];function X(e){for(var t=e.childNodes,n=t.length;n--;){var r=t[n];1!==r.nodeType&&0===W.call(r.textContent).length&&e.removeChild(r)}}var Y=function(){var e=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,t=/([^A-Z])([A-Z]+)/g;return function(e,t){return"ownerSVGElement"in e?function(e,t){var n;t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style"));return n.value="",e.setAttributeNode(n),r(n,!0)}(e,t):r(e.style,!1)};function n(e,t,n){return t+"-"+n.toLowerCase()}function r(r,o){var s,a;return function(i){var c,l,u,h;switch(typeof i){case"object":if(i){if("object"===s){if(!o&&a!==i)for(l in a)l in i||(r[l]="")}else o?r.value="":r.cssText="";for(l in c=o?{}:r,i)u="number"!==typeof(h=i[l])||e.test(l)?h:h+"px",!o&&/^--/.test(l)?c.setProperty(l,u):c[l]=u;s="object",o?r.value=function(e){var r,o=[];for(r in e)o.push(r.replace(t,n),":",e[r],";");return o.join("")}(a=c):a=i;break}default:a!=i&&(s="string",a=i,o?r.value=i||"":r.cssText=i||"")}}}}();const ee=Y,te=(e,t)=>{let n,r=!0;const o=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(o),r=!0):(o.value=t,r&&(e.setAttributeNodeNS(o),r=!1)))}},ne=e=>{let{dataset:t}=e;return e=>{for(const n in e){const r=e[n];null==r?delete t[n]:t[n]=r}}},re=(e,t)=>"dataset"===t?ne(e):n=>{e[t]=n},oe=/^(?:form|list)$/i,se=(e,t)=>e.ownerDocument.createTextNode(t);function ae(e){return this.type=e,q(this)}function ie(e){return e(this)}ae.prototype={attribute(e,t,n){const r="svg"===this.type;switch(t){case"class":if(r)return te(e,t);t="className";case"props":return re(e,t);case"aria":return(e=>t=>{for(const n in t){const r="role"===n?n:"aria-".concat(n),o=t[n];null==o?e.removeAttribute(r):e.setAttribute(r,o)}})(e);case"style":return ee(e,n,r);case"ref":return(e=>t=>{"function"===typeof t?t(e):t.current=e})(e);case".dataset":return ne(e);default:return"."===t.slice(0,1)?re(e,t.slice(1)):"?"===t.slice(0,1)?((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1)):"on"===t.slice(0,2)?((e,t)=>
2{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const o=j(t)?t:[t,!1];n!==o[0]&&(n&&e.removeEventListener(r,n,o[1]),(n=o[0])&&e.addEventListener(r,n,o[1]))}})(e,t):!(t in e)||r||oe.test(t)?te(e,t):((e,t)=>{let n;return r=>{n!==r&&(n=r,e[t]!==r&&(null==r?(e[t]="",e.removeAttribute(t)):e[t]=r))}})(e,t)}},any(e,t){const{type:n}=this;let r,o=!1;const s=a=>{switch(typeof a){case"string":case"number":case"boolean":o?r!==a&&(r=a,t[0].textContent=a):(o=!0,r=a,t=z(e.parentNode,t,[se(e,a)],L,e));break;case"function":s(a(e));break;case"object":case"undefined":if(null==a){o=!1,t=z(e.parentNode,t,[],L,e);break}default:if(o=!1,r=a,j(a))if(0===a.length)t.length&&(t=z(e.parentNode,t,[],L,e));else switch(typeof a[0]){case"string":case"number":case"boolean":s(String(a));break;case"function":s(a.map(ie,e));break;case"object":j(a[0])&&(a=a.concat.apply([],a));default:t=z(e.parentNode,t,a,L,e)}else"ELEMENT_NODE"in a?t=z(e.parentNode,t,11===a.nodeType?M.call(a.childNodes):[a],L,e):"text"in a?s(String(a.text)):"any"in a?s(a.any):"html"in a?t=z(e.parentNode,t,M.call($([].concat(a.html).join(""),n).childNodes),L,e):"length"in a&&s(M.call(a))}};return s},text(e){let t;const n=r=>{if(t!==r){t=r;const o=typeof r;"object"===o&&r?"text"in r?n(String(r.text)):"any"in r?n(r.any):"html"in r?n([].concat(r.html).join("")):"length"in r&&n(M.call(r).join("")):"function"===o?n(r(e)):e.textContent=null==r?"":r}};return n}};const{create:ce,freeze:le,keys:ue}=Object,he=ae.prototype,fe=Z(new s),de=e=>({html:me("html",e),svg:me("svg",e),render(t,n){const r="function"===typeof n?n():n,o=fe.get(t)||fe.set(t,pe()),s=r instanceof be?ge(e,o,r):r;return s!==o.wire&&(o.wire=s,t.textContent="",t.appendChild(s.valueOf())),t}}),pe=()=>({stack:[],entry:null,wire:null}),me=(e,t)=>{const n=Z(new s);return r.for=(e,o)=>{const s=n.get(e)||n.set(e,ce(null));return s[o]||(s[o]=(e=>function(){return ge(t,e,r.apply(null,arguments))})(pe()))},r.node=function(){return ge(t,pe(),r.apply(null,arguments)).valueOf()},r;function r(){return new be(e,xe.apply(null,arguments))}},ge=(e,t,n)=>{let{type:r,template:o,values:s}=n;const{length:a}=s;ve(e,t,s,a);let{entry:i}=t;if(i&&i.template===o&&i.type===r)i.tag(o,...s);else{const n=new e(r);t.entry=i={type:r,template:o,tag:n,wire:T(n(o,...s))}}return i.wire},ve=(e,t,n,r)=>{let{stack:o}=t;for(let s=0;s<r;s++){const t=n[s];t instanceof ye?n[s]=ge(e,o[s]||(o[s]=pe()),t):j(t)?ve(e,o[s]||(o[s]=pe()),t,t.length):o[s]=null}r<o.length&&o.splice(r)};function be(e,t){this.type=e,this.template=t.shift(),this.values=t}le(be);const ye=be,{render:we,html:Ce,svg:Ee}=de(ae);function xe(){let e=[],t=0,{length:n}=arguments;for(;t<n;)e.push(arguments[t++]);return e}var ke="function"===typeof cancelAnimationFrame,Ne=ke?cancelAnimationFrame:clearTimeout,_e=ke?requestAnimationFrame:setTimeout;function Ae(e){var t,n,r,o,s;return i(),function(e,i,l){return r=e,o=i,s=l,n||(n=_e(a)),--t<0&&c(!0),c};function a(){i(),r.apply(o,s||[])}function i(){t=e||1/0,n=ke?0:null}function c(e){var t=!!n;return t&&(Ne(n),e&&a()),t}}let Se=null;const je=e=>{const t=[];return function n(){const r=Se,o=[];Se={hook:n,args:arguments,stack:t,i:0,length:t.length,after:o};try{return e.apply(null,arguments)}finally{Se=r;for(let e=0,{length:t}=o;e<t;e++)o[e]()}}},Oe=Z(new WeakMap),Me=(e,t,n)=>{e.apply(t,n)},Ze={async:!1,always:!1},Le=(e,t)=>"function"==typeof t?t(e):t,Te=(e,t,n,r)=>{const o=Se.i++,{hook:s,args:a,stack:i,length:c}=Se;o===c&&(Se.length=i.push({}));const l=i[o];if(l.args=a,o===c){const o="function"===typeof n,{async:a,always:i}=(o?r:n)||r||Ze;l.$=o?n(t):Le(void 0,t),l._=a?Oe.get(s)||Oe.set(s,Ae()):Me,l.f=t=>{const n=e(l.$,t);(i||l.$!==n)&&(l.$=n,l._(s,null,l.args))}}return[l.$,l.f]},Re=new WeakMap;function $e(e){let{hook:t}=e;return t===this.hook}const ze=new WeakMap,Pe=Z(ze),We=()=>{},Ue=e=>(t,n)=>{const r=Se.i++,{hook:o,after:s,stack:a,length:i}=Se;if(r<i){const o=a[r],{update:i,values:c,stop:l}=o;if(!n||n.some(Ve,c)){o.values=n,e&&l(e);const{clean:r}=o;r&&(o.clean=null,r());const a=()=>{o.clean=t()};e?i(a):s.push(a)}}else{const r=e?Ae():We,i={clean:null,update:r,values:n,stop:We};Se.length=a.push(i),(Pe.get(o)||Pe.set(o,[])).push(i);const c=()=>{i.clean=t()};e?i.stop=r(c):s.push(c)}},He=e=>
2{(ze.get(e)||[]).forEach((e=>{const{clean:t,stop:n}=e;n(),t&&(e.clean=null,t())}))},Be=(ze.has.bind(ze),Ue(!0)),De=Ue(!1),Ie=(e,t)=>{const n=Se.i++,{stack:r,length:o}=Se;return n===o?Se.length=r.push({$:e(),_:t}):t&&!t.some(Ve,r[n]._)||(r[n]={$:e(),_:t}),r[n].$};function Ve(e,t){return e!==this[t]}let Fe=null;try{Fe=new{o(){}}.o}catch(Kt){}let qe=e=>class extends e{};if(Fe){const{getPrototypeOf:e,setPrototypeOf:t}=Object,{construct:n}="object"===typeof Reflect?Reflect:{construct(e,n,r){const o=[null];for(let t=0;t<n.length;t++)o.push(n[t]);const s=e.bind.apply(e,o);return t(new s,r.prototype)}};qe=function(r,o){function s(){return n(o?e(r):r,arguments,s)}return t(s.prototype,r.prototype),t(s,r)}}const Ge={map:{},re:null},Qe=e=>new RegExp("<(/)?(".concat(e.join("|"),")([^A-Za-z0-9:._-])"),"g");let Je=null;const Ke=(e,t)=>{const{map:n,re:r}=Je||t;return e.replace(r,((e,t,r,o)=>{const{tagName:s,is:a,element:i}=n[r];return i?t?"</".concat(a,">"):"<".concat(a).concat(o):t?"</".concat(s,">"):"<".concat(s,' is="').concat(a,'"').concat(o)}))},Xe=e=>{let{tagName:t,is:n,element:r}=e;return r?n:"".concat(t,'[is="').concat(n,'"]')},Ye=()=>Je,et=e=>{Je=e},tt={useCallback:(e,t)=>Ie((()=>e),t),useContext:e=>{const{hook:t,args:n}=Se,r=Re.get(e),o={hook:t,args:n};return r.some($e,o)||r.push(o),e.value},useEffect:Be,useLayoutEffect:De,useMemo:Ie,useReducer:Te,useRef:e=>{const t=Se.i++,{stack:n,length:r}=Se;return t===r&&(Se.length=n.push({current:e})),n[t]},useState:(e,t)=>Te(Le,e,void 0,t)},{render:nt,html:rt,svg:ot}=(e=>{const t=ce(he);return ue(e).forEach((n=>{t[n]=e[n](t[n]||("convert"===n?v:String))})),n.prototype=t,de(n);function n(){return ae.apply(this,arguments)}})({transform:()=>e=>Ke(e,Ge)}),st="_\ud83d\udd25",{defineProperties:at}=Object,it=new s,ct=new s,lt=new s,ut=new l,ht=!0,ft="attributeChangedCallback",dt="connectedCallback",pt="dis".concat(dt),mt=(e,t,n)=>{if(n in e){const r=e[n];t[n]={configurable:ht,value(){return St.call(this),r.apply(this,arguments)}}}else t[n]={configurable:ht,value:St}},gt=e=>{const{prototype:t}=e,n=[],r={html:{configurable:ht,get:Nt},svg:{configurable:ht,get:_t}};if(r["_\ud83d\udd25"]={value:{events:n,info:null}},"handleEvent"in t||(r.handleEvent={configurable:ht,value:At}),"render"in t&&t.render.length){const{oninit:e}=t;at(t,{oninit:{configurable:ht,value(){const t=je(this.render.bind(this,tt));at(this,{render:{configurable:ht,value:t}}),this.addEventListener("disconnected",He.bind(null,t),!1),e&&e.apply(this,arguments)}}})}"oninit"in t&&(n.push("init"),mt(t,r,"render")),mt(t,r,ft),mt(t,r,dt),mt(t,r,pt),[[ft,"onattributechanged",jt],[dt,"onconnected",Ot],[pt,"ondisconnected",Zt],[dt,"render",Mt]].forEach((e=>{let[o,s,a]=e;if(!(o in t)&&s in t)if("render"!==s&&n.push(s.slice(2)),o in r){const e=r[o].value;r[o]={configurable:ht,value(){return e.apply(this,arguments),a.apply(this,arguments)}}}else r[o]={configurable:ht,value:a}}));const o=e.booleanAttributes||[];o.forEach((e=>{e in t||(r[e]={configurable:ht,get(){return this.hasAttribute(e)},set(t){t&&"false"!==t?this.setAttribute(e,t):this.removeAttribute(e)}})}));const a=e.observedAttributes||[];a.forEach((e=>{e in t||(r[e]={configurable:ht,get(){return this.getAttribute(e)},set(t){null==t?this.removeAttribute(e):this.setAttribute(e,t)}})}));(e.mappedAttributes||[]).forEach((e=>{const o=new s,a="on"+e in t;a&&n.push(e),r[e]={configurable:ht,get(){return o.get(this)},set(t){if(o.set(this,t),a){const n=vt(e);if(n.detail=t,ut.has(this))this.dispatchEvent(n);else{const e=lt.get(this);e?e.push(n):lt.set(this,[n])}}}}})),at(t,r);const i=o.concat(a);return i.length?at(e,{observedAttributes:{configurable:ht,get:()=>i}}):e},vt=e=>new i(e),bt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ye("html",t)};bt.for=rt.for;const yt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ye("svg",t)};yt.for=ot.for;const wt=(e,t,n)=>{let{info:r}=n;const o=r?Ke(t.join(st),r).split(st):t;return e.set(t,o),o},Ct=(e,t,n)=>{const r=Et(e,t,new s);return n.set(e,r),r}
2,Et=(e,t,n)=>function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];const i=n.get(r)||wt(n,r,e["_\ud83d\udd25"]);return nt(e,(()=>t(i,...s)))};function xt(e){this.addEventListener(e,this)}function kt(e){this.dispatchEvent(e)}function Nt(){return it.get(this)||Ct(this,bt,it)}function _t(){return ct.get(this)||Ct(this,yt,ct)}function At(e){this["on".concat(e.type)](e)}function St(){if(!ut.has(this)){ut.add(this),this["_\ud83d\udd25"].events.forEach(xt,this),this.dispatchEvent(vt("init"));const e=lt.get(this);e&&(lt.delete(this),e.forEach(kt,this))}}function jt(e,t,n){const r=vt("attributechanged");r.attributeName=e,r.oldValue=t,r.newValue=n,this.dispatchEvent(r)}function Ot(){this.dispatchEvent(vt("connected"))}function Mt(){this.render()}function Zt(){this.dispatchEvent(vt("disconnected"))}const{create:Lt,defineProperty:Tt,defineProperties:Rt,getOwnPropertyNames:$t,getOwnPropertySymbols:zt,getOwnPropertyDescriptor:Pt,keys:Wt}=Object,Ut={element:HTMLElement},Ht=new s,Bt=(new s,new s),Dt=(new s,(e,t)=>("string"===typeof e?Vt(e,t,""):Vt(e.name,e,"")).Class),It=e=>{const t=Lt(null),n=Lt(null),r={prototype:n,statics:t};return $t(e).concat(zt(e)).forEach((r=>{const o=Pt(e,r);switch(o.enumerable=!1,r){case"extends":r="tagName";case"contains":case"includes":case"name":case"booleanAttributes":case"mappedAttributes":case"observedAttributes":case"style":case"tagName":t[r]=o;break;default:n[r]=o}})),r},Vt=(e,t,n)=>{if(!/^([A-Z][A-Za-z0-9_]*)(<([A-Za-z0-9:._-]+)>|:([A-Za-z0-9:._-]+))?$/.test(e))throw"Invalid name";const{$1:r,$3:o,$4:s}=RegExp;let a=o||s||t.tagName||t.extends||"element";const i="fragment"===a;if(i)a="element";else if(!/^[A-Za-z0-9:._-]+$/.test(a))throw"Invalid tag";let c="",l="";a.indexOf("-")<0?(c=r.replace(/(([A-Z0-9])([A-Z0-9][a-z]))|(([a-z])([A-Z]))/g,"$2$5-$3$6").toLowerCase()+n,c.indexOf("-")<0&&(l="-heresy")):(c=a+n,a="element");const u=c+l;if(customElements.get(u))throw"Duplicated ".concat(u," definition");const h=qe("object"===typeof t?Bt.get(t)||((e,t)=>{const{statics:n,prototype:r}=It(e),o=qe(Ut[t]||(Ut[t]=document.createElement(t).constructor),!1);return Rt(o.prototype,r),Rt(o,n),Bt.set(e,gt(o)),o})(t,a):Ht.get(t)||(e=>{const t=qe(e,!1);return Ht.set(e,gt(t)),t})(t),!0),f="element"===a;if(Tt(h,"new",{value:f?()=>document.createElement(u):()=>document.createElement(a,{is:u})}),Tt(h.prototype,"is",{value:u}),""===n){const e=(e=>{const{length:t}=e;let n=0,r=0;for(;r<t;)n=(n<<5)-n+e.charCodeAt(r++),n&=n;return n.toString(36)})(c.toUpperCase());Ge.map[r]=Ft(h,a,u,{id:e,i:0}),Ge.re=Qe(Wt(Ge.map))}if(i){const{render:e}=h.prototype;Tt(h.prototype,"render",{configurable:!0,value(){if(e&&e.apply(this,arguments),this.parentNode){const{firstChild:e}=this;let t=null;if(e){const n=document.createRange();n.setStartBefore(e),n.setEndAfter(this.lastChild),t=n.extractContents(),this.parentNode.replaceChild(t,this)}}}})}const d=[u,h];return f||d.push({extends:a}),customElements.define(...d),{Class:h,is:u,name:r,tagName:a}};Math.random();const Ft=(e,t,n,r)=>{const{prototype:o}=e,s=((e,t)=>({tagName:e,is:t,element:"element"===e}))(t,n),a=[Xe(s)],i=e.includes||e.contains;if(i){const e={};Wt(i).forEach((t=>{const n="-".concat(r.id,"-").concat(r.i++),{Class:o,is:s,name:c,tagName:l}=Vt(t,i[t],n);a.push(Xe(e[c]=Ft(o,l,s,r)))}));const t=Qe(Wt(e)),{events:n}=o["_\ud83d\udd25"],s={events:n,info:{map:e,re:t}};if(Tt(o,st,{value:s}),"render"in o){const{render:e}=o,{info:t}=s;Tt(o,"render",{configurable:!0,value(){const n=Ye();et(t);const r=e.apply(this,arguments);return et(n),r}})}}return"style"in e&&(e=>{if((e||"").length){const t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e));const n=document.head||document.querySelector("head");n.insertBefore(t,n.lastChild)}})(e.style(...a)),s};var qt,Gt;const Qt=["aec","agc","audio","audioDenoiser","autoHideSelfView","autoSpotlight","background","bottomToolbar","breakout","callQualityMonitoring","cameraAccess","chat","embed","emptyRoomInvitation","floatSelf","help","leaveButton","locking","localization","logo","lowData","moreButton","participantCount","personality","pipButton","precallCeremony","precallCeremonyCanSkip","precallPermissionsHelpLink","precallReview","people","reactions","recording","roomIntegrations","screenshare","settingsButton","skipMediaPermissionPrompt","subgridLabels","timer","toolbarDarkText","topToolbar","video"];Dt("WherebyEmbed",{oninit(){this.iframe=((e,t)=>e?e[t]||(e[t]={current:null}):{current:null})()},onconnected(){window.addEventListener("message",this.onmessage.bind(this))},ondisconnected(){window.removeEventListener("message",this.onmessage.bind(this))},observedAttributes:["displayName","minimal","room","subdomain","lang","metadata","groups","virtualBackgroun
2dUrl","avatarUrl","externalId","title","cameraEffect","emojiSkinTone",...Qt].map((e=>e.toLowerCase())),onattributechanged(e){let{attributeName:t,oldValue:n}=e;["room","subdomain"].includes(t)&&null==n||this.render()},style:e=>"\n    ".concat(e," {\n      display: block;\n    }\n    ").concat(e," iframe {\n      border: none;\n      height: 100%;\n      width: 100%;\n    }\n    "),_postCommand(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.iframe.current&&this.iframe.current.contentWindow.postMessage({command:e,args:t},this.roomUrl.origin)},endMeeting(){this._postCommand("end_meeting")},knock(){this._postCommand("knock")},leaveRoom(){this._postCommand("leave_room")},openSettings(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";this._postCommand("open_settings",[e])},startRecording(){this._postCommand("start_recording")},stopRecording(){this._postCommand("stop_recording")},startStreaming(){this._postCommand("start_streaming")},stopStreaming(){this._postCommand("stop_streaming")},startLiveTranscription(){this._postCommand("start_live_transcription")},stopLiveTranscription(){this._postCommand("stop_live_transcription")},toggleBreakout(e){this._postCommand("toggle_breakout",[e])},toggleCamera(e){this._postCommand("toggle_camera",[e])},toggleMicrophone(e){this._postCommand("toggle_microphone",[e])},togglePeople(e){this._postCommand("toggle_people",[e])},toggleScreenshare(e){this._postCommand("toggle_screenshare",[e])},toggleChat(e){this._postCommand("toggle_chat",[e])},onmessage(e){let{origin:t,data:n}=e;if(!this.roomUrl||t!==this.roomUrl.origin)return;const{type:r,payload:o}=n;this.dispatchEvent(new CustomEvent(r,{detail:o}))},render(){const{avatarurl:e,displayname:t,cameraeffect:n,emojiskintone:o,lang:s,metadata:a,externalid:i,minimal:c,room:l,groups:u,virtualbackgroundurl:h,title:f}=this;let d,p;try{({roomUrl:d,subdomain:p}=function(e,t){if(!e)throw new Error("Missing room attribute");const n=/https:\/\/([^.]+)(\.whereby\.com|-ip-\d+-\d+-\d+-\d+.hereby.dev:4443)\/.+/.exec(e),r=n&&n[1]||t;if(!r)throw new Error("Missing subdomain attribute");if(!n)throw new Error("Could not parse room URL");return{subdomain:r,roomUrl:new URL(e)}}(l,this.subdomain))}catch(m){return this.html(qt||(qt=(0,r.Z)(["Whereby: ",""])),m instanceof Error?m.message:"unknown error")}this.roomUrl=d,Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({jsApi:!0,we:"1",iframeSource:p},t&&{displayName:t}),s&&{lang:s}),a&&{metadata:a}),o&&{emojiSkinTone:o}),i&&{externalId:i}),u&&{groups:u}),h&&{virtualBackgroundUrl:h}),e&&{avatarUrl:e}),n&&{cameraEffect:n}),null!=c&&{embed:c}),Qt.reduce(((e,t)=>null!=this[t.toLowerCase()]?Object.assign(Object.assign({},e),{[t]:this[t.toLowerCase()]}):e),{}))).forEach((e=>{let[t,n]=e;this.roomUrl.searchParams.has(t)||this.roomUrl.searchParams.set(t,n)})),this.html(Gt||(Gt=(0,r.Z)(["\n      <iframe\n        title=","\n        ref=","\n        src=",'\n        allow="autoplay; camera; microphone; fullscreen; speaker; display-capture; media-capture" />\n      '])),f||"Video calling component",this.iframe,this.roomUrl)}})},30168:(e,t,n)=>{function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})}}]);
3//# sourceMappingURL=7995.632bd602.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.